I'm trying to remove textbox controls, it gave me error..the error is in the if statement, but I dont' know why. the Panel1.Controls.Count = 42, and when it count to Panel1.Controls.Count(21), it said index 21 is out of range.
any idea?
Dim ctrl As Control
Dim txtBox As TextBox...
is there any source for building a calendar like outlook calendar in vb.net, you can input a link or button in each date, and when you click it, it will open another window. any idea?
I created an array textboxes, the frist load is good, but when I reload it again, it won't work, and I know it has to be removed before load again, but I don't know how to remove it in dynamic textboxes, they don't have textbox.name. here is my create textbox code.
Private Sub textboxShow()...
I'm doing the mail label in crystal reports 8.5. there is only one page and 6 labels. I have 6 parameters for the 6 labels entityID, the query like this: Select name, address From company -- In the select expert Company.entityid is one of ?ID1, ?ID2, ?ID3, ?ID4, ?ID5, ?ID6..when I input values...
I'm going to build the setup project for my app. but I have 3 steps to check for the target machine or server before install the app.
1. check framework in the target machine (if not, install the dotnetfx.exe)
2. check SQL Server, can be in the target machine or server (if not, install the...
I creat a button with image menually, like below
Dim aImageButton As New Button
tpgContact.Controls.Add(aImageButton)
aImageButton.Name = entity
aImageButton.Text = ""
aImageButton.Image = Image.FromFile("C:\vb.net\client\images\checkbox_checked.gif")
aimagebutton.ImageAlign =...
In my vb app, I have a sql connect string in my publicModule. when the user install the app, it will ask the "Initial Catalog" and "Data Source" value, then open the app. if the user input the wrong value, then the app can't open the sql data, how can I check the two value are matching in the...
I'm using the ShellExecute API, but it is not opening any file with its associated program.
here is my coding:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As...
I have a data type is smalldatetime in the table, when I bind to my DataTable in VB.NET, when there is value in this column, the output is fine, but when it's NULL, then it gets error of the data type. In the sql, if it's string, I do ISULL(firstname, '') AS firstName inside sql query, then the...
hello, I have a problem to output multiple value to one column in datagrid in vb.net.
here is the column name in the database table
street_number1, street_name1, street_number2, street_name2, street_number3, street_name3, street_number4, street_name4, street_number5, street_name5
In the vb...
I'm binding the data to datagrid in vb.net, and the first column is the entity_id, I don't want it to show in the datagrid, but I need to pass the entity_id to another window when the current row is selected. The entity_id is showing in my first column in my datagrid, how can I get the entity_id...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.