Answer Questions
Shailja making an api call error 126 (findWindow)
I'm trying to get a handle to a window, so I need to make an call to the api to the findwindow function.. so I declare: Declare Function FindWindow Lib "User32" Alias "FindWindowA" _ ( ByVal lpClassName As String , ByVal lpWindowName As String ) As Long Public WinWnd As Long and make the call inside a sub: Dim windowName As String windowName = "Title" WinWnd = FindWindow(vbNullString, windowName) WinWn ...Show All
DeviousDevil Tabbed Browsing - Struck a problem.. Please help...
Hi everybody, I have started making my own tabbed browsing but i dont know how to use the webbrowser progresschanged sub without having an intial object 'WebBrowser1' - all of them are made programatically and names are stored an ArrayList. How can i add Private Sub WebBrowser1_ProgressChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles wblist.item(itemname).Progres ...Show All
bsaucer1 How to display an alert message in VB.NET
I am developing an IT Asset Tracking System using VB 2005 Professional. One of the fields I have is a Warranty Start and Warranty Expiry date. I would like to be able to display some kind of informational alert to indicate that a particular asset's warranty has expired or is about to expire in 7 days. How do I go about implementing something like this and where is the best place to display this. Regards Dipendra ...Show All
Michael K88794 Adding a ComnboBox to a propertygrid
Hi Folks I have a custom class bound to a Propertygrid in a vs2005 form. One string Property has a limited list of strings allowed to enter. I know that I can use an enumeration to cause the propertygrid to show the allowed values in a combobox. But my problem is that the strings allowed come from an xml-file and I want to add them at runtime in the new() method of my custom class. My Question: is there a chance of showing a combobox to the use ...Show All
gallileo Help needed with Converting an old C program script to Visual Basic
I've found a great program script written in C and I want to use it in my VB program, buth I have little to no understanding of C. The online version of the code is here: http://www.rpgweb.com/worldgen.c (Is legal to use: http://www.gnu.org/licenses/licenses.html#GPL ) An example of the effect is found here: http://www.bin.sh/gaming/tools/world.cgi Can anyone help me or sent me to someone or a site or forum where this code ...Show All
Dennis Keith Can not save project with vb.net 2005
Hi, I can not save my project. I dont know how to fix it. The error: szAppName: vbexpress.exe szModname: hungapp szModver: 0.0.0.0 offset: 0000000 Win xp, sp2 Pls help. thanks Hi, It worked for some times after I tried. But after I add the WebBrowser control in, I Save and it hang. Just that. I dont know why. May be the beta2 is better Thanks If VB6 crashed consistantly and Visual Basic Express 2005 also crashes consist ...Show All
Lues Treenode label editing
I have a treeview in my app that the user has the ability to edit the treenode label by use of a context menu. What I want the ability to do, is have the user click (left button) twice - I call it a slow doubleclick, to fire the event to edit the label. This is similar functionality to renaming a file (label) in Windows explorer. - Thanks in advance Slow Click Edit: It appears the treeview control does that f ...Show All
JayC202 Create and run select access SQL queries through VB
Im attempting to have a user select the table, fields and criteria to create a SQL statement query and run it immediately, from a form in MsAccess. Ive tried to build and store the SQL statement in a string, set it as a new querydef,open an existing query and set its sql to the string. I have been unable to get this to work however. I either get a "obj var/ with block var not set" error or invalid SQL statement . However the synt ...Show All
Rob McDonald deleting tab pages
ive made a couple of tab pages to link to each other but can i delete the buttons at the top to link you to the pages cause i have made buttons to do this job instead any way of doin this cheers It's a little hard to understand what you mean but I will try to help you anyway. I am assuming that you are talking about the Windows Forms TabControl and TabPage. To remove a TabPage: 1. Click the tab of the tab page you want ...Show All
Madhu Ponduru Reading INI files
I tried using search and the help feature in vb 8 but could not find any matches on this subject. I want to read info from an ini file. Is there an API I could use to get this done Or is there an easy way to do it with vb 8 Thank you. You could use the GetPrivateProfileSection API to try and read a section. If it does not exist (i.e. couldn't be read) then create it. However, if it was read, then it exists and you shouldn't create it. I d ...Show All
Anonym0us Process question
Is there a way to trap an event relating to trying to start a process when the computer lacks the application. For instance doing a process.start on a MS Project file when the computer lacks the application. Now my application just hangs when that occurs. Thanks, Fred You could use com-interop to check if the application can be instantiated, rather than trying to start it as a seperate process. You can trap any errors in that c ...Show All
C# It's slow!!!
Hello After I turn on my computer and when I launch first program (which programed by VB2005), it's take a long time to show main form. VB6 was faster. CPU speed: 2600 MHz Memory: 1024 MB Is there a solution for that Thanks & Regards I can't wait for the Apple = True setting: That MacOS sure looks pretty! Is that namespace contained in the DoEverything.dll ...Show All
Kalpesh Vora Accessing a Database
I am in the process of converting a VB6 program to Visual Basic 2005 Express. I have loaded an Access database into the program and created the DataSet - but I cannot see how to get the data out. Previously in VB6 I was using a Control on a Form (ie. I was not using the OpenRecordSet method) The data was accessed using typical code: frmData.Data2.Recordset.MoveLast() frmData.Data2.Recordset.AbsolutePosition = n - 1 value = frmData.D ...Show All
hocki101 Visual Basic 2005 Express Ed. BETA 2
Hello. I was wondering if it's possible to get Visual Basic 2005 Express BETA 2 on CD without having to have a Credit Card in Australia. I have tried the manual and automatic downloads and they don't work for me at all, both at home (not connected to internet) and at work. (I couldn't use the automatic download at work due to me not having admin privleges) Thanks. Hi Jason, Is it possible for you to download the CD image at work, and ...Show All
Sung ListBox Populating
Hello Again! My program is getting ever so close to completion... Right now I have a listbox that needs to be populated with specific data from my sql db, the thing is I need it to grab just specific rows of data with a matching value... I can populate my listbox 2 different ways but not the way I need it done. The first way was the obvious, by clicking on the data bound items and filling in the Data Source, Display member and Value member ...Show All
