20,284 Topics

Member Avatar for
Member Avatar for razree

Hi all, I'm struggling with a simple little program which I would use for a test to (for example) sell footbal tickets. So I have a for on which user selects a game from combobox (combobox populates from text file) and number of tickets in a numericupdown field. On "Save" …

Member Avatar for razree
0
178
Member Avatar for Dili1234

Dim startdate1 As String = DateTimePicker1.Value.Date Dim enddate As String = DateTimePicker2.Value.Date myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim insert As SqlCommand = New SqlCommand(" INSERT INTO Client_Details (Contract_Name ,Client_Name ,VAT_No ,Cilent_Address,Start_Date,End_Date ,Contract_Value,Telephone_No) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & …

Member Avatar for khair.ullah
0
157
Member Avatar for melanie.braley

I know how to change the background color of a button or label in properties, but I need help figuring out how to get it to change when it is clicked.

Member Avatar for DM Galaxy
0
8K
Member Avatar for Ahmed.C

I'm creating a simple FTP client and i want this certain label to say "List refershed" after a certain action and then after 2 seconds i want the label to say "STATUS". How can i do this?

Member Avatar for deceptikon
0
181
Member Avatar for pc20912

I created tab pages with this, cmd.CommandText = "Select * from StuInfo where StuID ='" & SelectedID & "' order by PayDateDB desc" cmd.Parameters.AddWithValue("@StuID ", SelectedID) DA.SelectCommand = cmd DA.Fill(DS) DT = DS.Tables(0) RecCount = DT.Rows.Count TabControl1.TabPages.Clear() If RecCount > 0 Then For Each DR In DT.Rows newPage = New …

Member Avatar for Begginnerdev
0
176
Member Avatar for Kingcoder210

Hi! I am using crystal report to make my report. But problem is that I cant use same SQL Command there in report parameter because its different. I am going to show you my code so that you can understand it. I have a report & a form where I …

Member Avatar for sandybriones
0
2K
Member Avatar for jaasaria

hi everyone, need to get some advice, when opening mysql connection what is the way using Imports MySql.Data.MySqlClient (use in my current vb.ney proj) or ado connection? (use in my current vb6) thx in advance.

Member Avatar for Rahul47
0
147
Member Avatar for renzlo

Hi, Everyone, Is it possible for the autocomplete feature of textbox to show only when I type the @ sign? I have a list of common email address domain, I just want an autocomplete feature that when the user type the @ sign the autocomplete will show and suggest. Thanks …

Member Avatar for renzlo
0
184
Member Avatar for aarviii

hi i want to show my 2nd form then close the 1st form. here's that simple codes and i can't do it right. please help Private Sub btlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btlogin.Click form2.show() me.close() End Sub

Member Avatar for aarviii
0
136
Member Avatar for Pheyishayor
Member Avatar for IsaacMessi10

Public Class Form1 Dim CloseButton As New Close Dim RestoreButton As New Restore Dim MinButton As New Minimise Dim Drag As Boolean Dim MouseX As Integer Dim MouseY As Integer Dim WinBorder As New PictureBox Private Sub CloseButtonCode() Handles Me.Load CloseButton.Anchor = AnchorStyles.Top + AnchorStyles.Right CloseButton.Enabled = True CloseButton.Location = …

Member Avatar for Rahul47
0
153
Member Avatar for Ahmed.C

Hi. I was just wondering if there is a simple way to get the file size of a selected program. The thing is that if i select a word document or etc the file size should be 2.34MB not like 2355.2 in KB or B. If the file size is …

Member Avatar for Ahmed.C
0
177
Member Avatar for scrolipilo91

i need a VB.net application that contains a button named "LIVE" and when i click on this button i want roiters news to appear, who can help me?

Member Avatar for DM Galaxy
0
152
Member Avatar for Paolo_1

Can I ask you how can I automatically fill my TextBox when I choose an unbound item in ComboBox. For example, I choose "January" in my First ComboBox, then "09" in 2nd ComboBox and "1993" for 3rd. Then it will Show "January 09, 1993" in my TextBox.

Member Avatar for Rahul47
0
149
Member Avatar for gayzlein

Hello, i need a code to show data from database into textbox i have this request "select count(*) from table" i work with access database andi want show the result in textbox pleaase help

Member Avatar for gayzlein
0
8K
Member Avatar for vamsi.siddhani

i want to create buttons dynamically.... what i mean to say is i have a button which says add new one.... if someone click that button, a button should appear with the name given by the user...... if i enter the name of the button and click on add new, …

Member Avatar for Reverend Jim
0
212
Member Avatar for said ahmed

Each item in window form design has exchange text box control,what is the functio of this na me a)used to identify it and it isa variable. b)Its the label of that control. c)used for display d)all the above.

