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. VB4Life

    Array of controls in VB.net

    Just rereading your original post, are you adding labels that already exist on your form, or are you need to dynamically add them? If you are just adding a group of existing labels you could do this: 'make the collection Dim lbs As New List(Of Label) 'add the labels lbs.AddRange(New Label()...
  2. VB4Life

    Array of controls in VB.net

    Easier to add/remove collection items, in my opinion. The code looks cleaner and makes more sense - to me. So I guess I should have said IMHO. Wasn't trying to offend.
  3. VB4Life

    Array of controls in VB.net

    Do you mean the code you have from earlier that does not work? That's why i posted a different solution - one that works better than an array. Do you need more info on how it works?
  4. VB4Life

    Array of controls in VB.net

    The framework is your version of VS. 2008 is FW 3.5, 2005 is FW 2.0. Meaning as long as you are using VS2005 or later the Generics List(Of T) is available for you. This is a great new class that in my mind replaces ArrayList - it helps avoid casting errors as it is a type specific collection.
  5. VB4Life

    Print Word Doc without openning it

    Also to close the WINWORD.EXE process call: Marshal.FinalReleaseComObject(oDoc)
  6. VB4Life

    Array of controls in VB.net

    As long as you are using framework 2.0 or > then: 'class declaration, type specific collection/no need to cast the type Dim myLabels As New List(Of Label) For i As Integer = 1 To 10 Dim l As New Label 'add stuff to properties myLabels.Add(l) Next 'index access myLabels(0).Text =...
  7. VB4Life

    Help in Word and Excel

    The easiest thing to do is Google 'vb.net word automation' and whatever you do - do not use CreateObject just use the new keyword and you will be fine. Remember to release the Com object or the process will not close.
  8. VB4Life

    Help in Word and Excel

    Can you show me your Word automation code so I can see where you going wrong?
  9. VB4Life

    VB.Net 2008 Setting References

    In your project's solution explorer right click on the project name and select 'Add Reference' then add it.
  10. VB4Life

    Word versions.

    Ok, so add the diff object libraries. I won't have any feature conflicts as the doc are pretty basic. Thanks @PRPhx
  11. VB4Life

    Word versions.

    Has anyone messed around with this; if I add the Word object library 12.0 (Word 2007), work with some 97-2003 templates (which works fine on my computer) will incur any issues when a client's computer has Word 2003 and not Word 2007 - due to the object library? Thanks...
  12. VB4Life

    How do you locate and delete an item from a listbox?

    If listbox1.Items.Contains("something") Then listbox1.Items.Remove("something") End If
  13. VB4Life

    Beginning programmer seeks cleaner code...

    I am with Bob, and if you have several groups that need the same location you can stack the panels on the same location and use the BringToFront() property of the panel you want to show.
  14. VB4Life

    Problem openning and closing word documents

    That is strange, mine does not do that. The only real difference I can see is I don't use CreateObject. I just Dim oWord as New Word.Application. CreateObject can be hard to close, have you checked your processes to make sure it is ending? If you are having trouble with that part try this sub...
  15. VB4Life

    Word schema.

    I am sorry I apparently have asked the Holy Grail of all questions, my apologies. I will sign myself up for good flogging...
  16. VB4Life

    Word schema.

    I have added a schema to my word doc, and placed the elements in the doc. How do I fill the word doc via an Xml that is the same format? I am using VB.Net automation. Thanks
  17. VB4Life

    Strange RichTextBox.Select(0,x) problem

    Are you using this code in the textchanged event. If not try putting it there, you may have to clear the backcolor then use your code.
  18. VB4Life

    Parse CSV file with quotes (sometimes)

    Can be, like with VbCrLf does not always work(linux), but Environment.NewLine will. The same thing goes for file locations if you store stuff in the localAppdata file(which is common) the path may fail, but Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) will work for all...
  19. VB4Life

    Password char.

    agooddatamgr, thank for replying, but I am well aware of that. I am not a noob, just found something that is not working as it should. If you read my posts you will see I already said what you said, but I don't want an "*". Anyway the problem is resolved.
  20. VB4Life

    Password char.

    I not talking about the bug being with PasswordChar it is with UseSystemPasswordChar not able to do this in Vista.

Part and Inventory Search

Back
Top