Answer Questions
directSH Tables In Drop Down List Boxes?
Is it possible to show a table for a SQL Server in a Drop Down List box I have beening using SQL statements to populate my drop down list boxes but i can't get one to work for populating a table in a drop down list box... . someone told me i might have to use COALESCE to get it to work but i want it to be a table.. now when they do choose a value i don't need the whole record to come back to me just the primary key of that record. okay the form i use this sqlcommand to pull the needed information... Code: SELECT VendorNumber, VendorCompanyName, VendorBillingCode, VendorArea FROM tblPE_Vendor ORDER BY VendorCompanyName then i was using to populate the ddl was the dreader only reading one collum... is it possibl ...Show All
CJW99 Split Question
I need splitting a file for get any info I wrote this Code: Dim number As Integer = 0 Dim ParamSeparator() As Char = { "G" , "I" , "F" , "8" , "9" , "a" } Dim gif As String = File.ReadAllText(OpenFileDialog1.FileName) Dim i As Integer = 0 For Each files As String In gif.Split(ParamSeparator) If files.Length > 0 Then ListBox1.Items.Add(i & " " & files.Length + 6 & " 0" ) i = i + files.Length + 6 number = number + 1 End If Next TextBox1.Text = number And it work but i have a problem with " ParamSeparator". My problem is that if i have a file with this Text: GIF89a11 G GIF89a32 The G doesn't go counted be ...Show All
Morn VB Upgrade Tool
I tried to upgrade a program from vb6 to vb2005(express edition) but i keep getting this error: cannot start upgrade engine. not able to bind the source (exception from HRESULT: 0x8004000A (OLE_CANT_BINDTOSOURCE)). I get this error even if i dont type in any vb6 code in the window. I have read previous threads on this issue and i have tried their suggestions, ie checking the registry for the dll version, although i could not try using the regasm.exe beacause it seems my command prompt doesnt recognise it. My OS is XP SP2 home English Visual Basic 2005 Express Edition English. Thanks I checked my registry for this key as I am also having this problem. The key does not exist. I sti ...Show All
stak32 Locate mouse position of hovered tabpage
I'm creating a tabbed browser app where each page is dynamically created and named. I need to use the mousehover event but don't know how to determine which tabpage is in the hover state. VB.NET documentation mentions the MouseEventArgs class but when I try to add a new mousehover delegate, VB will not accept this signiture in place of the required System.EventArgs. Bottom line: the app contains a main form with a 'New Tab' checkbox. If checked and address bar URL is navigated, a new tabpage is dynamically added to the tabcontrol and named "wbTabPage" & << the new tab's index >>. I want to raise the mousehover event whenever this new dynamically created tabpage is hovered. I searched for three days for infor ...Show All
misexpert Decimal separator and other strange questions
Hello, everyone, I've found several threads about decimal separator, but I couldn't figure out what to do with that info. I'm new to Visual Basic, but I have some basic knowledge of it, also a basic knowledge of C++ and a very good understanding of Actionscript. My friend has to write a thesis and he asked me to create an application to calculate something that has to do with quaternions. The user has to input 8 values and then the user has to press a button, so that a result is presented in a textbox by using a formula. Everything is going great, but I'm hoping on the good working of my friend. But now I want to make sure, that he can input nothing but numeric characters and that the decimal numbers are placed behind a comma. I have no id ...Show All
TABLO DeviceIOControl Does Not Work on Windows 98
i wrote a program that get hard disk's firmware serial and it works fine in winXP/Win2000 but when i run it in win98 it doesn't give me the serial number i used Smartvsd.vxd and vWin32.vxd to Solve this problem but it doesn't work yet. any idea plz forgive me for my bad english . Can you post the interop declaration for CreateFile Depending on which version you call(ASCII or UNICODE), you might need to explicitly state the marshalling for the string parameter. Best regards, From his test.zip: Private Declare Function CreateFile _ Lib "kernel32" Alias "CreateFileA" ( ByVal lpFileName As String , _ ByVal dwDesiredAccess As Integer , _ ByVal dwShar ...Show All
JeffSkla Diff. between VB6 Control Type and .Net Control Type
Hi, In my VB6 application i am having a function which returns of type Control as follows, Private Function MyFunction(param1 As String, param2 As MyType) As Control Now Inside this funtion I am calling .Net fuction, this .Net function returns of type Control (.Net), when i am trying to assign the .Net Control to the VB6 control it says type mismatch. MyFunction = ineropObj.GetNetObj(); Is that correct any solution Regards, Benin. The VB6 type "Control" and the .NET type "Control" are not the same type. You cannot assign one to the other. What are you actually trying to accomplish You'll need to consider another way to achieve it. ...Show All
davidtcf Datagridview - Argument out of range
I fill a DataGridView with DGV.Rows.Add(20) Then I get an error on Dgv.Rows(0).Cells(0).Value = 1234567 It says argument out of range, parameter name: index. But, I do not know which index, the rows or cells. Do I have to initialize the cells or rows somehow I think it is the cells. Is there an add method for cells The way to tell is to run it in debug. When it exits, test the value of Dgv.Rows(0) and also Dgv.Rows(0).Cells(0). My feeling is that the latter will be "nothing". ...Show All
Raulsassaa Cannot add controls to a form
Everytime I try to add any control to a form, I get the error Font 'Ariel' does not support style 'Regular' No mattger what control, new project, old project, all the same. Anybody have any ideas John I fixed this one. The web wisdom is that the font file is corrupt and needs to be replaced. Mine wasn't corrupt, it was the right length and checksummed cleanly. I also could not delete Arial. The cure was going to safe mode, which let me delete the font, and reinstalling most of the Arial family from the files on CD. The files did not change, but I think that the act of deleting and installing them fixed the registry settings that were actually broken. Actually, I did this twice. The first time I repl ...Show All
jmurray_mi Generating Interop and AxInterop Dlls
Hi all, I have a user control on VB6 (.ocx file). I am adding the reference of the ocx file in a VB.Net(2005) project. I do right click on the toolbar and click choose items and go to the COM Component tab and select the ocx file and clicking on ok adds the VB6 user control in my VS2005. I am able to use those controls. It automatically generates the Interop.Mycontrols.dll and AxInterop.AxMyControls.dll. I want to genetate the Interop and AxInterop dlls to be generated manually. I tried usnig the Tlbimp.exe to generate the Interop dlls. But i was not able to use the dll generated manually using the tlbmip, by replacing the dlls generated autmatically by the .Net IDE. I used the following format tlbimp MyControls.tlb /out: ...Show All
haihtomy VS 2005 - Reading XML config file
My solution consists of a Windows Library (that creates a DLL), an EXE that is the Windows Service and a Setup project for deployment. The Windows Service references the DLL project. Everything is installed and deployed. 1. When I run the service, my code needs the current directory of my installed windows service application and library (c:\Program Files\Perf\PerfService in this case) but when I use the following code: path = My .Computer.FileSystem.CurrentDirectory It returns : C:\WINDOWS\SYSTEM32 How do I get where my DLL and EXE are installed 2. I am using a My.Settings config file (app.config) to store application settings for the DLL. How do I include this in my Setup project so that I can manually change settin ...Show All
kjudge1974 Hotkeys in VB 2005
How do i add a hotkey into my program for example i would like to have a mesage box pop up if Ctrl h is pressed. hi Spiderman, i also tried your code and same results that got from Mr, nobugz still cannot capture them.i also added what you ask me . again no activities at all and t does not execute the part what you told me to add. thank you. i really appreciate your help and Mr. Nobugz.. thanks Hi nobugz, Below is your recommendation... I have tried it and did not fix the problem. Using "ByVal e As System.Windows.Forms.KeyEventArgs" will not allow me to capture the media hotkeys like Keys.MediaVolumeUp/Down/play/stop & etc. I have to change it to ByVal ...Show All
Willem Muller IO.Compression
I looked through the help file on how to decompress a gzip file and the code that was provided was bloated and used functions I do not need, such as how to compress also. I simply need to know how to decompress a gzip file. take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=891101&SiteID=1 I have another question about decompression. How would I take a gzip compressed archive and extract all the files in it with their original filenames thanks, Troy L That is exactly what I needed. Thank you so much. Troy L ...Show All
MikePHall Using panel in a custom control
For my project I'm designing a custom control. It contains a title (as a link), a checkbox and a panel. When the title is clicked, the control is minimized to just one line, only displaying the title and the checkbox. When clicked again, the control resizes to its original size, also displaying the panel and its contents. My problem is: when I build this control, add it to a form and try to add controls onto the panel, these controls are not on the panel, but on the form. When the panel is hidden, the controls remain visible. But off course these controls should also hide, when the panel is hidden. Currently I am using Visual Basic .NET 2003, while 2005 is not supplied by the company I work for. The foll ...Show All
Akshay Saini [OTP]Invoking Biztalk rules from Visual Basic 6.0
Hi, Is it possible to invoke BizTalk rules (i.e My own policy) from Visual Basic 6.0 These forums are for .NET programming questions only. VB^ is considered off topic for this forum. Please see any of the following for help with VB6 issues: Useful Links Visual Basic 6.0 on MSDN Library Visual Basic 6.0 Help and Support Visual Basic 6 Support on Windows Vista VB 6 Service Pack 6 Microsoft Visual Basic 6.0 Common Controls Visual Basic 6.0 Upgrade Guidance Visual Basic 6.0 Code Advisor Visual Basic 6.0 Upgrade Samples Visual Basic at the Movies Other VB Web Sites VB-Helper Code Guru Planet Source Code VB City VB For ...Show All
