Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    204

    Re: what does this mean?

    You can also get that same error if you attempt to Save a Bitmap to a drive/folder that you don't have permission to, for example "C:\" (unless OS is WinXP or older).
  2. Replies
    2
    Views
    157

    Re: Reading a text file

    I'd try splitting the text by the "[" char, loop thru that array, if the section contains star=yes parse out the filename and add it to a list, something like..


    Private Sub Button1_Click(sender...
  3. VS 2012 Re: How to swift a contextmenu on the Rightside direction when it reaches at the end

    That previous code was copy/pasted from other source, and possibly out of context, Sorry!

    Again not sure I understand what you're asking, if you want the menu to be one line lower for example...
  4. Replies
    2
    Views
    104

    Re: Selecting listview to another listview

    try something like,


    Private Sub ListView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView1.SelectedIndexChanged
    ' check if at least one item selected in LV1.
    If...
  5. VS 2012 Re: How to swift a contextmenu on the Rightside direction when it reaches at the end

    Its really nothing more then a little bit of math, and you could use ToolStripDropDownDirection Enumeration to set the new location like dbasnett showed in your other thread. Whatever floats your...
  6. VS 2012 Re: How to swift a contextmenu on the Rightside direction when it reaches at the end

    Not sure I understand the problem completely, but if you take some measurements in the menus opening event you should be able to show the menu exactly where you want it.

    Quick test, if the...
  7. Replies
    12
    Views
    242

    VS 2013 Re: UI Automation through handle using spy++

    I would try the Inspect tool also, but if UI cant find the control until it is actually active then you'll just have to be smarter at the way you approach this,... the problem I have here is, it...
  8. Replies
    12
    Views
    242

    VS 2013 Re: UI Automation through handle using spy++

    In cases like that what I've done in Win32 API is use the controls place in the tree (a childwindow array) as an ID, which should be easy to figure out using SPY and it highlight feature..., as long...
  9. Replies
    2
    Views
    153

    Re: Close intro form

    You probably want to set Shutdown mode to "On last window close" in Project Properties > Application(tab) > Shutdown mode.

    By default its set to "When startup form closes"....
  10. Replies
    13
    Views
    346

    Re: [RESOLVED] Using Redim

    Well Dim is same as Private, so try changing it to, Public name As String
  11. Re: Why are my Form1 icons not showing ?

    To set icon for exe, I add icon to resources, then > Project Properties > Application(tab) > Icon
    139501
  12. VS 2015 Re: First and second Click on a Multi Select Listbox

    Don't really know of easier way to keep track and not used multisimple listbox much, but noticed when selecting items the selected index is always = to the topmost selected item, and since user can...
  13. Re: winforms datagrid - flickering scroll bar

    I've only used a DGV once and that was a long time ago, so looked at that code, seems I had some issues too. Made a class that inherited a DGV and set it to double buffered which then appears to...
  14. Re: winforms datagrid - flickering scroll bar

    Welcome to the forum, :wave:

    My guess is you're making changes to controls in the forms resized event (and/or similar events) and that is causing a recursive/ re-entering effect so the gui thread...
  15. Replies
    62
    Views
    812

    Re: Set Window Position not working

    Can only guess you don't have your form's (the form the skin actually uses) startup position set to Manual and is set to center instead, or the skin is centering your form You really shouldn't do...
  16. Replies
    62
    Views
    812

    Re: Set Window Position not working

    Ok, well it could be the order of the messages, Try calling your code from the Form Shown event instead of Form Load, I'm guessing the skin is changing things on form shown, in that case you may even...
  17. Replies
    62
    Views
    812

    Re: Set Window Position not working

    If you're reading values then that ^ should probably be OpenSubKey
  18. VS 2015 Re: Question about the Random Class in Background Worker.

    But if declare the random class inside the loop then you will for sure get duplicates, declare the class at class scope (outside of sub/func) , for example,


    Public Class Form1

    Private...
  19. VS 2013 Re: Disable keyboard completely does'nt work for me with the code i use

    Are you running the app as admin? because I think (*since Vista OS) you're app now needs admin rights for the BlockInput API function to work.
  20. Replies
    10
    Views
    274

    Re: how to use CreateParams

    Its actually called "Show shadows under windows" , set in visual effects , like they show here,...
    http://www.howtogeek.com/197866/how-to-disable-the-drop-shadows-in-windows-10/
  21. Replies
    10
    Views
    274

    Re: how to use CreateParams

    Besides what SS mentioned AFAIK CS_DROPSHADOW only works on top-level windows too.

    FWIW, code I've converted from old vb that toggled the drop shadow of a form on the fly, it was probably used in...
  22. Replies
    10
    Views
    482

    VS 2012 Re: Resetting the color of highlighted text on a richtextbox

    Try saving the selected stuff to some variables before you do the coloring so you can restore them. If coloring multiple words, colors, etc, then I'd make a sclass for those properties anfd then make...
  23. Re: I have gaps when drawing to a bitmap and picturebox

    Maybe on mouse down set the Cursor.Clip Property to the picbox client rect, then set back to nothing on mouse up.
  24. Re: strange mouseclick event behaviour on combobox

    All controls follow a specific order of raising events, see MSDN,
    Mouse Events in Windows Forms
    If you want to handle mouse click events in the proper order, you need to know the order in which...
  25. VS 2015 Re: Load imagelist to listview at runtime

    Oh OK, I didn't know it worked like that, so I assume the imagelist gets cleaned up when the LV is disposed or you set SmallImageList = none? EDIT: Works, was expecting it to eventually crash with...
  26. VS 2015 Re: Load imagelist to listview at runtime

    Haven't really looked at this thread but generally you create a list before the loop starts, add items to the list inside the loop, and then after the loop you'd add the items to the LV .



    Dim...
  27. Re: Floating window implementation using vb.net

    If using a timer then add the explorer window handle to a list (if not already added) and show your window, and at the top of the timer code loop thru the list and check if the handles are still...
  28. Replies
    2
    Views
    147

    Re: list of objects

    When added at class scope I don't think the controls have actually been created yet (or something like that), so you need to add them after initialization in the constructor, or in the forms load...
  29. Re: Floating window implementation using vb.net

    One way to detect if an explorer is the foreground window might be to use a timer and check the classname of the foreground window, using SPY++ on Win7 here it shows the classname is "CabinetWClass",...
  30. Replies
    7
    Views
    252

    Re: Help With Funcitons

    You could add the controls to an array, then loop thru that array,


    Dim textBoxes = {TextBox1, TextBox2, TextBox3}
    For Each box In textBoxes
    With box
    .Text = .Text.Replace("a",...
  31. VS 2012 Re: creating a gap between a highlighted word and a contextmenustrip

    This Q really has nothing to do with this thread and should be posted in its own thread, its best to post one Q per thread.

    The solution may depend on how text is displayed, maybe try something...
  32. Replies
    9
    Views
    351

    VS 2008 Re: ToolBar Issues

    You can combine controls that use same events into a single sub if you want. For example select all the buttons in the toolstrip, goto the Properties window and select the Events button (Lightning...
  33. VS 2012 Re: creating a gap between a highlighted word and a contextmenustrip

    Thats what my first example shows how to do,



    ' show context menu under the start of selected text.
    With RichTextBox1
    Dim pt As Point =...
  34. VS 2012 Re: creating a gap between a highlighted word and a contextmenustrip

    Not excatly sure what you need to do in your case but heres a couple snippets I copied from my code bank that might give you some ideas,..



    Dim pt As Point =...
  35. Replies
    36
    Views
    16,110

    Re: Star Rating Control

    Have been meaning to say Thanks +Rep for this idea and the star image. :)
    FWIW, here's the way I'm using your idea...


    Public Class StarUC
    Inherits Control

    Private starSize As...
  36. Re: [RESOLVED] Issues with DateTimePicker Controls?

    Not even sure what that means, but what about those DTP CustomFormat settings? If I do what your code shows,...


    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  37. Re: copymemory code not working with framework 4.5.1

    I actually don't know but seems odd the last param in your API is declared, ByVal bytes As Long , but your call to that API is passing Integer (intBytes) to that param?

    FWIW, from Pinvoke.net ,
    ...
  38. Re: Issues with DateTimePicker Controls?

    That was the first thing I thought was the problem but couldn't reproduce it in my simple test (VS2010/FW 4.0/Win7), good suggestion tho!
  39. Re: Issues with DateTimePicker Controls?

    Not sure this helps but a quick test/google from this MSDN post says,,

    Make sure the Checked property is set to true even if ShowCheckBox is not set.

    confirmed here, when the Checked property...
  40. Replies
    3
    Views
    203

    VS 2008 Re: Sorting an array with random elements?

    I'm not sure I follow, but wouldn't it be easier to use an array where the array elements are associated with the die number that was rolled, something like this?...


    Private rng As New Random '...
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.