Member Avatar for Reverend Jim
0
112
Member Avatar for manel1989

Hi everyone! I have a datagridview and I want to automatically fill it Let me explain: I have a matrix (gainMatrix) and I want to fill my datagridview by the latter, here is a piece of code that I use for filling: for (int i =0; i <ala.size(); i++ ) …

0
141
Member Avatar for said ahmed
Member Avatar for patrickmhando

How can i delete a record from a datagrid when i highlighting a certain row in my vb.net form ? I expect good answers from you guys. Thanks.

Member Avatar for Stuugie
0
51
Member Avatar for Paul_15

I am developing an application which I have added 2 combobox's (possibly not the best way but it works fine in the most part) which I import data into from a CSV file. I have added code in so that users can add to this file, again this works fine. …

Member Avatar for Paul_15
0
143
Member Avatar for Paul_15

I have created an application (in VB Express 2008) which allows me to distribute some useful web pages to users. The problem I'm experiencing is sorting on ComboBox1 (renamed to PageName) and this then throws the URL Address combobox (ComboBox2) out of sequence. Any help on this? Tried using the …

Member Avatar for Paul_15
0
113
Member Avatar for remyajames

Hai, I am doing a project in VB.Net and SQL Server 2000. When I try to execute my queries in the crystal report it gives a query engine error and in other cases it shows the report with each row repeated. The SQL Query works perfectly in the query analyser. …

Member Avatar for Armand_1
0
416
Member Avatar for pc20912

TabControl1.SelectedTab.Controls(4).Text =”Test” Control and Tab Pages created in runtime. (No of Tab pages depend on user input) How to handle this control without control Number. ? (Is any way to handle with Control Name)

Member Avatar for pc20912
0
260
Member Avatar for nikki05

Hi, I have multiple Controls grouped in Groupboxes. I want to select the control from groupbox dynamically. For example, I am able to select the controls from GroupBox1 with the code below. However, I want to make it dynamically so that users can select any controls from any GroupBox. Would …

Member Avatar for kRod
0
301
Member Avatar for nikki05

Hi, I read many articles about this, but I still couldn't manage to solve it. I want to select the item of a listbox with MouseEnter event. It should be something similar like this Private Sub LBox_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles LBox.MouseDown If e.Button = MouseButtons.Right Then Dim …

Member Avatar for nikki05
0
1K
Member Avatar for kRod

Good Day all, My question is When I get the schema of an EXCEL worksheet with Column headers I get what's expected the names of the columns but when I get the schema of a worksheet without headers I get the first row of data as the Column Names. The …

Member Avatar for kRod
0
483
Member Avatar for nikki05

Hi, I have one form with multiple controls (e.g. Button,Textbox, RadioButton, ComboBox, etc.). I want to set the focus dynamically on a control using key F4 to highlight that control. Scenario: 1.Suppose the user clicks on any control 2.Press Key F4 to highlight that control so that the user will …

Member Avatar for Reverend Jim
0
3K
Member Avatar for Ahmed.C

Hi. I've been working on this FTP client for a while and in it is Show selected image. I'm currently using this code: PictureBox1.Image = New System.Drawing.Bitmap(New IO.MemoryStream(New System.Net.WebClient().DownloadData(ToolStripLabel1.Text))) I added it to the Form load event. The picture I'm acquiring is from an FTP server but each time it …

Member Avatar for tinstaafl
0
766
Member Avatar for docgrid

dear friends, icreated small project to open excel using vb. everything works fine with one exception. i used VB express 2010 in xp OS when developing the project. when it runs on the windows 7 platform the opening excel file goes behind the my application. the VB form topmost function …

Member Avatar for kRod
0
781

The End.