516 Posted Topics

Member Avatar for khentz

[CODE] Dim fBrowse As New OpenFileDialog With fBrowse .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*" .FilterIndex = 1 .Title = "Import data from Excel file" End With If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim fname As String fname = fBrowse.FileName '' Do what you want to here. End If [/CODE] I have …

Member Avatar for Pgmer
0
170
Member Avatar for jgat2011

your already placing the combo on grid and you want to know how to bind records to that combo?

Member Avatar for Mitja Bonca
0
124
Member Avatar for aadi_capri

[CODE] Try Dim fBrowse As New OpenFileDialog With fBrowse .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*" .FilterIndex = 1 .Title = "Import data from Excel file" End With If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim fname As String fname = fBrowse.FileName Dim MyConnection As System.Data.OleDb.OleDbConnection Dim DtSet As System.Data.DataSet Dim MyCommand As …

Member Avatar for Reverend Jim
0
227
Member Avatar for weeraa
Member Avatar for mitchiexlolz

After inserting the records did you try running ur statement on database like Select * from tblClass?

Member Avatar for Mariandi
0
190
Member Avatar for khentz

[CODE] Try Dim cn As SqlConnection Dim strCnn As String = "Your data base connection string" cn = New SqlConnection(strCnn) cn.Open() Dim comm As New SqlCommand("SELECT ItEquipmentNo FROM tblITEquipmentName WHERE equipmentName LIKE '" & it & "%'", cn) '' If ur using Sp then Commandtype= CommandType.StoredProcedure if it is Text …

Member Avatar for khentz
0
9K
Member Avatar for bettybarnes

you need to give more details like are you maintaining the purchase details? If yes, is there any relationship between these two? or Once user clicks on purchase update ur stock table with Currentstock-Qtypurchased and get the new values fromm db and bind again.

Member Avatar for adam_k
0
134
Member Avatar for tenshi
Member Avatar for tenshi
0
292
Member Avatar for chand3476

you need to initialize the cmdOLEDB using new keyword like cmdOLEDB=new oledbcommand. And after performing action please dispose the objects like coonection object and coomand object.

Member Avatar for Pgmer
0
92
Member Avatar for violette

Yes Left join will give the cartesian product. Try using inner join. it all depends on the table structure and their relationship defined as said by debasis.

Member Avatar for adam_k
0
116
Member Avatar for Ehtesham Siddiq

[CODE] Private Function ExtractNumbers(ByVal expr As String) As String Return String.Join(Nothing, System.Text.RegularExpressions.Regex.Split(expr, "[^\d]")) End Function [/CODE] write this function in ur form and call this it will return only number in string.

Member Avatar for Pgmer
0
4K
Member Avatar for Ruchi224

Why cant you give button in form, let the user make selection and click button to show records on form 2. And use the view to filter the records. This is the second thread u opend for same issue. :) try different ways of doing things. If you keep doing …

Member Avatar for Ruchi224
0
187
Member Avatar for sway1101
Member Avatar for bradz1993
Member Avatar for umer jaan
Member Avatar for umer jaan
0
104
Member Avatar for niño_morata
Member Avatar for jeffrey blanz
0
105
Member Avatar for Ruchi224
Member Avatar for aadi_capri

In windows application we dont have any viewstate. Probably you could try save in app settings. or data is huge save it in DB

Member Avatar for Pgmer
0
119
Member Avatar for bhagawatshinde

Instead you do one thing, First show up the login form and validate is user is already registered if not show the registration form.

Member Avatar for bhagawatshinde
0
288
Member Avatar for cigoL..:)

[CODE] Dim arrImage() As Byte Dim openFile As New OpenFileDialog If openFile.ShowDialog() = Windows.Forms.DialogResult.OK Then arrImage = System.IO.File.ReadAllBytes(openFile.FileName) Else Exit Sub End If [/CODE]

Member Avatar for Pgmer
0
122
Member Avatar for westknight3

If ComboBox1.SelectedItem = "Sound 1" Then you need to set Playsound="ur audio file name not Sound1"

Member Avatar for Pgmer
0
256
Member Avatar for noobies

What count you want to show? Where is the execute reader in your code here? This half code does not explain anything...

Member Avatar for Pgmer
0
2K
Member Avatar for aadi_capri

Hi mitja, I have a doubt here... if Questions are in more say 100+ then ?

Member Avatar for aadi_capri
0
176
Member Avatar for Eternal Newbie

you need to add one more column to table Print as boolean and When user selects or unselects the data from Gridview u need to update those columns in DB and Get the data where Print=1 in crystal report.

Member Avatar for adam_k
0
1,000
Member Avatar for ranashok

