-
- CustomButtonControl - Simulated Mouse Click?
by Tim8w
- 9 Replies
- Last post
by Tim8w
- I have a CustomButtonControl subclassed from Control. I need to be able to translate a KeyPress event into an OnMouseDown event, i.e. I want to simulate a ButtonClick when a key is pressed. Since this control is not a button, I don't have the button's functions available. Any ideas
-
- Suppressing events such as text change
by IceAngel89
- 14 Replies
- Last post
by Rabtok
- how do i or can i suppress events such as text changed. cos i want to set text in code and hence so not need it to be validated and stuff
-
- Database Operations in VB 2005 ODBC
by T V D
- 3 Replies
- Last post
by Bruno Yu - MSFT
- Hello,
In my application, I store all data in a List of objects. I want to store all data in Excel file. I created Datasource & Data set successfully. I created Data adapter, Insert command, & all required for ODBCConnection for VB 2005.
Code Snippet
Private Sub ConnectDatabase()
Dim selectCmd As String = "Select * from CompnayTable"
-
- Printing directly
by john pittman
- 7 Replies
- Last post
by john pittman
- I have in the past created a way to print by creating a file and using writeline methods create the content and then in the end send the file location to a print method that would print the file...
but now, I want to print directly to the printer but after I create/format the output. However I am pretty sure the program will run over a network with not enough privileges to create a file, is the
-
- IRunningObjectTable.Register Example?
by Chuck Cobb
- 7 Replies
- Last post
by Chuck Cobb
- Does anyone have an example of how to register an automation server in the ROT (Runtime Object Table) using IRunningObjectTable.Register and how to revoke it using IRunningObjectTable.Revoke
Thanks,
-
- Wow, such a weird error. All my functions are returning "nothing" as their result results
by Be Healed
- 12 Replies
- Last post
by JohnWein
- Okay I sware I did absolutely nothing to deserve this lol. I've got this huge program that's been working just fine and, for aparently no reason, all of a sudden all of my functions are returning NOTHING in their return results. I mean, NOTHING!!! I'm running it in debug mode one line at a time, and function after function is returning nothing to each other. I mean, the functions are working withi
-
- Filename of Image in ImageList control
by clatonh
- 2 Replies
- Last post
by clatonh
- Hello Everyone,
I need to get a list of filename from the ImageList control which are already loaded. But somehow I am not able to get the listing, Can someone suggest something for it..
Regards,
Claton
-
- html to pdf
by shp21
- 10 Replies
- Last post
by razva
- Hey guys, I'm thinking about writing an application that will convert html to pdf and vise versa and I have a few questions if you don't mind. 1) Is VB.NET a good choice for such a project I can do C++ or Java if it's more reasonable. 2) What exactly should I look up I'm guessing I'll have to use a third party component for this, so please point me to one if needed. If you have any information
-
- Test for a String inside a String
by Seas Comander
- 8 Replies
- Last post
by James A. Gayhart
- I have a string that is constantly changing. It is data recieved from a web server.
I want to begin testing for specific data received to this string.
If the the server says, "No such command." for instance, I want something to happen..
Code Snippet
dim sMatch as New boolean = mystring Like "[N][o][ ][s][u][c][h][ ][c][o][m][m][a][n][d][.]&
-
- Please Help, Need Code!
by Primordial_Soup
- 14 Replies
- Last post
by Primordial_Soup
- I admittedly know nothing about computers or programming. That said, I'm taking a class in Visual Basic...yes, this is retarded baby stuff to you guys, but I am lost. I have the Microsoft Visual Basic 2005 Basics book by "Knowlton-Thompson-Hunt-Collings". I am behind in my projects, I had to miss a class because my sons' school closed for parent-teacher conferences and next week I am goi
-
- VB5 - Convert Designer Forms to VB5 forms
by David_Bnels
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Some years ago I wrote a VB5 package that now does not run on a PC using Office 2007. The reason is because the VB5 project contains two Office 2000 Professional designer forms. (MS Forms 2.0)
I wish to convert these forms to VB5 forms but cannot find any converter. The designer forms have three files - an frm (contains the code), a dca (a binary that seems to contain the components on the
-
- The bound picture box doesn't update its image
by perpetual_dream
- 2 Replies
- Last post
by perpetual_dream
- I have a picture box who is bound to an image column in the dataset.
Code Snippet
Private Sub admin_settings_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load
me. load_company_details()
End Sub
''' Binds the picturebox to the company_settings.Company_Logo column
Private Sub load_company_details()
ds.Tabl
-
- Cant Pin vbproj files
by BobWman
- 0 Replies
- Last post
by BobWman
- We are using Visual Sourcesafe to migrate code through development, test and production using a sharing and pinning method. For some reason we cannot pin some of the vbproj files. These seem to be the only file types that cannot be pinned.
Some of the vbproj files can be pinned, and some cannot - I have not determined any difference in the files or any other reason for this.
Does any
-
- Code Compilation at Runtime?
by robinjam
- 8 Replies
- Last post
by Petite Escalope
- Is it possible to write a program that generates code at runtime, then compiles it into a DLL
-
- Button selected in runtime
by TonyFlora63
- 3 Replies
- Last post
by Amr Ouf
- Hi
How can I have a button on a form selected as if it was tabbed I've tried to use the sendkeys command, and I have the button on the form set to AcceptButton
Tony
-
- System.IO dll
by rgc47
- 1 Replies
- Last post
by ArranNyc
- Where is the "System.IO.dll " I can't find it on my Visual Basic Express or Visual C# or in the .NET framework. I have also checked two of my friends computers and neither of them has a System.IO.dll
rgc47
-
- How to link 2 GUI's (Windows Forms) and pass data from one form to another ??
by Abhilash
- 4 Replies
- Last post
by spotty
- HI!
I am writin a code which requires me to use multiple windows forms.
At the moment i am connecting 2 Windows forms thru the click of a button by writing the following in the button1_click of the button.
Dim f as New "nameofmy2ndform"
f.show
Now in my form the user has to select a partciular data from a dropdownbox and then click the button which will ope
-
- DataGridView Combo
by JerryCic
- 0 Replies
- Last post
by JerryCic
- Simple question:
I have an unbound combo column in my grid.
I use my arrow keys to navigate to the combo column.
I use the alt-down arrow to enter the dropdown area.
I press enter to select the item.
All works well as long as the dropdown has at least two items. But if it has only one, I must click on it in order to select it. I use the "alt-downarrow and press enter" meth
-
- Where can I ask a question about a Visual Studio error
by Bob Joziasse
- 11 Replies
- Last post
by Bob Joziasse
- I want to ask a queation about this following error; Error Visual Basic compiler is unable to recover from the following error: Not enough storage is available to complete this operation. Thank you for your time. Cheers, Bob
-
- Only one usage of each socket address (protocol/network address/port) help PLEASE
by InoSS
- 2 Replies
- Last post
by InoSS
- I get this error at the line where is says listen start and i dont know why Im using VB.net 2005 help please :( Only one usage of each socket address (protocol/network address/port) is normally permitted Listener = New TcpListener([Global].Settings.Port) Listener.Start() Do ' (Error handling code). ' Block until connection received. Dim Client As TcpClient = Listener.AcceptTcpClie
-
- How to view all codes in IDE
by SamSam698
- 2 Replies
- Last post
by SamSam698
- Hello everyone, I do not know is it possible to view all code of a project in it editor one time I found it is even hard to add an import statement to a project.Maybe I am a newbie to vb2005 IDE. Grateful for your help. Sam
-
- Cannot find control through loop?
by tkmano74
- 3 Replies
- Last post
by JohnHart_MSFT
- I have a form with only 1 control. It is a line I drew from the powerpack line control. It's name is "line1" For testing purposes I added the following code to the form_load event.
Code Block
For Each ctl In Me.controls If ctl.Name = "line1" Then ctl.Height = 100 End If Next I set a break point at the ctl.height line but I never get
-
- Is there a list of LDAP fields anywhere
by DinoC
- 4 Replies
- Last post
by Colin Daly
- I am looking for a complete list of LDAP Fileds that I use in query filters in Visual basic for both users and groups. Does anyone know where i might find these. I have the common ones, CN, DN, SamAccountName, but I am looking for a complete list of what i can view.
-
- Pretty listing
by adriaanputter
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hi,
I have a very strange problem at hand. I am working on a solution which contains about 10 projects, now and again I add a test harness project to test something, after adding the project the IDE goes haiwire. Every key stroke seems to send a 'commit' signal to the IDE which then will add () after the key was pressed or complete an IF statement with THEN. When I remove this project and
-
- Creating OCX (or something like it) in VB.net
by FrankdeJonge
- 3 Replies
- Last post
by spotty
- Hello everyone,
I have a user control in VB.net (a class library project) I want to be able to use as a control in Lotus Notes. Lotus Notes can use DLL's and OCX as controls. How can I make it so that the Usercontrol loads when I call upon it in another program In vb6 this was easy by using MakeOCX.
Any help on this subject
With kind regards,
Frank de Jonge.