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 strongm 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. Qamgine

    object reference not set to an instance of an object

    Try pasting all of your code at http://www.nomorepasting.com and then just link to it from here. Or just put the code that you are having a problem with in a code block.
  2. Qamgine

    Extract selections from a listbox

    Glad to help.
  3. Qamgine

    Extract selections from a listbox

    You need to specify the column of the data you want returned. i.e: Dim tmpRowView = CType(ListBox1.Items(0), DataRowView).Item(<fieldindex>).ToString Where <fieldindex> is the column of your db table you want to display.
  4. Qamgine

    listview

    No problem. :)
  5. Qamgine

    object reference not set to an instance of an object

    Perhaps if you provide the code where the error is being raised, we might be able to see what is wrong.
  6. Qamgine

    listview

    Are you populating the listview with records from a database? If so, just store the RecordID in the .Tag property of the ListViewItem. 'Populate ListView Dim lvwItem as new ListViewItem lvwItem.Text = myDataReader("Field1") lvwItem.Tag = myDataReader("RecordID") lvwMain.Items.Add(lvwItem)...
  7. Qamgine

    computed column primary key does not allow nulls

    If you absolutely must do it that way then do this. You have to first add the record and then update it after it's committed. 1.) Allow the JobID to be NULL or allow dummy data like (1234). 2.) When you create the initial record, either leave JobID NULL or entered random information in there...
  8. Qamgine

    computed column primary key does not allow nulls

    Okay, this is more of an SQL question, not VB.NET. When you create a record in a table, the record identifier (AutoID) is actually NULL. It only gets assigned the unique ID "after" it has been saved. Seeing that JobID does not allow NULLs, the record wont "save". Question, if you are just...
  9. Qamgine

    SQL Query from VS2005 - am I doing it right?

    Without knowing the scope of the application, I would suggest that you only do these types of checks before an update / save / display through the interface. Meaning: If your interface allows them to create a record in your database, don't do any error checking until the user clicks "Save,OK...
  10. Qamgine

    Change the property of an external window

    If you wrote both applications you could send tcp or udp messages back and forth. You could imbed commands into the tcp /udp messages that either program could interpret and respond accordingly. You could also do something less dynamic as to use a config file / registry entry and poll the...
  11. Qamgine

    Using dataset to populate Crystal Reports parameters

    Okay, you are using parameters as fields in your report. Ideally, you want to create a stored procedure with input variables and then link the fields in the report. Then you can run the report based on the input parameters for your stored procedure. Example: I have a report that links to the...
  12. Qamgine

    Autosizing textboxes results cover controls

    Is there a limit to the amount of text that can be entered into the first textbox? If so, you can set the textbox to be multiline and make it large enough to see all of the text up to the max text length. Most typing tests are like this. Do a google search for typing speed tests, and you can...
  13. Qamgine

    How do I create multiple column combo boxes?

    Here are two resources: http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/Icon_ComboBox/article.asp http://www.codeproject.com/vb/net/multicolumncombo.asp
  14. Qamgine

    Write to DataReport

    Sorry, it should be "Select {?FruitOpt}" for proper Crystal Syntax.
  15. Qamgine

    Requiring specific version of DLL

    Take a look at Launch Conditions. http://vbcity.com/forums/topic.asp?tid=83584
  16. Qamgine

    Deploy Application

    If you follow the VB.NET tutorial, it will show you how to add a desktop shortcut. "Most" VB.NET tutorials encompass VS 2003 - 2005 with very few hitting 2008. http://www.devarticles.com/c/a/VB.Net/Deploying-Applications-in-VB.NET-Part-1/2/
  17. Qamgine

    Deploy Application

    This is a great place to start: http://www.devarticles.com/c/a/VB.Net/Deploying-Applications-in-VB.NET-Part-1/1/
  18. Qamgine

    Write to DataReport

    Okay. Create your parameter. For argument sake, let's say it's a accepts integer values (1-4) which should correspond to 4 different labels ("Apple", "Orange", "Pear", "Pineapple"). We'll name the parameter "FruitOpt". Next, create a Formula Field. We'll name it "Fruit".In the Forumla editor...
  19. Qamgine

    vb.net certain excel file left running

    Okay, I just saw the ep.MainWindowTitle = "" catch, but even still. It's not wise to close Excel that way. Use .Quit.
  20. Qamgine

    vb.net certain excel file left running

    mansii, If you use the code to iterate through every process that is Excel.exe, then what happens if I open Excel to work on a project and I run your app at the same time? Now let's say I didn't save. Your app just hosed the last hour of work I just did. objExcel.Quit is the correct line to...

Part and Inventory Search

Back
Top