Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. 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...
  2. Replies
    3
    Views
    96

    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...
    ...
  3. 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.
  4. Replies
    6
    Views
    126

    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...
  5. 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...
  6. Replies
    6
    Views
    126

    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,...
  7. Replies
    7
    Views
    151

    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...
  8. Replies
    6
    Views
    126

    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 =...
  9. Replies
    7
    Views
    151

    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,

    ...
  10. Re: Error: Conversion from string "" to type 'Decimal' is not valid.

    How about Decimal.TryParse Method
    https://msdn.microsoft.com/en-us/library/9zbda557%28v=vs.100%29.aspx
  11. 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.
  12. 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...
  13. 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...
  14. Replies
    5
    Views
    199

    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!
  15. Replies
    5
    Views
    199

    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...
  16. 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 &
  17. 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...
  18. Replies
    6
    Views
    188

    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...
  19. 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...
  20. 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...
  21. 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.
  22. Replies
    3
    Views
    155

    Re: GetFiles() syntax

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

    .GetFiles(strBetNo & "*.*").ToList :confused:
  23. 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...
  24. Replies
    4
    Views
    140

    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...
  25. VS 2012 Re: (FormBorderStyle = FixedToolWindow) + (ControlBox = False) = Round Corners whaa

    If your only reason for setting ControlBox to False is to hide the system menu when right clicking on the titlebar, then maybe just ignore right-mouse-button on the title bar?

    UPDATED: Forgot...
  26. Replies
    10
    Views
    627

    VS 2010 Re: Split Bitmap over 2 pages

    Try dispose image first,..


    mainImage.Dispose()
    My.Computer.FileSystem.DeleteFile("Untitled.png")
  27. Thread: Print Bitmaps

    by Edgemeal
    Replies
    7
    Views
    262

    VS 2010 Re: Print Bitmaps

    FWIW, I've never used Queue(Of T) or Print in VB, but I think jmc is suggesting you add the file paths to Queue list, something like...



    Public Class Form1
    Private ReadOnly images As New...
  28. Replies
    10
    Views
    627

    VS 2010 Re: Split Bitmap over 2 pages

    If you mean save to file, try,,,



    For n = 0 To bmps.Count - 1 ' name files: 001.png, 002.png, etc,..
    bmps(n).Save((n + 1).ToString("000") & ".png", System.Drawing.Imaging.ImageFormat.Png)...
  29. Replies
    10
    Views
    627

    VS 2010 Re: Split Bitmap over 2 pages

    Have you tried a simple For - Loop setting Step to the target height?, if you were to store the image parts in a list of bitmap, maybe something like...


    Private bmps As New List(Of Bitmap)
    ...
  30. VS 2010 Re: Using GetBetween in multiple instances

    This one from the code bank might be worth a look as well, using IndexOf, etc...
    String Between Function / Parser
  31. VS 2010 Re: Using GetBetween in multiple instances

    Your function has no clue about the index, another idea....



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    ...
  32. Re: Retrieve a value from a text box of built-in component?

    We can't guess what you're doing wrong, above code is 3 files, if it helps..attached VB10 project,
    Has minor changes,.. I was trying to figure out if toolbar is showing or not,, oh well...
    Good...
  33. Re: Retrieve a value from a text box of built-in component?

    You can use FindWindow & FindWindowEx API to drill down the child window tree much like how you see it in SPY++, understanding how FindWindowEx works is the key, but I notice the PDF ActiveX control...
  34. Replies
    5
    Views
    288

    VS 2013 Re: Stop combobox appending when dropped?

    Nice hack! :thumb:
  35. Re: I can not make a bitmap transparent like a filled rectangle?

    How about the SetImgOpacity function over on msdn forum by Cor Ligthert ?
  36. Replies
    8
    Views
    250

    VS 2012 Re: RichTextBox Visual Bug?

    and if that doesn't help maybe try toggling the RTB scrollbar property,


    rtb.ScrollBars = RichTextBoxScrollBars.None
    rtb.Clear()
    ' < Do other RTB stuff here >
    rtb.ScrollBars =...
  37. Replies
    8
    Views
    250

    VS 2012 Re: RichTextBox Visual Bug?

    I just did a quick test with a forced Vetical scrollbar, if I clear the RTB first then set the text the scrollbar repainted correctly.

    RichTextBox1.Clear()
    RichTextBox1.Text = testText
  38. VS 2010 Re: Change mouse cursor when mouse over LV header in Details mode?

    Sorry, not sure how ItemMouseHover would help.

    The problem is when you move the mouse over the LV column header in details mode the cursor changes to the default cursor no matter what cursor you...
  39. VS 2010 Change mouse cursor when mouse over LV header in Details mode?

    I set the forms cursor to say Wait, but when mouse is over a LV header the cursor changes to the default cursor.
    Are there any method/setting for LV column header cursor?, or do I have to write a...
  40. Re: Why the WM_CHAR doesn't handle the TAB and ENTER key ?

    Could it be the input control is eating the keys?. For example, by default pressing the Tab key in a textbox moves focus to another control and is not detected by WM_Char, but when I set IsInputKey...
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.