Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 12 1 2 3 4

Search: Search took 0.11 seconds; generated 57 minute(s) ago.

  1. 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,...
  2. 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
    ...
  3. 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...
  4. Re: How can I add a message in listbox is the line number is specified

    FWIW, the OP asks the exact same questions on MSDN forums, and often marks replies there as answers, yet never returns here to share thsoe solutions with this forum and/or marks threads here as...
  5. 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...
  6. 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.
  7. 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...
  8. 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...
  9. Replies
    3
    Views
    170

    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...
  10. Replies
    25
    Views
    543

    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.
  11. 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:
  12. 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...
  13. 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...
  14. VS 2010 Re: [VB.NET] Condition when ComboBox indexchanged

    Why not just use a DateTimePicker control?
  15. 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.
  16. Replies
    13
    Views
    261

    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)
  17. Replies
    2
    Views
    197

    Re: _Scroll not being called??

    Maybe inherit the control and RaiseEvent for ScrollToControl?




    Public Class FLPanelEx
    Inherits FlowLayoutPanel
    Public Event ScrollingToControl()

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

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

    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:
  20. 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...
  21. 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...
  22. VS 2013 Re: im a newbie to vb and im having difficulties coding this, can anyone help?

    comboBox1.Items.Add... needs to be inside a sub/func, like button_click, form_load, etc,etc,...




    Public Class Form1

    Private customer_name() As String = {"john", "aaple"}

    Private...
  23. 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...
  24. 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...
  25. Replies
    3
    Views
    172

    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!
  26. 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...
  27. Replies
    13
    Views
    318

    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.
  28. Replies
    13
    Views
    318

    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...
  29. 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?...
  30. 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...
  31. 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...
  32. Replies
    0
    Views
    429

    [RESOLVED] YouTube Video Test

    ok works. - video was deleted
  33. 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...
  34. 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...
  35. VS 2012 Re: Get all window locations, sizes and names?

    Got $10? ;)
    Windows Blinds.
  36. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Ya wow, went from around 45ms to 5ms on my PC.



    Compiled x64, FW 4.0, Win7-64, 1920x1080, i7-3770.

    i00: Color [A=255, R=156, G=149, B=173] 16.4221ms
    i00: Color [A=255, R=156, G=149,...
  37. Replies
    9
    Views
    263

    Re: Problems in MousePosition

    Well the API returns an IntPtr, so we declare our variable the same way, the API parameter is a Point, so we pass it our values as a Point,
    Dim list As IntPtr = WindowFromPoint(New Point(25, 746))...
  38. Replies
    9
    Views
    263

    Re: Problems in MousePosition

    The code only worked if I set my compile option to x86, so I set it back to x64 and changed the WindowFromPoint declare to pass Point, and then it worked,.,


    Option Strict On
    Imports...
  39. Thread: Loop Counter

    by Edgemeal
    Replies
    10
    Views
    370

    Re: Loop Counter

    I thought the same thing, so can only guess that is the way classic VB worked? (don't have VB6 installed here to test that).
  40. Replies
    8
    Views
    211

    VS 2013 Re: Random Item from ListView

    You really should have Option Strict On, you can set it in Project properties > Compile, and also set it to On in Tools > Options > VB Defaults so that all future projects set it to On by default,...
Results 1 to 40 of 475
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.