Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    256

    Re: Creating traffic simulator ??

    Well (where I'm at) normal traffic lights change, green > yellow > red > green > yellow etc, etc,...
    So if I set light to Green, Set timer interval to 10 seconds, and start the timer then in 10 secs...
  2. Re: DropDown Combo w/Search Button and Cue Text

    Didn't know about that!
    Thanks :thumb:

    EDIT: I probably just leave the code as is for awhile since CB_SETCUEBANNER is Vista minimum.
  3. VS 2010 Re: Handling special characters from a webpage

    I'm not a web guy so FWIW,.. Have you tried setting the Encoding to the charset setting used in the HTML?

    I was getting those diamond looking chars for some of the chars in member names here, for...
  4. Replies
    9
    Views
    256

    Re: Creating traffic simulator ??

    If OvalShape3.Visible Then ' if green change to yellow
    OvalShape1.Visible = False
    OvalShape2.Visible = True
    OvalShape3.Visible = False
    ElseIf OvalShape2.Visible Then ' if yellow...
  5. VS 2013 Re: CopyDirectory from CheckedListBox to CheckBox checked path Folder in VB

    Maybe just toggle the checkbox state so it is only detected once in the loop?,..



    For Each item In CheckedItems

    If CheckBox1.Checked Then
    CheckBox1.Checked = false
    ' do...
  6. Replies
    12
    Views
    172

    Re: How to copy text from a web page

    Not sure where it comes from but have VS 2010 Pro here as well, and is listed under the .NET references, back when I used it PC was Win 7 w/IE9.
  7. Replies
    12
    Views
    172

    Re: How to copy text from a web page

    If you want to copy the selected text on a browser control try a function similar to this,...



    ' function - returns the selected text of web browser control.
    Private Function...
  8. VS 2013 Re: Double Click on Textbox to open Windows explore path set on the TextBox

    Dim procInfo As New ProcessStartInfo()
    procInfo.UseShellExecute = False
    procInfo.FileName = "explorer.exe"
    procInfo.Arguments = """" & FolderPath & """" ' must be in double qoutes...
  9. Re: DropDown Combo w/Search Button and Cue Text

    Update v1.01:
    Added CueBannerText, This was a bit tricky since you can't call the SendMessage API until the control has been created.
  10. Replies
    6
    Views
    191

    Re: [RESOLVED] Convert String to Keys

    basically what I've used..


    Public Function KeyFromString(theKey As String) As Keys
    Dim kc As KeysConverter = New KeysConverter()
    Return CType(kc.ConvertFrom(theKey), Keys)
    End Function
  11. Replies
    6
    Views
    133

    VS 2010 Re: How to convert a Date in to an integer?

    Have you tried, FromOADate and ToOADate ?



    ' convert Integer to Date
    Debug.WriteLine(DateTime.FromOADate(41710)) ' 3/12/2014 12:00:00 AM

    ' convert a Date into an Integer
    Dim myDate = New...
  12. Replies
    6
    Views
    281

    Re: Record a certain window?

    By using the handle of the control you got by using APIs like FindWindowEx.



    You use MS SPY++ to figure that out,

    If you are dealing with EDIT/Textbox like controls then searching for,...
  13. Replies
    6
    Views
    281

    Re: Record a certain window?

    Looks like you're trying to use SendKeys, that wont work for windows that don't have the input focus. You'll need to get the handle of the control that you want to send data to (like text) using APIs...
  14. VS 2010 Re: working with selected text in Richtextbox control in vb.net

    That is exactly how I'd expect that code to work, SelectionText is just the chunck of selected text similar to a basic String, all that code does is set the selected text to a Tab char + the selected...
  15. Replies
    11
    Views
    346

    Re: Compare software versions

    Did you try any of the examples shown on the Version Class page?
    http://msdn.microsoft.com/en-us/library/hdxyt63s%28v=vs.110%29.aspx





    Const ver1 As String = "1.1.2.980"
    Dim ver2 =...
  16. Replies
    14
    Views
    311

    Re: [RESOLVED] Timer spanning multilpe forms

    DateTime and TimeSpan might work for that....


    Public Class Form1
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    TimerReset()
    ...
  17. Re: 2 elementary questions about vb.net function calls

    I haven't looked at IL, but turning off overflow changed the results, when compiled as x86 their is basically no difference at all between the tests, but under x64 TestType1 is now around 7.7% faster.
  18. Re: 2 elementary questions about vb.net function calls

    I always have optimization on and use Return.

    TestType1 is slower in my testing, but when compiled as x64 there is virtually no difference, < 0.03%, but compiled as x86 TestType1 is slower...
  19. VS 2010 Re: working with selected text in Richtextbox control in vb.net

    What have tried?

    A lot of properties/methods are named for exactly what they do, type the name of the control followed by a period char and the Visual Studio's IntelliSense list should be shown....
  20. Re: 2 elementary questions about vb.net function calls

    MSDN claims using Return is more efficient then doing it the old VB6 way.
  21. Replies
    5
    Views
    198

    VS 2013 Re: loop, combobox and timer question

    The number of items doesn't matter, use the .Count method to get the number of items, collections are zero based so you'd subtract one from the Count to get last item, the very first item is at index...
  22. Re: Boolean - conversion from string error

    First I'd add a EXIT FOR after, CorrectAnswerGiven = True.

    As for variables not working in other subs only thing I can think of is to check to make sure you didn't declare the same named variable...
  23. Re: Radio button - which number selected?

    EDIT One possible way,...


    Public Class Form1

    Private radBtnAnswers() As RadioButton

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    ...
  24. Replies
    11
    Views
    614

    VS 2010 Re: need to loop thru checked items

    Sorry, I don't understand what you're asking.
    You may get more help if you explained the problem in more detail and only post the relevant code parts.
  25. Replies
    11
    Views
    614

    VS 2010 Re: need to loop thru checked items

    Still working on that eh?
    I still have test code, i tried it like this to get all checked items, then display text and 1st subitem text (is zero unlike VB LV control).


    Dim checkeditems() As...
  26. Replies
    2
    Views
    194

    VS 2013 Re: Form close and show issue

    Check the "Shutdown mode" option in Application tab.
  27. VS 2013 Re: Can't run multiple NotifyIcon applications simultaneously

    Not really sure, Google it. ;)

    I just use the GUID generator (guidgen.exe) thats included in VS 2010.
  28. Replies
    4
    Views
    221

    VS 2010 Re: FindWindowEX Dublicate classnames?

    If I'm following your problem correctly then I think you're doing it wrong.
    To get the first control with a certain classname in a container you pass zero for childAfter, to get the next control...
  29. VS 2013 Re: Can't run multiple NotifyIcon applications simultaneously

    Did you use a copy of the same project?, I do this all the time and for single instance apps as well, the one thing that must be unique is the GUID. Open the Assembly Information Dialog and check the...
  30. Thread: Forms zorder

    by Edgemeal
    Replies
    2
    Views
    228

    VS 2013 Re: Forms zorder

    I have no clue if .Net has anything built in for that, but EnumWindows API seems to work (tested w/Win7 only). Using regular forms, the ones set to TopMost were listed first in their current Zorder,...
  31. Re: Create Survey with 300 questions

    I don't see where you are displaying the first Q, you probably want to do that in form load, try...



    Private Sub Form_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    ...
  32. Re: Create Survey with 300 questions

    So that the last line written to the file will not have a carriage return added to it.

    Same thing but using a String Builder,..


    Private Sub Convert_To_CSV(ByVal path As String)
    Dim...
  33. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    You can call a control by name no matter what container it is in, but to use ".Controls" where you pass the control name by string then you must tell it which container the controls are in.

    I...
  34. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    Sorry for any confusion. :o
    We sometimes forget what it was like to be a newbie, and I pretty much suck at explaining things clearly.
  35. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    Me.GROUPBOX_NAME.Controls(bla bla bla...)


    A better way is to declare an array for the lables at the top of the class, in form load add your lables to the array in the same order you want to...
  36. Re: Applying focus and Ensuring Visible an ListView Item

    If you want to search for a partial word match try using the .Contains method, your search code appears to only test if the listview item text starts with the search word and assumes that the...
  37. Replies
    3
    Views
    286

    Re: ListBox and If... Else Project

    I suppose a Dictionary should work,...


    Public Class Form1

    Private dogList As New Dictionary(Of String, String)

    Private Sub Form1_Load(sender As System.Object, e As...
  38. Replies
    25
    Views
    705

    VS 2010 Re: What's wrong? And why doesn't this work?

    My guess is you forgot to include MyBase.WndProc(m) at the end of Sub WndProc.
  39. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    Why are you declaring dblAvg as an array in the structure, do you have more then one average per student? :confused:
  40. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    That code is very repeitive, the only thing that changes is the index to the array, you could use For-Next loops to make it easier to read and maintain, something like...



    ' Get and store the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.