[CODE] Dim dt as new datatable ' Code to add columns to table dt.Columns.Add("A", Type.GetType("System.String")) dt.Columns.Add("B", Type.GetType("System.String")) dt.Columns.Add("C", Type.GetType("System.String")) 'Binding the rows to gridview DataGridView1.DataSource = dt ' Code to add new row Dim dr As DataRow dr = dt.NewRow dt.Rows.Add(dr) [/CODE]

Member Avatar for Eternal Newbie
0
224
Member Avatar for sidyusuf
Member Avatar for jackyxman
Member Avatar for pfm200586

[CODE] ' Declare at form level Dim objRandom As New System.Random( _ CType(System.DateTime.Now.Ticks Mod System.Int32.MaxValue, Integer)) Public Function GetRandomNumber( _ Optional ByVal Low As Integer = 1, _ Optional ByVal High As Integer = 100) As Integer ' Returns a random number, ' between the optional Low and High parameters …

Member Avatar for JoshuaBurleson
0
333
Member Avatar for MattD00

[CODE] Dim myTabPage0 As New TabPage() myTabPage0.Text = "Event " & (TabControl1.TabPages.Count + 1) TabControl1.TabPages.Add(myTabPage0) Dim txt As New TextBox txt.Text = "Test" myTabPage0.Controls.Add(txt) [/CODE] Try if this helps u

Member Avatar for NetJunkie
0
417
Member Avatar for vasim jada
Member Avatar for vasim jada
0
98
Member Avatar for Aviplo

[CODE] Try Dim fBrowse As New OpenFileDialog With fBrowse .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*" .FilterIndex = 1 .Title = "Import data from Excel file" End With If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim fname As String fname = fBrowse.FileName Dim MyConnection As System.Data.OleDb.OleDbConnection Dim DtSet As System.Data.DataSet Dim MyCommand As …

Member Avatar for Aviplo
0
5K
Member Avatar for juniorsilver
Member Avatar for juniorsilver
0
207
Member Avatar for Ehtesham Siddiq
Member Avatar for violette

get those values into integers and compare. [CODE] Dim param As Integer = 122 Dim compval As Integer = Label.Text If compval > param Then MsgBox("greater") Else MsgBox("Less") End If [/CODE] This is just sample.. you need to make changes in ur case

Member Avatar for Pgmer
0
103
Member Avatar for jefroxnergal

you need to show the 2nd form first before calling tabpage2.show. [CODE] dim objfrm as new form2 objfrm.show() TabPages2.show() [/CODE] im not sure abt TabPages2.show() u may need to do activate or someother things.. try out

Member Avatar for jefroxnergal
0
93
Member Avatar for Capritarius21
Member Avatar for Raja Pandiyan
Member Avatar for mike_cao
Member Avatar for Netcode
0
272
Member Avatar for nanologic
Member Avatar for nanologic
0
117
Member Avatar for tebogop
Member Avatar for Ruchi224

Why cant you load the types into combobox? and when selected index changed and selected item is "Software" get the data for Software or u can use dataview for this and rebind the grid..

Member Avatar for Ruchi224
0
158
Member Avatar for Ruchi224

Ruchi224 please mark the thread as solved if its is solved. It helps the forum to maintain clean.. dont just escape after getting the soluution. Actulally i should post this.. but i saw two of ur post are solved but u forgot to mark as solved.

Member Avatar for Netcode
0
124
Member Avatar for aadi_capri

8 fixed lables? are you putting them in Panel or gropu box? And what are the names you have given them to identify the sequence?

Member Avatar for Mitja Bonca
0
460
Member Avatar for IT_Student_604

use picturebox.load method and pass ur Apppath where u keeping the pic. [CODE] Dim picpath As String picpath = Application.StartupPath & "\img1.jpg" picturebox1.Load(picpath) [/CODE] make sure pic will be there in the apppath

Member Avatar for NetJunkie
0
173
Member Avatar for Bucher

you want to update the same file? first delete the content and using io.write u can write back and save...

Member Avatar for Bucher
0
218
Member Avatar for debuggger
Member Avatar for aadi_capri

Go to the properties of lable.. under Image select the image u want to assign. Make the text emty. And set autosize=false and set the size you want.

Member Avatar for aadi_capri
0
113
Member Avatar for Ruchi224

At what line of code ur getting the error? [CODE] Imports System.Data Imports System.Data.OleDb Imports System.EventArgs Imports System.Data.OleDb.OleDbCommand Imports System.Data.OleDb.OleDbConnection Public Class ContactInfo_supp Inherits System.Windows.Forms.Form Dim Message As String Dim cn As OleDbConnection Dim cmd As OleDbCommand Private Sub button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button3.Click Try …

Member Avatar for Ruchi224
0
329
Member Avatar for aadi_capri
Member Avatar for naazsayed

Declare connection string in module level and consume in all the forms.If at all it changes u need to change only in the module not in all the forms.

Member Avatar for naazsayed
0
252

The End.