Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: How to check (user clicked) OR (opened at startup) ?

    A little bit :)

    I have searched Google and found this...
  2. Re: How to check (user clicked) OR (opened at startup) ?

    I think using a command line flag can help, when an exe runs by mouse double click, the command line always empty, so, if your program adds itself to the registry RUN key, add it like this...
  3. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    It is already published at http://www.vbforums.com/forumdisplay.php?68-Contest-Entries
  4. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    I think too that the use of the number of words as the basis to determine the winner is not good at all, instead, considering the quality of used algorithm, for example, when converting from Roman to...
  5. Re: How to delete some data in this txt file use VBA

    Sorry I didn't notice that this forum is Office Development :blush:
  6. Replies
    5
    Views
    206

    Re: Concatenating two strings and a variable

    String1 = "s_rgbn[";
    String2 = "]";
    Variable1 = 133;


    String1 + Variable1 + String2;
  7. Re: How to delete some data in this txt file use VBA

    This is a quick and dirty solution

    Dim strLines() As String = IO.File.ReadAllLines("f:\test.txt")

    For j = 0 To strLines.Length - 1
    strLines(j) = strLines(j).Trim
    ...
  8. Replies
    6
    Views
    175

    Re: Checking for MDIChildren Forms?

    Good :)
  9. Replies
    6
    Views
    175

    Re: Checking for MDIChildren Forms?

    Yes, it works!

    more shortening :D

    Private Function GetMaxFormSize() As Size
    Return New Size(Me.MdiChildren.Max(Function(m) m.Size.Width), Me.MdiChildren.Max(Function(m)...
  10. Replies
    6
    Views
    175

    Re: Checking for MDIChildren Forms?

    I cannot execute your code because there are some calls are missing.

    What i understood is that, you need the frmMain's width/height always bigger than any child's width/height, if so then try this...
  11. Replies
    7
    Views
    211

    Re: Access to object on MDI child form

    It seems there are some initialization commands executed in your class before invoke this line frmGradovi.dgv.DataSource = SQLDataset.Tables(0) and these commands are not executed when loading...
  12. Re: How to Prevent Keyboard and allow only mouse click on a Form

    Thanks :)
  13. Replies
    16
    Views
    422

    Re: Visual Basic - Code Syntax Speed

    Also you can use Timer
  14. Replies
    7
    Views
    211

    Re: Access to object on MDI child form

    I have post a possible solution two times now and you ask again without saying if you tried it or not!!
  15. Re: How to Prevent Keyboard and allow only mouse click on a Form

    Happy to here that!

    Did you read my signature? :thumb:
  16. Replies
    7
    Views
    211

    Re: Access to object on MDI child form

    You said this work

    frmGradovi.dgv.DataSource = SQLDataset.Tables(0)
    then the following one should works too regardless if it is MDI child or not

    Dim frm As New frmGradovi
    ...
  17. Replies
    7
    Views
    211

    Re: Access to object on MDI child form

    You create new instance of frmGradovi but you didn't set dgv of that instance!
    Try this


    Dim frm As New frmGradovi
    frm.dgv.DataSource = SQLDataset.Tables(0)
    frm.MdiParent = Me
    ...
  18. Re: How to Prevent Keyboard and allow only mouse click on a Form

    As i expected, you are using the wrong event to detect option state, you should use CheckedChanged not MouseClick

    Try this, it works when using mouse or keyboard

    Public Class Form1

    ...
  19. Re: How to Prevent Keyboard and allow only mouse click on a Form

    I didn't say that using CheckStateChanged event will prevent the user from using the keyboard to select an option.

    If your logic success when select an option by mouse and fail when select an...
  20. Re: How to Prevent Keyboard and allow only mouse click on a Form

    Why you don't use CheckBox CheckStateChanged event? You can add your code there and it will executed when Check State Changed by mouse or by keyboard.
  21. Re: How to Prevent Keyboard and allow only mouse click on a Form

    Try to create a custom CheckBox and implement OnKeyDown event to set SuppressKeyPress = True when desired keys are pressed.

    * Add new class, name it MyCheckBox (or what you like)
    * Paste the...
  22. Re: textboxes not being able to recongize by access 2010

    To check if TextBox is contain text or not, use If Text1.Text = vbNullString Then


    If DateReceived.Text = vbNullString Then

    ElseIf MReceivedFrom.Text = vbNullString Then

    ElseIf...
  23. Re: uncheck All ToolStripMenuItem in a For Each loop with ToolStripSeparator

    Declare ctrl as Object not As ToolStripMenuItem, that's because (as you already see) not all items in DropDownItems are of type ToolStripMenuItem but there is another type of ToolStripSeparator
    Try...
  24. Re: Visual Basic - Add application to startup with windows

    Yes, it should work but it didn't because you made a mistake, you are saving Check1.Value under a section named "STARTUPVALUE" while reading from different section named "STARTUPCHECKBOXVALUE"

    Try...
  25. Re: Visual Basic - Add application to startup with windows

    There are many VB6 classes to read/write the registry, here is a good one
  26. Replies
    6
    Views
    295

    Re: Does this color have a name?

    Replace Convert.ToInt32("FFFF99", 16) with Convert.ToInt32("FFFFFF99", 16)

    or better use the RGB integer values Color.FromArgb(255, 255, 153) as far as you don't need the Alpha channel.
  27. VS 2012 Re: Disabling Home.End keys on TrackBar control

    2HongKongCV

    You said


    Handling KeyDown event for 15~50 controls is really tough, creating a custom TrackBar as discribed above will save your time.
  28. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    No, i see lower-cased Romans in many places e.g. numbering book preface pages and book index, contents pages



    http://en.wikipedia.org/wiki/Roman_numerals
  29. VS 2012 Re: Disabling Home.End keys on TrackBar control

    As far as you are using many TrackBar control then you have to create custom TrackBar and implement OnKeyDown event to set SuppressKeyPress = True when Home, End and arrows keys pressed.

    * Add new...
  30. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    It happened again, I have seen Bulldog's post!!!
  31. Replies
    7
    Views
    289

    VS 2010 Re: Digital Clock in Visual Basic

    You have to start the timer, in Form.Load event add

    Timer1.Start()
  32. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    No problem :D

    It was good chance to look again in my code to enhance and optimize, i'm very satisfied with the final result, i have submitted version 2 of my solution.
  33. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    I trust in you :D but what about others :rolleyes:

    Seriously, I think i used a clever idea (at least i didn't see something like it before) to validate Roman Numeral inputs when converting from...
  34. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    Did you downloaded my source code? If yes, i think this is not fair play :D
  35. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    Of course i know how to use .ToUpper :)
    Please read my post #18 carefully, my question was replaying to dday9's quote


    According to that quote, dday9 considers lower-cased numerals are...
  36. Replies
    3
    Views
    21

    Contest 8, Roman Numeral Converter - 4x2y

    This is my solution for Contest 8, Roman Numeral Converter.
  37. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    I have finished my solution, what is next? Post the exe, source code or both?

    If i post the source code, will it be public before the Deadline April 10th, 2015?
  38. Re: Contest 8 - Roman Numeral Converter - Discussion Thread

    What is better accept lower case numerals as far as they are valid or refuse even they are valid?
  39. Replies
    2
    Views
    165

    VS 2013 Re: Changing string value with checkbox ?

    Private Function Encrypt(cipherText As String) As String
    Dim EncryptionKey As String
    If Textbox2.Enabled Then
    EncryptionKey = Textbox2.Text
    Else
    EncryptionKey =...
  40. Replies
    5
    Views
    208

    Re: Msgbox icon in the right?

    vbMsgBoxRtlReading is meant to use with RTL languages
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.