dcsimg

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.37 seconds.

  1. Replies
    2
    Views
    264

    Why is Thread.Abort not doing anything?

    I expect MsgBox("Exception HIT!") to be reached ... but it is not ...

    Any ideas why this it isn't hit (and the thread is never aborted)?? ... The error doesn't even appear to have been raised...
  2. Replies
    17
    Views
    785

    Re: Proper way to use Validating event

    Should prob look like this:
    Private Sub denMTB_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles denMTB.Validating
    Dim den As Integer =...
  3. VS 2015 Re: [RESOLVED] Lag in drawing in panel's paint event

    If the issue persisted past the removal of CreateGraphics I am guessing that it was flickering and not lag caused by a lack of buffering...

    Also you could change this loop:
    For i = 0 To...
  4. VS 2017 Re: How to alter VB.Net Naming Standards

    My reason is the same as why I prefer blue over black, and others would prefer the other way :) ... i.e. there is no logic is it just what I prefer
    My last 2 jobs have also programmed with the same...
  5. VS 2017 Re: How to alter VB.Net Naming Standards

    Just my two cents.. not really an answer:
    Personally I can't stand the small case for local variables and the capital for the public ones ... I use _ prefix for local ones (in C# too)......
  6. Replies
    8
    Views
    416

    VS 2019 Re: Convert phone number to alphabet

    You are aware that this list will get massive right?
    ... for eg a 4 digit word could have between 81 and 256 possible combinations (depending on what digits were pressed).

    Kris
  7. Replies
    3
    Views
    218

    Re: Please help modify code

    I have written this into my code library to do this, it reads the file descriptions from the registry .. so you can just go:

    ofd.Filter = {"xls", "xlsx", "pdf", "docx", "doc",...
  8. Re: VB.net - How to check if one business day has passed

    This is up to you to determine ... if you took jmcilhinney's advice, "the first step is not asking how you would write the code but rather how would you solve the problem if you were NOT writing...
  9. VS 2015 Reference between AppDomains not staying alive

    I have the main app domain load another - I need to reference entities between them;
    This works fine but after 5 mins (when the lease expires) I get:

    Exception thrown:...
  10. Replies
    6
    Views
    344

    VS 2019 Re: [RESOLVED] C# Expression to VB

    If you want something that is maybe more close to the c# eg (coding wise at least) you could go:

    Dim b As Integer
    While (Function()
    b = inputstream.ReadByte()
    Return b
    ...
  11. Replies
    1
    Views
    907

    RTF format (Not sure where to post)

    When I copy an image into the RTF control I get this for eg:

    {\pict\wmetafile8\picw13829\pich-14743\picwgoal-20542\pichgoal28796
    .....etc

    Why is picwgoal negative and how do I get the Width?...
  12. Re: [RESOLVED] Odd question regarding the vertical line of "dots" on a toolstrip cont

    I personally always thought those were somewhat pointless, I know you can put them in a ToolStripContainer and move them around ... but think the M$ implementation (since they can't be un-docked) is...
  13. Replies
    9
    Views
    379

    Re: Help with RegEx - Finding Format

    The ChrisE eg looks kind of limiting using set things ... I would prob use something like:

    ...
  14. Re: Inserting hex string into RichtextBox as Image

    Yes it is possible ... There are lots of eg's out there ... but most use copy & paste to do it (AVOID THESE)...
    I saw a solution on CP that does it properly ... will have a look later if I have the...
  15. Replies
    8
    Views
    489

    Re: Close all forms except 1

    Cool ... didn't know about the shutdown mode, I never use Application Framework though as I often want to handle command line params to run with out loading forms etc.

    Kris
  16. Replies
    6
    Views
    543

    VS 2017 Re: Help with parameter for dlc report

    Please don't shout, and why not just tell us the error rather than posting an illegible screenshot?

    Kris
  17. VS 2017 Re: Assign Unique Values to Each Letter in a String

    I don't think that this is a good method of protection ... if that is what this is for

    Kris
  18. Thread: Remove "'"

    by i00
    Replies
    7
    Views
    320

    VS 2017 Re: Remove "'"

    Asc() is to get the code from a chr ... I think you mean Chr(), this gets the chr from the code...

    You should turn Option Strict On and you would realize this...

    Also you should not check...
  19. Replies
    8
    Views
    489

    Re: Close all forms except 1

    Just open the forms as non-dialog ... as you open them just call Me.Close() after on your button click...

    You may need to "extend" the life of the application with an app domain or something if...
  20. Replies
    1
    Views
    246

    VS 2015 Re: Export Registry file (*.reg) Click Button

    Look into https://docs.microsoft.com/en-us/windows/desktop/api/winreg/nf-winreg-regsavekeyexa

    Kris
  21. VS 2019 Re: How to Convert an image from My.Resources ToBase64 & save it to My.Settings?

    Yuck ! ... why does everyone seem to code like its 2005! ... You should really use Using where ever possible.

    Kris
  22. Replies
    8
    Views
    624

    VS 2017 Re: hard time working with database

    Just FYI you can execute the SQL: SET LANGUAGE us_english
    ...beforehand to get the English error message...
    For the list of languages use: SELECT * FROM sys.syslanguages

    Kris
  23. Replies
    8
    Views
    343

    Re: Check if a control exists at a given point

    I did this a while back (works with scroll-able controls) ... how about:


    Public Module Extensions
    <System.Runtime.CompilerServices.Extension()>
    Public Function GetChildAtPoint(Control...
  24. Replies
    16
    Views
    1,009

    VS 2017 Re: WinForms UI Controls - to purchase

    Oh another thing that is prob worth mentioning ... with DevExpress there used to be an option to purchase source code ... so if you run into a road-block you could make it support something that it...
  25. Replies
    16
    Views
    1,009

    VS 2017 Re: WinForms UI Controls - to purchase

    Only for only with hdiding stuff in control .. you had to do something like this to set bg color of a cell for eg:
    UltraGrid.Bands(X).Row(X).Cell(X).DisplayLayout.BackColor = Color
    Also you had to...
  26. Replies
    48
    Views
    1,402

    VS 2010 Re: Getting physical dimensions of monitor

    The term DPI for screens is misleading - you can output accurately when outputing to a printer but good luck getting the physical screen size... The user can choose any size they want regardless of...
  27. VS 2015 Re: Print Panel High Quality Fonts Labels and Others

    Thats because you are printing a raster image to the printer (basically your panel is an image) - vector is what you want ... basically you are going to have to manually render things with graphics...
  28. Replies
    15
    Views
    934

    VS 2017 Re: Prevent control flickering

    VB6 used to limit you to 255 :p

    ... Also if you really need to do it this way you could load and unload controls as the master scrollablecontrol is scrolled... so it appears the same but only has...
  29. Re: /VB Express 2010/ Extract specify text from string

    FYI the regex that topshot mentioned is:

    Dim path = "\test\project\documents\reports\Result_001.txt"
    Dim revision = System.Text.RegularExpressions.Regex.Match(path, "(?<=_).*?(?=\.)").Value

    ...
  30. Replies
    15
    Views
    934

    VS 2017 Re: Prevent control flickering

    Can you post the designer code on here and I'll see what I can do?

    Kris
  31. Replies
    3
    Views
    443

    VS 2017 Re: [RESOLVED] Save text as bit in database

    Can also specify it like this:

    Private Class Authorization
    Public Property Name As String
    Public Property IsAuthorised As Boolean
    End Class

    Private Sub Form1_Load(sender As Object, e...
  32. Replies
    16
    Views
    1,009

    VS 2017 Re: WinForms UI Controls - to purchase

    On another note we use Infragistics and I hate it ...
    Seems to be:

    buggy,
    encourage non-strictness,
    layout of properties etc is not logical,
    limited (events missing that should exist,...
  33. Replies
    16
    Views
    1,009

    VS 2017 Re: WinForms UI Controls - to purchase

    I have always made my own .... mostly...
    I use my own controls but have only released:

    i00 Spell Check (free - contact me if you have issues or want a feature - I have modified it a bit since...
  34. Replies
    2
    Views
    285

    VS 2017 Re: [RESOLVED] OpenfileDialogue

    Hi ... I know you resolved this ... but the default text should either be the existing file, or a suggestion for a file name ... not a "placeholder" like "Browse to file" :P

    Kris
  35. Replies
    15
    Views
    934

    VS 2017 Re: Prevent control flickering

    ChrisE: I personally prefer to inherit the control that I want double buffered then use the SetStyle method...
    That said ... in normal circumstances double buffering should only affect the owner...
  36. VS 2008 Re: Can't open the Designer after closing the project

    Please post bigger screenshots ...
    Look at the call stack (using the link on that last image) and try to work out what may be causing the issue from there...
    Without looking through the...
  37. Replies
    8
    Views
    409

    VS 2015 Re: RegEx for if previous match equals

    This is a just a sample ... i think the opening post is self explanatory.. the eg is to match each type of bracket ({< up to their closing bracket )}>
  38. Replies
    8
    Views
    409

    VS 2015 Re: RegEx for if previous match equals

    I thought there was a way to do this ...
    Basically with the check to see if it exists I would have to go:
    ...
  39. Replies
    8
    Views
    409

    VS 2015 Re: RegEx for if previous match equals

    I also no about how to check if a match exists and have a condition on that ... but what I really want is a way to re-check if the previous match also matches something else to determine the criteria...
  40. Replies
    8
    Views
    409

    VS 2015 Re: RegEx for if previous match equals

    This is not what I want I know how to do those.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width