CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dajunka

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    5,907

    Re: The best way to get random numbers.

    I am a amateur, but like to now and again make some small programs. It's fun.
    I have been with these forums for quite some years, because I have always found it so friendly and helpful with members...
  2. Replies
    6
    Views
    5,907

    Re: The best way to get random numbers.

    Really?
    Any chance of a quick code demonstration? It would save me having to go into the loft and dusting of my old books. :)
  3. Replies
    6
    Views
    5,907

    The best way to get random numbers.

    I want to get the closest I can to choosing true random numbers. Is this simple routine okay, or is there a better way?


    Randomize()
    For Me.a = 1 To 250
    listbox1.items.add (Rnd() *a)
    next
    ...
  4. Replies
    3
    Views
    3,908

    Re:(SOLVED) How can I auto scroll to SelectedIndex?

    For instance, let say I have 2 combobox and I want to take the selectedindex from the first one, then have the second combobox scroll to the same index but without the index being highlighted or...
  5. Replies
    3
    Views
    3,908

    Re: How can I auto scroll to SelectedIndex?

    Thanks, but with with this the item is selected, what I need is for the combo box to scroll to the area where the last selected index was without selecting it. If you get my drift? :)

    I think in...
  6. Replies
    3
    Views
    3,908

    How can I auto scroll to SelectedIndex?

    After I have selected a entry from my combo box and recorded it's selected index, and then clear and re-list the combo box, how can i then have the combo box scroll to the selected index that I have...
  7. Replies
    2
    Views
    1,249

    Re: Scrolling a list box.

    Worked a treat, thank you.
  8. Replies
    2
    Views
    1,249

    [RESOLVED] Scrolling a list box.

    What is the best way to force a list box to visually scroll down the list as things are added to it from within the program?

    Thank you.
  9. Replies
    9
    Views
    1,329

    Re: When was text file created? (resolved)

    Your right DataMiser, and I did find it, but the examples I found all had errors of one kind or another.

    On the other hand your answer worked perfectly, thank you very much, I can now proceed with...
  10. Replies
    9
    Views
    1,329

    Re: When was text file created?

    Can you by any chance remember how to use "fileinfo"? I have tried it a few ways without result.

    That VB6 code I got from these forums, years back, and it worked well for me at the time. :)
  11. Replies
    9
    Views
    1,329

    Re: When was text file created?

    Sorry, but that didn't work.

    It seems this is one of those many things that VB.net is not very good at. In VB6 I use to do it like so...


    Requires reference to Microsoft Scripting Runtime
    ...
  12. Replies
    9
    Views
    1,329

    Re: When was text file created?

    Sorry, but that didn't work.
  13. Replies
    9
    Views
    1,329

    Re: When was text file created?

    By searching I found these solutions but I cannot get them to work.

    File.GetLastWriteTime(fileName)

    and

    File.GetCreationTime(fileName)

    Any idea's?
  14. Replies
    9
    Views
    1,329

    [RESOLVED] When was text file created?

    I want to display the date a text file was created and modified could anyone point me in the right direction? Visual studio 2008

    Thank you :wave:
  15. Replies
    7
    Views
    1,423

    Re: Pausing a program.

    Very strange, I did think with VB-net being so powerful and all, that there would be a simple command for this. Well you live and learn.

    Thank you for your replys.
  16. Replies
    7
    Views
    1,423

    Pausing a program.

    Is there any way I can pause my program and for it to need a key-press to resume?

    Thank you.

    Net 2008
  17. Replies
    3
    Views
    1,100

    Re: Adding date to file name.

    Oh my word, I would not have found that in a million years. :blush:

    Thanks very much, just changed the little blighter's "/" for "_" and Bobs your uncle. How could something so simple give me...
  18. Replies
    3
    Views
    1,100

    [RESOLVED] Adding date to file name.

    This has become a major headache for me. :sick:

    I am simply trying to add the days date to a filename.


    FilePathStr = Environment.CurrentDirectory() & "\Data\Data Archive\Padding " & Mydate &...
  19. Replies
    6
    Views
    878

    Re: Splitting text from numbers.

    Oooh, this one is going to take some thinking about. :)
  20. Replies
    6
    Views
    878

    Re: Splitting text from numbers.

    Hi! :wave:

    Thank you so much, that really helps, and written in a way that even a fool like me may understand. :)

    As a point of interest, I have noticed this in some examples...

    arrSplit =...
  21. Replies
    6
    Views
    878

    Splitting text from numbers.

    Is there a .split command that would allow me to separate numbers from text in a given string.

    Mystring = "1234, this, is, text,5678"

    Using the split command I would just like for

    this
    is...
  22. Replies
    17
    Views
    2,008

    Re: Where has the subroutine gone?

    Well, I have just finished my first little program and it works really well.
    It was a lot of hard and frustrating work, and a few times I nearly gave up.

    Now I have cracked the surface it should...
  23. Replies
    17
    Views
    2,008

    Re: Where has the subroutine gone?

    So sorry. I found out what happened.
    With my experiments with loading and saving data somehow my data file had been empted, the file was still there but was minus all it's data, and that's why my...
  24. Replies
    11
    Views
    1,089

    Re: How do I make this work in vb.net?

    Yeehee!! I have done it, and it works like a charm :)

    Thank you so much for all of you who took time to help, it is very much appreciated.

    Now that I have learned to load and save I can move...
  25. Replies
    17
    Views
    2,008

    Re: Where has the subroutine gone?

    This net thing is so flipping frustrating, it's so hard to get anything to work with it.

    I made a sub routine as I was shown, and placed my load data routine into it that I know works perfectly,...
Results 1 to 25 of 158
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured