-
- Exposing Inherited Events.
by JohnWein
- 5 Replies
- Last post
by JohnWein
- How do I expose only the events I want to when I inherit a class In particular, I inherit PrintDocument and I want to expose BeginPrint and EndPrint. I don't want to expose PrintPage.
-
- efficiency question.
by SCRunner
- 12 Replies
- Last post
by hgen_banks
- There are various mechanisms for evaluating a decision tree in vb. e.g If .. else if .., Select case, etc. Aside from programming convenience is there any effeciency difference between these options or do they all compile down to the same low level code, leaving aside the issue of whether or not all test expressions are evaluated
-
- Error Handeling
by OMEGA_ReD
- 3 Replies
- Last post
by OMEGA_ReD
- If i get an error after running a code the debugger stops the application and goes to the specific code and generates a error. how do i capture that error in my own application an put the error in a messagebox
-
- How to access value from controls added by code?
by puffzotty
- 2 Replies
- Last post
by spotty
- Hi.
I created instance of textbox and added textbox from code behind in a form
Me.Controls.Add(textbox)
but, how can I access the textbox's value
textbox.Text returns nothing...
thx in advance.
-
- listbox error
by KAllbritain
- 4 Replies
- Last post
by KAllbritain
- This is driving me nuts. I am populating 2 list boxes, the first with table names and the 2nd with the column names from the selected table. The code populating the list boxes is identical in format but I keep getting an error when I try. The query works fine as the error is on the listbox.add stmt. Error: sys.columns.name "Index out of range exception". Private Sub getfiles() Dim
-
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
by frgu
- 8 Replies
- Last post
by rmcmullan
- I have an application that is distributed with click-once. One of my users already makes use of it for quite some time without any problems. Only recently, he is not able to launch the application anymore.
During the check that is made to see if there is a new version of the software, he gets the message: "Application cannot be started, contact vendor"
If I copy my application manu
-
- bringToFront problem!!!
by isidat
- 3 Replies
- Last post
by JohnWein
- Hi! I'm trying to make a Word program.
Initially a splash screen (a form) is shown for 2 seconds, then I want to close and show my main form.
Here are the 2 codes for each of the form.
My problem is:
Despite " theMainForm.BringToFront() " code exists, main form loads behind other current applications' forms.
I want it to be shown at the most front of the screen. Help
-
- How to clear picture box
by GODDY
- 4 Replies
- Last post
by GODDY
- I've treid to use this
Private Sub clearbutton_click (ByVal sender As Object, ByVal e As System.EventArgs) Handles clearButton.Click)
picturebox.image = " "
but this does not clear the picture box when i click the clear button on thr form.
-
- string ?
by RajaGanapathy
- 5 Replies
- Last post
by ShyamN
- I have one doubt in VB. If possible, can u explain me please
I have a string = "googlemailsearch"
I want to check whether the characters "mail" is available in the above string !
The characters "mail" would be in any place. Can be in the begining or at the last ....
-
- Accessing Embedded File
by JoRo582918
- 9 Replies
- Last post
by JoRo
- Hello Everyone and Happy Friday, I have searched the forums for this but have been unsuccessful. If someone could point me in the right direction, please do so. If not, here is my question. I have txt file that I have added to my project(myFile.txt). This file has about 1500 part numbers that I want to be able to access during runtime, but am just having some difficulties accessing it. I have been
-
- Serialize Queue(Of T)
by Jason Callas
- 1 Replies
- Last post
by rkimble
- I am guessing this is a very common scenario but I cannot seem to find any examples of how to do this...
My application makes use of several instances of the generic Queue object. Each one contains a collection of a different object type. When the application shuts down I need to write the queue to persistent storage (the disk) and load them up when the application starts up again.
W
-
- Identifying KeyPressed by the User
by Lokesh Ravindran
- 6 Replies
- Last post
by Lokesh Ravindran
- Hi,
Our requirement is to invoke a particular user-defined function when the user presses Ctrl (Control) key or Numpad Enter Key . In our case the focus will NOT be on the VB application, it will be on some other application (window).I'm using Visual Basic 2005 Professioanl Edition.
As I'm new to VB, kindly provide me a solution with a code snippet for the above.
Thanks In Advanc
-
- Having trouble with FileSecurity.AddAccessRule
by Carreirolt
- 2 Replies
- Last post
by tvanfosson
- I'm having trouble with a piece of VB.NET code having to pertain to setting permissions on a folder I've created. I've seen this code a bunch of other places in the same format, but it just doesn't work for me. This part of the app is a sub routine that is adding permissions to a folder that is programatically created in a share on a file server for home drives.
Private Sub
-
- Login via Access Database help
by AnonymousI
- 14 Replies
- Last post
by pedro_pr
- Hi,
I recently got VB 2005 and really like the new features. However, I am on an intermediate level learning Visual Basic. For a test project, I plan to create a login form that validates users through an access database located on a server. Basically, there is a set username and password in the access database and I want my program to execute the main program once the user is validated via the
-
- Multiple Forms and Mouse movements
by Grommet
- 4 Replies
- Last post
by Grommet
- Hi!
I want to have a Main Form and an undefined number of other forms(Auxiliary Forms), each containing an image in a PictureBox. The images are in different dimensions of the same object (N-Dimensional objects).
I want to define the coordinates of a feature in the image, by identifying the feature in one Auxiliary Form using the Mouse and getting the feature coordinates in the two dimen
-
- hai i need help
by sri appa
- 7 Replies
- Last post
by Bruno Yu - MSFT
- Hi,
i have created my project vb6.0,now i have convereted to 2005. me.mscomm1.output="e".but i am getting error messarge like An unhandle expection type system.runtime .interopservice com expection occured in mscommlib.dll. how to slove this issue.
how to write serial communication new version2005 visual basic.
-
- Design Question - Efficient class design
by Fresh Mexican Food Fan
- 1 Replies
- Last post
by spotty
- Hi, What is the best way, in your opinion to design a class that will send emails that will be utilized by other classes/projects
For example, some of the methods I can think of are:
having a class with public properties such as emailaddress, emailbody, emailattachments etc and with a 'SendEmail' method
having a struct similar to above
having a static method that will simply acc
-
- Reading Registry Keys
by joynerCN
- 4 Replies
- Last post
by ahmedilyas
- My apologies if this topic should go somewhere else; mods, feel free to move it.
I need to design a program that, given an IP address, will read certain registry keys' values and report it back to the user. It doesn't need to change anything, just read stuff. I imagine username and password for those computers will be necessary.
I know this sounds like SpyWare, but that's not what it
-
- Adding references at runtime
by jmac82
- 3 Replies
- Last post
by jmac82
- Hello. This is the first time I post a message here, so i hope I am doing it right, and in the right place I am new to vb.net. I am making an application that gets some data from a website. I created a class, with a set of functions witch reads these websites returns the data i want. Since these websites present their data in different ways, i have to make a class for each website. My idea is tha
-
- How to remove a form from project
by LuckyCookie
- 2 Replies
- Last post
by Rykler
- I want to remove a form from myproject but not delete it permenmantly. How to do it Thanks.
-
- IDE constantly injects errors into my code as I type
by The Other Dave
- 6 Replies
- Last post
by The Other Dave
- I've used the IDE since before the introduction of .NET, and I've never known it to work this way. Please no one explain the benefits of the background compiler because I understand it and I've grown accustomed to it for better or for worse. In the last few days the IDE has started behaving strangely. It used to only modify my code when the caret moved to a different line (typically when I hit ent
-
- Internationalization. Try setting the Culture .
by Mark The Archer Evans
- 7 Replies
- Last post
by Mark The Archer Evans
- Big word, hopefully small problem...
I am in the process of internationalizing my application. I have created a string resource file so that I can create all the required language translations but how do I go about changing the shortcut keys on menus etc to correspond to each language Is there an easy way to do this
Cheers
Mark
-
- Saving is deleting and replacing my records. Help!!!
by AngelinaPerez
- 1 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi, I am trying to save records from a dataform to database table, but the problem I am having is each time I try to save the the 1st record on the database table is deleted and replaced with a new record! But I do want to keep every record. My code is as follows: Private Sub CheckBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Click If CheckBox1.Checked Then
-
- SQL server Database Backup and restore progress bar
by g8dnitez
- 5 Replies
- Last post
by Amr Ouf
- as title above, how do i write a code in VB to show the progress bar when i backup/restore database can you all please show an example to me thanks in advance
regards,
g8dnitez
-
- Only allow numeric and dot . keystrokes in textbox
by OMEGA_ReD
- 8 Replies
- Last post
by OMEGA_ReD
- How can i force an textbox only to allow numeric and .(dot) key strokes and for another textbox only allow letters a,b,c,e.... etc z thx