dcsimg

Search:

Type: Posts; User: VBDT

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    5
    Views
    973

    Re: Grouping methods into a sub-class

    Hi Jmc, you are absolutely right. I just responded to the post without giving a though to it. I don't have VS with me now but I think this should work, correct me if I am wrong.


    public static...
  2. Replies
    5
    Views
    973

    Re: Grouping methods into a sub-class

    You don't even need an instance of a class. To achieve what you want you need to have a public property 'Trig' in your 'Calc' class which is a Trig type. Both classes needs to be declared with static...
  3. Replies
    15
    Views
    1,284

    VS 2013 Re: How to draw a line on picturebox

    It is interesting to see that the same questions repeat over the time. It feels nothing has changed :D
    It is good to see you JM still helping the community. I have learned a lot here from you, Thank...
  4. Replies
    9
    Views
    2,461

    Re: Random Question code

    First, you can put all your questions in an array of string that can be accessible by index. Than you need a random index number which could be generated by the Random Class as it was mentioned...
  5. Replies
    2
    Views
    856

    Re: Best Means of Data Storage?

    As what i see from your data structure the data can be saved in 2 tables "GamePiece" & "Weapons" that would be related by weaponId. In other words you should have a relation between these two tables....
  6. Replies
    26
    Views
    8,233

    Re: sort only a specific node in a treeview

    Yes, the module template doesn't exist in web site project but you can still have it. What you need to do is to add the existing module file to the App_Code folder and add the "Public" key word in...
  7. Replies
    26
    Views
    8,233

    Re: sort only a specific node in a treeview

    Right click on the WebApplication in the solution window -> Add -> New Item. Rest is shown in the image below.

    Here is the content of the Module.
    Module Extensions
    Public Enum sortOrder
    ...
  8. Replies
    11
    Views
    2,866

    Re: Application.StartupPath error

    use: My.Application.Info.DirectoryPath
  9. Replies
    11
    Views
    3,167

    VS 2010 Re: Simulate click on webbrowser

    These two are not the same ;)
    1. Public Sub Clickonform(ByVal x As Integer, ByVal y As Integer)
    2. MyControl.ClickControl(test)
    Not by the name or by the signature!
  10. Replies
    11
    Views
    2,866

    Re: Application.StartupPath error

    Put a break point on the line "cryRpt.Load(Application.StartupPath & "ProductList.rpt")" and check the "Application.StartupPath & "ProductList.rpt" to see if you get the full qualified file path.
  11. Replies
    26
    Views
    8,233

    Re: sort only a specific node in a treeview

    This tread is almost 3 years old :D

    Dawg, yes the same approach would work for a TreeView web control. The only difference is that web control TreeNode collection doesn't have AddRange method so...
  12. Replies
    3
    Views
    24,389

    Re: Round the corners of rectangles and controls.

    Me.Panel1.Region = Shape.RoundedRegion(Panel1.Size, 10, Shape.Corner.None)
  13. Thread: Logical Bug

    by VBDT
    Replies
    9
    Views
    1,082

    VS 2010 Re: Logical Bug

    The IF statment:
    If TextBox1.Text = loadmd + TextBox1.Text Then
    will never evaluate to true!
    it is like you have
    If 2 = 1 + 2 Then
    ?!?

    You need this instead

    If...
  14. Thread: Global hooks

    by VBDT
    Replies
    80
    Views
    50,701

    Re: Global hooks

    Hi,
    I am not aware of any issues with framework 4. If there is one than provide the error please.
  15. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    Just think about it for a second, what your text file contains. It contains lines of text that represent records. Each line has "," separated fields. So what you need is to read all lines from the...
  16. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    I meant check the code on #13 :D
  17. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    check the code on #13.
  18. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    Yeah, I would agree with Jmcilhinney. DataGridView would be better for this. But you could also have one listbox instead of 6. You don't need 6 listboxes to show data. They are all one record, one...
  19. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    Are those all listbox controls?
  20. Replies
    21
    Views
    1,374

    Re: Wrting from List Boxes to Text file?

    What is the problem with your code?
  21. Replies
    5
    Views
    672

    VS 2010 Re: [Request] Hex Enconder/Decoder

    check this tread.
  22. Replies
    33
    Views
    6,065

    VS 2008 Re: 9 Timers

    Ok, now I understand the nature of the question. If you take away the condition statement than yes with present code kaboom will happen. The bad thing of passing none timer type object in to sub...
  23. Replies
    33
    Views
    6,065

    VS 2008 Re: 9 Timers

    Are you saying that debug statement was writing something by calling the sub procedure? Or am I missing the point in here.

    calling the sub procedure by those parameters will not pass the condition...
  24. Replies
    33
    Views
    6,065

    VS 2008 Re: 9 Timers

    "kaboom" didn't happen but you haven't seen the "Debug.WriteLine" did you?. Take a look on what you passing to the event sub procedure as a parameter:
    _TickTock(New TextBox, New System.EventArgs)...
  25. Replies
    14
    Views
    1,108

    VS 2008 Re: Ideas for accessing my data

    The ID is a unique number or a string or what ever type. It must be unique.

    Here is an example:
    Let's say one user wants to delete the row at 10th index. The anther user wants to change a data...
  26. Replies
    14
    Views
    1,108

    VS 2008 Re: Ideas for accessing my data

    Well, I was taking about the design that uses Index instead of ID. I don't think that is the way you want to go specially when there would be multiple users who would add or delete data in the DB at...
  27. Replies
    7
    Views
    682

    VS 2005 Re: Professional controls

    I may be wrong but doesn’t Combobox have custom item paint functionality? If it does than you can paint the item the way you want setting its size, drawing borders etc.
    My approach would be having a...
  28. Replies
    14
    Views
    1,108

    VS 2008 Re: Ideas for accessing my data

    Sql db is better because it is more secure and can handle multiple queries at the same time and it is fast.
    Also your data tables should have ID column to access the data rows not using indexes. It...
  29. Replies
    2
    Views
    467

    Re: Array of my Student Class

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim stud as new Student
    stud.FirstName = "Joe"
    stud.LastName = "Mama"
    s(0) =...
  30. Replies
    8
    Views
    1,432

    Re: Ideas for note-taking app

    I think this could be an option:

    <books>
    <book title="title" author="author">
    <note>This is Note 1</note>
    <note>This is Note 2</note>
    </book>
    <book title="title"...
  31. Replies
    3
    Views
    2,382

    Re: Saving Byte() in My.Settings

    Hi,
    Try to use "Default" encoding instead of ASCII. The default encoding is also ASCII but for the current system. Anyway, my test of
    Dim bytes() As Byte = {5, 55, 84, 125, 243}
    Dim t As String =...
  32. Replies
    8
    Views
    731

    VS 02/03 Re: Auto populate textbox

    I think this is more ASP.Net question than winforms.
    One thing I would suggest is to have the textbox in AJAX update panel and when the timer sets the textbox text property call the panel update...
  33. Replies
    1
    Views
    448

    Re: RSS in statusstrip ?

    Done what? Create RSS?
  34. VS 2008 Re: Validate a groupbox to make sure radiobutton is checked - VB 2008

    Why not check one of the radiobuttons in the design time property. Check the one that you think it should be the default checked radiobutton. So when the app starts it will be checked.
  35. Replies
    7
    Views
    1,968

    VS 2010 Re: ListBox move item up or down

    I think there are two ways to do it. One way is as Jmcilhinney said by removing and inserting new listitem.
    The second way would be to flip the items' objects and than refresh them. I haven't tried...
  36. Replies
    7
    Views
    1,968

    VS 2010 Re: ListBox move item up or down

    I am glad to hear that :wave:
    So back to the problem, what have you tried?
    Also it would be good to know what kind of objects are saved in ListBox items.
  37. Replies
    7
    Views
    1,968

    VS 2010 Re: ListBox move item up or down

    I know 2008 but I also know 2010, and the question I want to ask you is this: what have you tried so far? Show as the code.
  38. Re: Updated Thread...what project type for relaying captchas (not defeating) to use?

    Good one :D :thumb:
  39. Replies
    6
    Views
    1,331

    Re: Bindingsource filter

    Try this

    Private Sub RYAN3estimatesBindingSource_CurrentChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RYAN3estimatesBindingSource.CurrentChanged
    If...
  40. Re: Updated Thread...what project type for relaying captchas (not defeating) to use?

    i can read them and enter the captcha into a textbox and hit a submit button
    interesting!!! And how would you do that? You got to have some code that reads pictures. If you got that one than you are...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width