Search:

Type: Posts; User: mquamar

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Thread: WITSML in .Net

    by mquamar
    Replies
    2
    Views
    1,030

    WITSML in .Net

    I am trying to create a simple WITSML formatted document in .net; could someone please help?
  2. VS 2010 Re: copy and Move Data Between two Access Databases

    jmcilhinney,
    I've gone through the articles in Codebank but not sure what to do in the following code where I have marked with ???. I need to read data from table [Employee] and write that data to...
  3. VS 2010 Re: copy and Move Data Between two Access Databases

    Yes, this needs to be done in VB.Net.
  4. VS 2010 copy and Move Data Between two Access Databases

    I have two MS Access database; Mydb1 and Mydb2. I would like to do the following:
    1. Copy all records in table (MyTable1) from Mydb1 to Mydb2. MyTable1 also exists in Mydb2

    2. Move all...
  5. Replies
    4
    Views
    684

    VS 2010 Re: Reference a control dynamically

    The following code gives me an exception:
    "Object reference not set to an instance of an object."


    For n As Integer = 1 To i
    DirectCast(Me.Controls("txt" &...
  6. Replies
    4
    Views
    684

    VS 2010 Reference a control dynamically

    I have a few text boxes on my form (txt1, txt2, txt3...) and would like to assign values to them based on the index.
    I not sure how to describe but Something similiar to the following:



    dim...
  7. VS 2010 Re: [RESOLVED] How to create multi-dimensional array from datareader from datareader

    Could you please help me with some sample code?
  8. VS 2010 [RESOLVED] How to create multi-dimensional array from datareader from datareader

    I have an SQL statement like:
    SELECT FNAME, LNAME, CITY from EMPLOYEE

    How do I create a multi-dimensional array from a datareader which should store values like:
    John, Doe, LA
    Mike, Johnson,...
  9. Replies
    4
    Views
    1,050

    VS 2010 Re: Error in Mouse Hover/Leave

    Thanks, Chris
  10. Replies
    4
    Views
    1,050

    VS 2010 Re: Error in Mouse Hover/Leave

    I am trying to create an event handler cboJob for two combo boxes (cboJob1 and cboJob2)
  11. Replies
    4
    Views
    1,050

    VS 2010 Error in Mouse Hover/Leave

    I have two comboxes inside a panel and have the following code which generates an error "Object reference not set to an instance of an object." on the line marked with *****



    Private Sub...
  12. Replies
    5
    Views
    4,996

    VS 2010 Re: Add image to dynamically created button

    Actually I have just noticed that the file path had a typo; it works fine now.

    The exception was not generating any errors for some reasons.
  13. Replies
    5
    Views
    4,996

    VS 2010 Add image to dynamically created button

    I am trying to add an image to button but it errors out on line marked with ****



    For i As Integer = 0 To 4
    Dim B As New Button
    Me.Controls.Add(B)...
  14. VS 2010 Re: Search all items in a ComboBox based on a Search Criteria

    Thanks... It worked great.
    I just had to add StringComparison.InvariantCultureIgnoreCase t o ignore the case.
  15. VS 2010 Re: Search all items in a ComboBox based on a Search Criteria

    the combobox is unbound and filled manually (cboCity.items.Add(sCity))
  16. VS 2010 [RESOLVED] Search all items in a ComboBox based on a Search Criteria

    I have three controls on my form; Textbox1, cboCity, lstCity
    When something (lets say "a") is entered in the TextBox1; I want to get each and every item in combobox cboCity that starts with "a"...
  17. Replies
    3
    Views
    1,361

    VS 2010 Re: Format 4-digit Textbox input to a date

    I do not want to display the time; only need the date string.
  18. Replies
    3
    Views
    1,361

    VS 2010 Format 4-digit Textbox input to a date

    How to I convert/format a textbox entry 0215 to either 02/15 or 02/15/2012
  19. VS 2010 Extract File Path from a Connection String

    How do I extract the file path from the following connection string?

    Dim Con = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Data\MyApp\MyDB.mdb;Jet OLEDB:Database Password=MyDbPassword;"
  20. Replies
    3
    Views
    706

    VS 2010 Re: Unable to trap error

    Thanks
  21. Replies
    3
    Views
    706

    VS 2010 Unable to trap error

    Please review the following code; it is not able to trap the error and the code
    errors out (OleDbException was unhandled) on the code marked with *



    Private sub SaveEmployee()
    ...
  22. Replies
    4
    Views
    824

    VS 2010 Re: A date only texbox

    I need help, please!
  23. Replies
    4
    Views
    824

    VS 2010 Re: A date only texbox

    I do not want to use date/time control at all. I want to have a text box and have flexibility to enter dates in many different ways.
    2/17 or 2-17 or 02/17 or 2/17/2012; it will convert to ...
  24. Replies
    4
    Views
    824

    VS 2010 A date only texbox

    How do I make a textbox control to accept dates only and convert to a valid date format? I don't want to use the calander control.
    e.g.
    if I enter 2/17 or 2-17 or 02/17 or 2/17/2012; it will...
  25. Replies
    2
    Views
    555

    VS 2010 Re: Reference a control with index variable

    thanks
  26. Replies
    2
    Views
    555

    VS 2010 Reference a control with index variable

    How do I reference txtCourse1.text and txtDept1.text using an index variable similar to to code below which does not work?




    'two controls on the form
    txtCourse1.text
    txtDept1.Text ...
  27. Replies
    2
    Views
    2,742

    VS 2010 Re: ViewState is not declared...

    Thanks, I will follow your directions.
  28. Replies
    2
    Views
    2,742

    VS 2010 ViewState is not declared...

    How do I convert the following ASP code (vb.net) to win form (vb.net)? I get a n error on ViewState.



    Protected Sub TextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)...
  29. VS 2010 Check if the original value of textbox has changed

    How do I check if the original value of a text box has been modified?

    I have a few textbox controls on a form. When form loads; user enters data in these fields but later change his mind and...
  30. Replies
    2
    Views
    693

    VS 2010 Re: Update Gridview from textboxes

    My apology... It is DataGridview.
  31. Replies
    2
    Views
    693

    VS 2010 Update Gridview from textboxes

    I have a form with many text tboxes; 5 text boxes (columns) in each row; each row will become a record.
    FName1 LName1 SSN1 EmpID1 Dept1
    FName2 LName2 SSN2 EmpID2 Dept2...
  32. Replies
    6
    Views
    1,112

    VS 2010 Re: Tab and Enter key - Really need Help...

    I was suppose to rename frmInvoice to frmZipCode...

    I'v tried your code; ENTER key works but TAB will not respond.
  33. Replies
    6
    Views
    1,112

    VS 2010 Re: Tab and Enter key - Really need Help...

    Public Class frmZipCode
    Private Sub frmZipCode_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Me.KeyPreview = True
    End Sub

    Private Sub...
  34. Replies
    6
    Views
    1,112

    VS 2010 Re: Tab and Enter key - Really need Help...

    I am not sure what you are asking me to do but I have modified it to be a complete code.
  35. Replies
    6
    Views
    1,112

    VS 2010 Tab and Enter key - Really need Help...

    I am trying to do the following:
    1. When ENTER key is pressed in txt1.text (zip code as numeric only); validate zip code against a list in a combo box cboZip (string value). If it exists then tab...
  36. VS 2010 Re: Detecting when the tab key is pressed in a textbox

    Thanks, ident; it worked great.
  37. VS 2010 Re: Detecting when the tab key is pressed in a textbox

    Here is the code..
    If (e.KeyCode = Keys.Tab) Then
    MessageBox.Show("Tab Key")
    End If

    My default focus is on a textbox which accepts only numeric values. I enter...
  38. VS 2010 Detecting when the tab key is pressed in a textbox

    I thought it was simple but i guess it's not...
    How do I detect when the tab key is pressed in a textbox?

    I've tried the following code in KeyPress, KeyDown, Leave, etc. events but the tab is not...
  39. VS 2010 Re: Check wheter a button or textbox is clicked.

    txt1.text accepts numeric value (zip code); I validate the zip code.
  40. VS 2010 Re: Check wheter a button or textbox is clicked.

    The button btnExit needs to be enabled since it's an EXIT button and can be clicked regardless of what was entered in txt1.text.
Results 1 to 40 of 47
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width