Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. heseir

    Combobox with empty first value

    Nevermind, solved it. If anyone is interested, I solved it using this code: DataRow drNew = null; drNew = ds.Tables[0].NewRow(); drNew["ID"] = 0; drNew["DESCRIPTION"] = ""; drNew.EndEdit(); ds.Tables[0].Rows.InsertAt(drNew, 0); Best regards, Eirik Hesthamar Norway
  2. heseir

    Combobox with empty first value

    Hallo, I have this code today: dv = new DataView(ds.Tables[0]); cbo.DataSource = dv; cbo.DisplayMember = "DESCRIPTION"; cbo.ValueMember = "ID"; This gives me a combobox / DropDownList which always choose a value. Since the combobox is optional, this needs to be changed, so that the default top...
  3. heseir

    Calculate minutes between two 24-hour time values

    First class answere!! And the reply speed was beyond words!!!! Were you just sitting around waiting for my question ;-) Thanks!!!!!!!!!! Best regards, Eirik Hesthamar Norway
  4. heseir

    Calculate minutes between two 24-hour time values

    Hallo, In VB6 i used this function: Function TimeDiff(ByVal inTime As String, ByVal outTime As String) Dim ainTime As Date, aoutTime As Date Dim mElapsed As Long ainTime = Format(Right("0" & inTime, 4), "@@:@@") ' right justify the inTime aoutTime = Format(Right("0" & outTime...
  5. heseir

    Hidden main form, and toplevel trouble

    Hallo, I just can't get this one figured out. I have a frmMain which contains some logic which controlls my app. 1.frmMain loads [STAThread] public static void Main() { Application.Run(new frmMain()); } 2.frmMain calles StartUp() which looks something like this: private void...

Part and Inventory Search

Back
Top