-
- IDE annoyances
by Daniel_laksjdhfg
- 9 Replies
- Last post
by Kea
- While i absolutely love the new visual studio, there are a couple of things that drive me nuts!!!
when i right click on a symbol in code (such as a variable or procedure name), i can choose "Definition" and jump to that location. unfortunately, the "Last Position" menu item (that was available in VB6) was removed so now i cannot jump back to where i was previously.
when i want to save my fil
-
- ComboBox to get and display a text file into RichtextBox/Textbox
by gascitydan
- 10 Replies
- Last post
by gascitydan
- Visual Basic 2005
I would like to 1) select an item ((string), i.e. "apple") that I made in the ComboBox. 2) Get a text file (I understand it works best if it is created in MS Notepad) 3) Load the entire text file into a created RichTextBox/TextBox. 4) I do not want to get the file from anywhere else except from my computer.
Do I need the OpenFileDialog to aid me
Thank you in a
-
- cannot get "new" sub menu to work in Explorer
by dmcdivitt
- 1 Replies
- Last post
by dmcdivitt
- I wrote a program to help with PHP files. I want three things: run in the browser, open in notepad for editing, and create a new PHP file. This should all happen from the Windows Explorer right-click menu. I've added stuff to the right-click menu many times for many things, which is no big deal. I never have been able to add an item to the "new" sub menu, however. The item "Create n
-
- Array Operation
by yhong
- 7 Replies
- Last post
by yhong
- Hi,
I am making a data process project. I am using jogged array to collect the data from DAQ card, the structure is like the following
public s(2)() as string
public s1(100) as string
public s2(100) as string
public s3(100) as string
s(0)=s1
s(1)=s2
s(2)=s3
now I would like to convert s into a 2-dimentional array with row as channel and column as sample d
-
- easier way to save data than a database before app shut down
by somerandomperson
- 3 Replies
- Last post
by Riquel Dong ¨C MSFT
- I just want to be able to have simple features like a splitter remaining in the same spot the user had it it when the user closes the program down. It would be a lot simplier for me if there was some way for a variable or string to retain its value after the app shuts down and be able to use it on restart. Is that possible Also how would I make it to where the code to save would be run when the t
-
- Explore a CD or DVD drive
by James883
- 9 Replies
- Last post
by nobugz
- Hi there,
does anyone know a VB2005 script which when a button "browse CD" is pressed. It opens windows explorer and opens the contents of the CD or DVD rom.
Thanks.
-
- need help saving a print image
by Ryn
- 7 Replies
- Last post
by leog naprad
- In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sens
-
- RPC_E_CALL_REJECTED during Word automation from VB2005 when copying in Paint...
by Saskia Brand
- 6 Replies
- Last post
by MSFT Abel Valadez
- Hi all, I have a problem involving Word automation and the use of Paint. The situation is: A Word-document is being manipulated through automation. When I open Paint and copy (part of) the picture, I get a 'call was rejected by callee' error from the VB2005 application automating Word. When I use sleep(100) and retry (resume) the statement, it works fine. However, as long as the Paint session is o
-
- Windows Update Agent
by kpeter7
- 2 Replies
- Last post
by kpeter7
- Hi,
I'm trying to use the Windows Update Agent in a .vbs file.
The name of the script is MWU.vbs
This is line 5 of my script:
Set objResults = objSearcher.Search("IsInstalled=0 and Type='Software'")
I always get an error on the above line:
This is the error I'm getting:
MWU.vbs(5,1) (null): 0x80244016
Any help is very much appreciated.
&nb
-
- IF help
by imdandman
- 1 Replies
- Last post
by imdandman
- This should be simple but I can't figure it out. what's wrong with this statement
Code Block
if type.text = "Workout" then
x = x + 1
else
x = x + 2 where type is a combo box. I keep getting this error "Compile error: Expected: expression"
-
- Visual Basic Comm Questions
by Reynoldsk26
- 3 Replies
- Last post
by M+
- I have been trying to make a program that communicates through a specified comm port and user specified comm settings but am having trouble.
Ideally I would like to send a serial character (also user specified) that loops over a specific time, based on milliseconds.
I need to be able to have this program run in the background so I can monitor the comm port to verify that it's se
-
- Play An Animation In A Form
by Mooshy
- 3 Replies
- Last post
by nogChoco
- I Want To Play An Animation ( Flash Animation , ...) Or Play A Movie File ( *.mpg , *.avi and etc) In My Form In Visual Basic .Net 2005 . What Should I Do Thank You For Your Response
-
- Error while using Installutil for installing windows service application.
by Giridhar Damodaram
- 11 Replies
- Last post
by Momos
- I new to .net My project involves developing a windows service application using VB .NET. I have installed the service successfuly on the first attempt using the installutil provided by the frame work. When i uninstalled the application the it gave me the following result.
System.ComponentModel.Win32Exception: The specified service does not exist as an installed service An exception occurred wh
-
- Interop Forms Toolkit: support for ownerform argument for Show()????
by Rens Segaar
- 3 Replies
- Last post
by Jonathan Aneja - MSFT
- Any change that support for the ownerform argument of the Show() method as in
testForm.Show vbModeless, Me
where testForm is an interop form, will be put into the Interop Forms Toolkit
I actually need this, in particular for modeless dialogs, even more than MDI child form support (although I need that too).
Anyone know of an alternative/work-around in t
-
- Is there a memory leak issue with Visual Studio IDE not addressed in SP1?
by trekkie25
- 9 Replies
- Last post
by Sarika_MS
- Steps to reproduce the problem I describe: 1) Create a new project 2) Go to the Resources Tab and "Add an existing file" 3) Ctrl-Alt-Del to open active Processes in the Windows Task Manager 4) Watch devenv.exe 5) Add a jpeg, bmp, whatever in the Resources Tab in VS 2005 6) Watch the memory usage creep up in the Task Manager 7) Keep adding files 8) At some point a threshold is reached and
-
- Option in MDIParent
by QWERTYtech
- 12 Replies
- Last post
by cybertaz69
- How would I go about telling items in my ToolStripMenu to be " Enabled " on if there is a current " Child " window open
If I have a single/multiple " Child(ren) " open and I want to Select All the text. How would I go about this
Also, I want to have a " Undo/Redo " actions. I can't really find any good examples. How would I go about this
How would I
-
- how can i read data from file
by nutsukae
- 2 Replies
- Last post
by nutsukae
- i have file a.txt in my file have a lot of lines like this
Code Snippet
a.txt 111111111111111235646 123156468543 1235498 1235498 12546 how can i read it in line and put them to listbox thank for coming
-
- mscomm32.ocx : file is missing or invalid
by YimTaka
- 10 Replies
- Last post
by Patricia P
- Hi when installing a visual basic 6 project in Vista 32/64, the process completes fine but when i try to execute the file after i get the error: "component 'mscomm32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid". I have made sure i have the control in the correct place and that it is registered fine aswell. Any ideas
-
- How to find the path to the current directory where the program is located?
by Abhilash
- 5 Replies
- Last post
by Abhilash
- Hi!
I am developing a tool based on vb.net. in one of the procedures, i need the path to the folder where the tool will be located as i need to access an excel file which will be located in the same folder.
Is there any method to get this path other than getting it from the user.
Please advise
cheers
Abhilash
-
- Execute Code on Application Exit
by RyanB88
- 13 Replies
- Last post
by helios456
- I need to find out how to add a confirmation dialog box if the application is going to exit, ie i call application.exit() or the last form is being closed. I need my app to confirm the exit with the user and also perform some maintenance type tasks before it exists as well.
-
- Default Geteway and Subnet Mask how to get them into string?
by tempgp
- 10 Replies
- Last post
by tempgp
- Hi Ok Im going a bit crazy but can some one help me to get Defauld Geteway and net mask I assume the only way to get it is to use WMI, and I have no expiriance in doing that :-(
So would really apreciate some help :-) Thanks!
PS: Oh yes im running 2005, maybe there are some new easy ways
-
- Writing XML string to SQL Server
by RMatthe
- 3 Replies
- Last post
by rkimble
- Here is my problem. I have a number of fields on a SQL Server table that I need to store on another SQL Server table as an XML document. I have little or no experience with XML so I am hoping for some guidance.
Example:
Field1 = "Test"
Field2 = "Case"
Field3 = 100
On SQL Server
XMLString as Text
I need to create a string with a Parent an
-
- Add Flash9 Control to VS2005
by Uncle K
- 4 Replies
- Last post
by silviubr
- I added Flash9.ocx(c:\program files\system32\macromed\flash\) to vb2005
toolbox, when I draw the "Shockwave Flash Control" to form, there comes
errors:
* Could not resolve dependent COM reference "stdole,
Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
* Failed to create the wrapper assembly for type
library "AxShockwaveFlashObjects&
-
- CRC
by Hooper
- 8 Replies
- Last post
by Hooper
- Hi,
I am coverting a CRC function from C++ to VB. There is bitwise and shifing and I am not sure if I am using VB correctly for this. The CRC works in the C++ code but not in VB.
Below is pasted the C++ version and the VB.
Any suggestions would be appreciated.
Thanks
Jeff
C++ Version
bitmask = 1 << 7;
do
{
if (!(runCRC & 0x8000) ^ !(aChar & bitm
-
- How do i drag a file from my application to the desktop or to another application(not a .net one) ?
by fulminado
- 3 Replies
- Last post
by fulminado
- Hello!!!
I have created a little program that finds and shows thumbnails of all my autocad files. I now want to drag and drop them into autocad or at least at desktop. I don't mind if you can't tell me exactly what to do with the autocad file.I just want, if its possible, a general example of dragging from the application and dropping to anywhere.
Thank you very much,
your faithfully,