Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.63 seconds.

  1. Replies
    8
    Views
    364

    VS 2022 Re: Play a warning sound.

    My guess is 5 seconds before stopping
  2. Replies
    8
    Views
    364

    VS 2022 Re: Play a warning sound.

    You need an if statement, where you currently play your tick sound, you need to test if it’s 5 seconds before stop time and if so play your warning sound…
  3. Re: how to have the treeview the whole height of the page

    He meant you should create a new application for testing purposes only. In a new application you can isolate the problem areas…
  4. Replies
    2
    Views
    347

    VS 2022 Re: Multiple tables on multiple pages

    It looks like they’re all being written on the first page. You specify doc.Range, but I don’t see you’ve changed that anywhere…
  5. Re: how to have the treeview the whole height of the page

    Set the Height at design time and set Dock… I don’t remember the possible values at the moment, so try it, and see how it looks
  6. Thread: do while issue.

    by .paul.
    Replies
    7
    Views
    657

    Re: do while issue.

    Have a look at the TrimEnd method…
  7. Thread: Scrolling

    by .paul.
    Replies
    1
    Views
    317

    Re: Scrolling

    You could start by asking in the Classic VB forum instead of the .Net General forum...

    https://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier
  8. Replies
    2
    Views
    375

    VS 2010 Re: version of .net am I using

    If you are asking which framework you're using, you can find it in...

    Project-->Properties
  9. Replies
    2
    Views
    375

    VS 2010 Re: version of .net am I using

    It's in your VS menus...

    Help-->About Microsoft Visual Studio
  10. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    It's a little tricky working out card rotations and image positions... Try my example.

    190971

    190972


    There are 28 custom pictureboxes shown on the form.
  11. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    If you’ve written an analog clock, you already have used GDI+
  12. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    You can change the shape of a control by setting it's region property, but as jm said - you'll have to draw rotated images yourself, and the control will still always have a bounding rectangle.
  13. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    http://www.scproject.biz/itc.php
  14. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    Are you trying to draw an analog clock? I’ll post a link to an example…
  15. VS 2022 Re: [RESOLVED] VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    The Add Scan button… Do you upload an image there? It’d be easiest to rename the file ‘YYYYMMDD.jpg’ when uploading
  16. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    https://stackoverflow.com/questions/59800375/how-to-set-the-text-of-a-textbox-to-a-default-value/59803179#59803179
  17. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    Private Const EM_SETCUEBANNER As Integer = &H1501

    <DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=True)>
    Private Function SendMessage(ByVal hWnd As IntPtr, ByVal msg As Integer,...
  18. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    Or, put a watermark on the blank textbox requesting input as YYYYMMDD. If the user enters the correct format, no problem. But it’s still iffy :D
  19. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    Use a date time picker instead of a textbox. No need to ascertain the date format…
  20. Replies
    9
    Views
    6,733

    Re: Final Grade Calculator

    A grade calculator is a common programming homework assignment.
    You do realise you’ve just revived a three year old thread?
  21. Replies
    7
    Views
    956

    VS 2010 Re: VB2010: how get more timer precision?

    Winforms isn’t your best choice for intensive graphical games. That’s the point…
  22. Replies
    7
    Views
    956

    VS 2010 Re: VB2010: how get more timer precision?

    You can fool the human eye with 20FPS. Why do you need more?
  23. Replies
    6
    Views
    494

    VS 2019 Re: DLL Based Project

    Right click on the project in solution explorer, then select Rebuild
  24. Replies
    10
    Views
    841

    Re: VB.net Slots game bug not easily apparent

    As jmcilhinney told you, numbers are numbers and text is text, however much it looks like a number on your screen.

    If you try Button1.Text = “20” + “5” what do you get??? You’d expect “25”, but...
  25. Replies
    9
    Views
    918

    VS 2022 Re: 2nd form not showing on desktop

    I have an app, with an animated form that remembers its last location. I’ve had times when the compiled app config file has been corrupted and replaced with default values, resulting in the form...
  26. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    Try this


    For i As Integer = 0 To ((bmpData.Stride * bmpData.Height) / 4) - 1

    To convert to integer, as the error says


    For i As Integer = 0 To CInt((bmpData.Stride * bmpData.Height) / 4)...
  27. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    In 2009, it was the best i could find :D

    I understood what the algorithm did, but the kludgy way it did it was what stopped me trying to rewrite it...
  28. VS 2010 Re: Expression Validator excluding specific string

    Something like this?


    Dim rx As New Regex
    If rx.IsMatch(TextBox1.Text, ?^[a-z0-9]+\@gmail\.com$?, RegexOptions.IgnoreCase) Then
    ?Email address found
    End If

    Edit: The question marks in...
  29. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    From several seconds to less than 1/5th of a second, in a top-level language is quite an achievement though
  30. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    Good idea with the codebank entry. I didn't, and still don't understand the 4 way recursive algorithm :D Which is why i asked an expert when i saw the opportunity :D
  31. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    This site is still buggy. Changing punctuation characters in my text input


    Edit: Site problem reported to admin
  32. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    I will implement it, when I get round to having another look at my paint app. I know you?re right about the time savings. That was one of the issues that made me limit the size of images in my paint...
  33. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    I didn't time it. Just judging by eye with that simple image (post #31). In a real graphics app, with less regular shapes to fill, i'm sure it'll perform much better than the code i was using...
  34. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    I fixed one bug (first line of code in FloodFill5)
    Running the 2 methods side by side on a very simple image, there doesn't appear to be much difference?

    Anyway, thanks Niya. I've uploaded the...
  35. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    Ok thanks. This is the slow code. It takes a few seconds rather than milliseconds, and the images i was using aren't large images...



    #Region "UnsafeFloodFill"
    ' Flood the area at this...
  36. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    @Niya

    Using this method, how could i create an MSPaint-like floodfill feature? I have an existing method, that radiates out from the clicked pixel that i found on the www a long time ago. The code...
  37. Replies
    27
    Views
    1,647

    Re: How to extract text from HTML

    The standard TextBox has a MultiLines Property that is False by default
  38. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    In VB.Net?

    Short=Int16
    Integer=Int32
    Long=Int64
  39. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    Basically, where in vb6 you used Long is now Integer, Integer is now Short, Type is now Structure, Byte remains Byte
  40. Replies
    46
    Views
    2,598

    VS 2010 Re: how convert VB6 to VB2010 code?

    Private Const BI_RGB As Integer = 0
    Private Const CBM_INIT As Integer = &H4
    Private Const DIB_RGB_COLORS As Integer = 0

    Private Structure BITMAP '14 bytes
    bmType As Integer
    bmWidth As...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width