Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    11
    Views
    566

    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.
  2. Replies
    11
    Views
    566

    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...
  3. VS 2013 Re: Check if 2 listboxes have selected items

    I would probably set the button1 enable property in the list boxes selected index change event, also you can combine that event for both lists, example...


    Public Class Form1

    ' form load
    ...
  4. Replies
    2
    Views
    168

    VS 2013 Re: Form close and show issue

    Check the "Shutdown mode" option in Application tab.
  5. 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.
  6. Replies
    4
    Views
    156

    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...
  7. 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...
  8. Thread: Forms zorder

    by Edgemeal
    Replies
    2
    Views
    190

    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,...
  9. Re: Load POWERPOINT viewer directly into Form?

    Show us the code you are using, but this generally works for most apps,...


    Imports System.Runtime.InteropServices

    Public Class Form1

    <DllImport("user32.dll", SetLastError:=True,...
  10. 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
    ...
  11. 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...
  12. 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...
  13. 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.
  14. 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...
  15. 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...
  16. Replies
    3
    Views
    230

    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...
  17. Replies
    25
    Views
    649

    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.
  18. 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:
  19. 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...
  20. VS 2010 View Post

    Does this help?


    Public Class Form1

    ' array to hold 2 List Of Textbox
    Private textBoxGroup(1) As List(Of TextBox)

    Private Sub Form1_Load(sender As System.Object, e As...
  21. VS 2010 Re: [VB.NET] Condition when ComboBox indexchanged

    Why not just use a DateTimePicker control?
  22. VS 2010 Re: Writing a file when power goes out

    I'd invest in a battery backup unit, like a APC BackUps (or other good brand), I have them on all my PC's and they are worth every penny, they also protect your hardware from voltage spikes and drops.
  23. Replies
    13
    Views
    319

    Re: how can extrect name john from the text?

    try indexof and substring, ..


    dim extrectname as string = ""
    dim index = RTB.Text.indexof(":"c)
    if index > 0 then extrectname = RTB.Text.substring(0, index)
  24. Replies
    2
    Views
    232

    Re: _Scroll not being called??

    Maybe inherit the control and RaiseEvent for ScrollToControl?




    Public Class FLPanelEx
    Inherits FlowLayoutPanel
    Public Event ScrollingToControl()

    Protected Overrides Function...
  25. Re: Storing a Connection String in My.Settings?

    Not nessasarily true, the OP could have the "Save My.Settings On Shutdown" option disabled.
  26. Replies
    9
    Views
    299

    Re: Problems in MousePosition

    Good suggestion!
    I don't see how anyone can be programming in API and not know what types to pass, running before they can walk! :eek:
  27. VS 2012 Re: How to handle MenuStripBar Layout?

    The sizing grip makes it really hard to select the button in the StatusStrip, if I disable that it seems to work pretty good,


    Private Sub Form1_Load(sender As System.Object, e As...
  28. VS 2012 Re: How to handle MenuStripBar Layout?

    Try CanOverflow , Overflow ?


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    MenuStrip1.CanOverflow = True
    For i = 0 To...
  29. Re: pls help findwindowex windows capture EnumChildWindowProc

    EDIT: My converted VB6 code worked after all, must of been something else wrong,
    anyway, If you pass this function the foreground window handle it should return the child window handle that has...
  30. Re: AES padding is invalid after first file opened

    I'm not sure why you would be required to call .Dispose in that sub, once out of scope GC should take care of that I would think.

    MS doesn't call .Dispose in their code example either, which looks...
  31. Replies
    3
    Views
    212

    VS 2010 Re: Creating a REAL progress bar?

    Member jmcilhinney has some great examples here , so I Google: splash screen jmcilhinney site:vbforums.com

    First hit, Splashscreen perform action

    Post #3 sounds like a good start. Good luck!
  32. VS 2008 Re: Created Class dosnt read data from DGV in FORM3

    Its not a good idea to hard code the form name in code, that class is actually looking at the default instance of Form3, so it wont work with a any new instances of form3.

    I would try passing the...
  33. Replies
    13
    Views
    358

    VS 2012 Re: Error creating window handle- urgent advice needed

    Great!
    I got into the habit of using, Using - End Using where possible, its easy to forget to call .Dispose.
  34. Replies
    13
    Views
    358

    VS 2012 Re: Error creating window handle- urgent advice needed

    How about checking the GDI count of the app while in use?
    Windows task manager > processes tab > GDI Objects column. (may need to add this column, not shown by default)

    When code creates a GDI...
  35. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    OK Great, now do us a favor and mark this thread as Resolved from the "Thread Tools" menu near the top-right of this thread.

    How do I mark a thread Resolved? / Why mark your thread resolved?...
  36. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    If you want to automate a mouse click then you need to use API, have a look at SendInput, though using Win7 here the mouse_event API still works for this,



    Private Declare Auto Sub mouse_event...
  37. Re: find an item text in a multi-coulum (checked) listview in vb 2010 express

    Try get the lv item, then use that to select the item, etc,etc,.. e.g..


    Dim lvi As ListViewItem = ListView1.FindItemWithText("text", True, 0)
    If lvi IsNot Nothing Then
    lvi.Selected = True...
  38. Replies
    0
    Views
    911

    [RESOLVED] YouTube Video Test

    ok works. - video was deleted
  39. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    http://support.microsoft.com/kb/143045
    classic vb, so you'll need to convert it to .net.

    EDIT


    Not sure how safe using a .net Point as a Ref in anAPI call is, but I know using a .net...
  40. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    Those APIs are not even declared for vb.net, you should know that much by now.
    You need to show some effort, members will help, but not do your homework for you!

    If you need help declaring APIs...
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.