Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: Why does VB 2010 keep crashing?

    I doubt 2 gigs of ram is enough.

    FWIW, I've never had any luck with Windows using the swap file as memory, the system just slows to a crawl and crashed.
  2. Re: Opening an application at a specific tab.

    I'm glad it helps, I wasn't sure how you select a tab on an external app, so I looked at taskmanger with SPY++, get the classname of the tab control, google "SendMessage SysTabControl32", found code...
  3. Re: Opening an application at a specific tab.

    UPDATED:
    I don't think task manager has any command line arguments to set the tab, So you'll probably need to send it a message to select the tab. I re-did it like this so it launches and sets the...
  4. Thread: Scrolling

    by Edgemeal
    Replies
    7
    Views
    236

    VS 2010 Re: Scrolling

    Maybe put the panel with pic boxes inside another panel,



    Public Class Form1

    Private dragging As Boolean
    Private pnt As Integer

    Private Sub Form1_Load(sender As...
  5. Thread: Scrolling

    by Edgemeal
    Replies
    7
    Views
    236

    VS 2010 Re: Scrolling

    Do you mean if you drag a picbox to the edge of the panel then the panel will increase or decrease its scrollbars so the the picbox stays in full view?

    FWIW, heres an idea I used before and tried...
  6. Replies
    4
    Views
    178

    VS 2012 Re: ERROR Download File with VB.Net

    It works, but I had to change the target path to a public folder (root of C: failed)!
    It downloaded a 18KB file, when opened in notepad it appears to be a web page (html text), not an exe, so u...
  7. Replies
    2
    Views
    172

    VS 2013 Re: adding times in a Listview

    I'm not sure there is anything built into the framework to auto parse and add times in a format like that, so you'll probably need to split the text by the ":" char and convert those parts into a...
  8. Replies
    14
    Views
    401

    Re: Click on another application is possible?

    Make sure the button text in your code is correct, Findwindow(Ex) ignores case but the text chars must be exact, including any spaces, which from the screen shots that were posted (where they go?)...
  9. Replies
    26
    Views
    406

    Re: Persistent Combobox - Saved Locally

    If just lines of text, try,..



    ' populate ComboBox1 from file
    ComboBox1.Items.AddRange(IO.File.ReadAllLines("somefile.txt"))

    ' save ComboBox1 items to file...
  10. Re: Recursively looping through UserControls?

    How bout,


    For Each sub_UC In Uc1.Controls.OfType(Of subUC)()
    Debug.WriteLine(sub_UC.Name)

    For Each cntrl As Control In sub_UC.Controls
    Debug.WriteLine(cntrl.Name)
    Next
  11. Thread: get text

    by Edgemeal
    Replies
    2
    Views
    180

    Re: get text

    What comes after the name?
    If you know it is a period character for example then you can use the Find method of the richtextbox, then use substring to return just the name part, a function...
  12. Replies
    3
    Views
    243

    Re: Option buttons and Grouping

    Try,


    Dim group1 = GroupBox1.Controls.OfType(Of RadioButton).Where(Function(rb) rb.Checked).Count = 1
    Dim group2 = GroupBox2.Controls.OfType(Of RadioButton).Where(Function(rb) rb.Checked).Count...
  13. Re: which event of form that makes contrlos on it updated

    When you change the combo selection the SelectedIndexChanged event is raised, there you'd call your code. I'd probably create a public sub or property on that secondary form and pass it the index, ,...
  14. Re: How to automate an external program in the background?

    I wish there was a simple answer but there isn't, all I can suggest is you be much more specific, look at other examples, like how to send text to a textbox in another application, how to click a...
  15. Re: How to automate an external program in the background?

    I'm not sure thats possible, normally when you hide a window all of the child controls are hidden too, so any API calls you make to get/set data will probably just fail to work anyway.
  16. VS 2013 Re: Why this code doesn't work? Please give me a hint.

    Try changes,


    Public Class Form1
    Dim Balances(7) As Decimal
    Dim Names(7) As String

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  17. Replies
    2
    Views
    174

    VS 2012 Re: Virtual light box. Almost.

    Quick idea, toggle the WS_EX_TRANSPARENT window flag, it should let you click thru the form and also set the opacity.,


    Imports System.Runtime.InteropServices

    Public Class Form1

    Private...
  18. VS 2012 Re: Change colour of text in read-only text box

    I can't reproduce that here using VB10 on Win7.
    I set readonly to true in props and then I set the back/fore colors. In code I changed the forecolor of the textbox and all text changes to that...
  19. Replies
    3
    Views
    168

    VS 2010 Re: Help with listboxs needed

    Listbox/Combobox list hold the items as Object even when you add strings to them, so try adding .ToString to the end of that, tho .Add can only add one item so should probably be...
    ...
  20. VS 2012 Re: Change colour of text in read-only text box

    If you set readonly in code then you also have to set the color in code somewhere after you set readonly.
  21. Replies
    6
    Views
    219

    VS 2010 Re: Acquire Sounds from a specific folder

    When someone suggests something you are not familar with then the very first thing you should do is look them up, if you get stuck then come to forums like this, I probably use Google anywhere from...
  22. VS 2012 Re: Change colour of text in read-only text box

    The Textbox control can not color individual text, you set the ForeColor and all text in the control uses that color.

    If you want to change the Fore/Back Color of specific text then use a...
  23. Replies
    6
    Views
    219

    VS 2010 Re: Acquire Sounds from a specific folder

    I can't really answer that, maybe its a preference thing but I'd want vb.net to be able to access anything I put in Resources, If I needed to use API calls then I would make sub folders, like Images,...
  24. Replies
    7
    Views
    202

    VS 2013 Re: Delimiter issue

    Well if you declare cProp at form scope then you can get/set its properties anywhere in the form class,


    Public Class Form1

    Private cProp As New clsProperties

    Private Sub...
  25. Replies
    6
    Views
    219

    VS 2010 Re: Acquire Sounds from a specific folder

    I use IO.Path.Combine and Application.StartupPath, something like,..



    Public Class Form1

    ' path where images are stored
    Private imagesPath As String =...
  26. Replies
    7
    Views
    202

    VS 2013 Re: Delimiter issue

    Did you maybe forget to set the Delimiter property for that instance of the class?

    for example, you could do it like this if its not already set fropm somewhere else in the same scope,

    ...
  27. VS 2013 Re: .Net 4.0 AutoScrollPosition not calling Scroll event??

    Didn't you already ask that here?, you never replied so not sure if either solution ever helped.
  28. Re: How to fix score going up in increments of 8 instead of 1?

    Haven't really looked at the code either, but if worse comes to worse you could always set a boolean variable or use a controls Tag property as a flag, something like,..



    Sub Bird_Starts_Flying...
  29. Re: [RESOLVED] How to pass value from form to custom class? Please help

    I'm not sure what actually goes on behind the code, but when you use & Integer & the IL code produces legacy code using MS.VB, same code as if you used CStr() instead of .ToString,...



    Dim s...
  30. Replies
    5
    Views
    245

    Re: Tool Tip Control - Hide and Stop Timer

    I imagine its not much different then other ownerdrawn methods, you basically have to know where to draw (e.Bounds) and use e.graphics. and draw everything yourself. Have fun!
  31. Replies
    5
    Views
    245

    Re: Tool Tip Control - Hide and Stop Timer

    http://www.vb-helper.com/howto_2005_ownerdraw_tooltip.html



    Private Sub ToolTip1_Popup(ByVal sender As Object, ByVal e As System.Windows.Forms.PopupEventArgs) Handles ToolTip1.Popup
    ' Set...
  32. Re: [RESOLVED] How to pass value from form to custom class? Please help

    & FPS &

    If FPS is an Integer then VB will automatically convert it to a string using MS.VB class, I believe .ToString is the preferred .Net way,

    & FPS.ToString &
  33. Re: How to pass value from form to custom class? Please help

    Passing it in the constructor is one way,..



    Public Class Form1

    Private proc2 As VideoProcess = Nothing
    Private Property fps As Integer

    Private Sub Button1_Click(sender As...
  34. Replies
    6
    Views
    238

    Re: How to click randomly on selected area ?

    You need to define a minimum and maximum value for x and y, something like,..



    Public Class Form1

    Private rng As New Random ' random number generator.

    Private Sub...
  35. Re: Warnings from SAPI - didn't used to get these; why now?

    Just curious, does this list your installed AT&T voices?


    'Note: Add the .Net reference "System.Speech" to project.

    Imports System.Speech.Synthesis
    Imports System.Speech.AudioFormat

    Public...
  36. Re: Warnings from SAPI - didn't used to get these; why now?

    Apparently the 58 warnings is nothing new, from November 14, 2012,
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7c7b3689-f156-4c4f-9f99-9aa19cf0c2f8/speechlib-warnings?forum=csharpgeneral...
  37. Re: Warnings from SAPI - didn't used to get these; why now?

    FWIW, I just made simple test app, I didn't get any warnings in debug, its when I compile to exe VS2010 (on Win7) I see it listed 58 warnings, exe still works tho.
  38. Replies
    3
    Views
    179

    Re: GetFiles() syntax

    Its a string variable, so whats to stop you from using it in a .GetFiles call?

    .GetFiles(strBetNo & "*.*").ToList :confused:
  39. Re: Got to be a better way to Clear Multiple Group Boxes

    Add groupbox containers to a list, then loop thru those, somethin like,..


    Public Class Form1
    Private groupboxes As New List(Of GroupBox)

    Private Sub Form1_Load(sender As...
  40. Replies
    4
    Views
    175

    Re: kill all other instances of myself?

    You don't need to know the name as you can get it under, GetCurrentProcess.ProcessName.

    You should always try closing the app normally first, if that fails then try kill, unless your intent is to...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width