Search:

Type: Posts; User: IanBrooke

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: IDE Problem

    by IanBrooke
    Replies
    8
    Views
    2,758

    IDE Problem

    Using Windows 10 (up to date). I have a very strange problem with the VB6 SP6 IDE. I recently installed this on a new computer, everything seemed to go Ok and everything seems to work properly,...
  2. Replies
    114
    Views
    15,028

    Re: Windows 7 and Windows 10 compile differences.

    I don't see how you can say that the VB environments are the same on the 3 computers because they aren't. VB (and everything else for that matter) uses various Windows supplied library files, both...
  3. Replies
    13
    Views
    2,074

    Not breaking on undeclared variables

    I have just installed VB6 on a new computer, it all seems to be working properly except that it's not breaking on some undeclared variables.

    If I have an undeclared variable on a form or module it...
  4. Replies
    2
    Views
    1,012

    Re: Installing VB6 problem

    Sorry - I just searched the forum and found another reply to a similar question and I think it fixes my issues - Thanks
  5. Replies
    2
    Views
    1,012

    [RESOLVED] Installing VB6 problem

    Hi,
    I've been using VB6 for many years under Windows 10 but I now have to install it on a new laptop as my old computer died. I've previously installed it on other computers from the same disc...
  6. Replies
    4
    Views
    2,038

    Re: Global Variables

    Thanks for your reply, I really need to read it a few times and think about it, I'm grateful but I don't honestly see what it has to do with class references but my c# is weak. On my original...
  7. Replies
    4
    Views
    2,038

    Global Variables

    I'm still struggling to come to grips with global variables although I've used them a lot in other languages, possibly too much!
    I do understand the use of a static class but what's bugging me is...
  8. Replies
    5
    Views
    953

    VS 2017 Re: Can't find errors

    Thanks so much for your help
  9. Replies
    5
    Views
    953

    VS 2017 Re: Can't find errors

    Oh thank you, now I see the error. In the Output window it says "error BC30925: Specified access 'Friend' for 'MySettings' does not match the access 'Public' specified on one of its other partial...
  10. Replies
    5
    Views
    953

    VS 2017 [RESOLVED] Can't find errors

    I have a problem with my first vb.net project. There's an amount written, maybe 6 classes and a couple of modules, when I click Start I get a message "There were build errors.." however the Error...
  11. Replies
    4
    Views
    1,332

    Re: [RESOLVED] Syntax errors, not understood

    k, understood thanks.
  12. Replies
    4
    Views
    1,332

    Re: Syntax errors, not understood

    That's great, sorted out all my errors - thank you! :thumb:
  13. Replies
    4
    Views
    1,332

    [RESOLVED] Syntax errors, not understood

    Still messing with C# trying to come to grips with it, not getting very far!
    I have the following bit of code (not the entire project) which has syntax errors that I don't understand. I have...
  14. Replies
    6
    Views
    592

    Re: Common class instance

    Excellent, thank you very much for your help.
  15. Replies
    6
    Views
    592

    Re: Common class instance

    Ahhh, That sounds possible. although it's very difficult in a new language knowing if I'm doing things the 'right' way or if I'm trying to translate other languages when there are better ways of...
  16. Replies
    6
    Views
    592

    Re: Common class instance

    Thanks for your reply. My problem is that in the real program there are dozens of classes and most of them require to access methods and properties in many others, to pass references to each to the...
  17. Replies
    6
    Views
    592

    [RESOLVED] Common class instance

    Hi,
    I'm very very new to c# but spent many years developing in other languages but now trying to pick-up the basics of this language.
    What I'm looking for now is how/where to create a single common...
  18. Replies
    2
    Views
    362

    Folder Access

    Sorry if this post is long-winded, it's difficult to explain briefly.
    We have some old software written in vb6. It creates a folder under the user's Documents folder (by default) and copies files...
  19. Replies
    4
    Views
    572

    VS 2017 Re: Form Properties

    That's perfect, tyvm.
  20. Replies
    4
    Views
    572

    VS 2017 Re: Form Properties

    Ahrghh, problem with working on vb6 for so long, I must be stuck in that mentality. It is a secondary form. It sounds as though I should be able to create an instance of the form and set the...
  21. Replies
    4
    Views
    572

    VS 2017 [RESOLVED] Form Properties

    Hi,
    I have a form on which I need to set some properties before it is shown, an example is some text in a label either directly or through a form Property Set.
    In vb6 this is simple as you can just...
  22. Replies
    12
    Views
    2,445

    Re: GetSaveFileName

    Thanks everyone for your efforts but I believe I've fixed it thanks to Elroy's code. :)
    There is a bug in the code I posted which for some dumb reason sets .lpstrfile to a string of chr(0) and then...
  23. Replies
    12
    Views
    2,445

    Re: GetSaveFileName

    So here is my code:


    Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameW" (pOpenfilename As OPENFILENAME) As Long

    Private Type OPENFILENAME
    lStructSize As...
  24. Replies
    12
    Views
    2,445

    Re: GetSaveFileName

    Sorry, accidental double-click
  25. Replies
    12
    Views
    2,445

    Re: GetSaveFileName

    It's Win 10.

    Elroy, I've now tried your code and it works fine so I'm guessing it's some sort of difference between GetSaveFilenameA, and W although I can't see a difference.
    If I change your...
  26. Replies
    12
    Views
    2,445

    Re: GetSaveFileName

    Thanks very much for your reply.
    I'm afraid I misled you somewhat. I'm actually using GETSAVEFILENAME as an alias for GETSAVEFILENAMEA, as per:
    Private Declare Function GetSaveFileName Lib...
  27. Replies
    12
    Views
    2,445

    [RESOLVED] GetSaveFileName

    There is an api routine "Getsavefilename" which seems to return only the filename of the selected save file (which I guess is reasonable given its' name). However, there must be a way to find the...
  28. Replies
    1
    Views
    370

    Setting a variable to a form control

    In VB6 this is really easy to do but I can't figure out how to do it in .Net.
    I'm trying to produce .net code which does the equivalent of this:
    In a Class, or in a module...

    Public xyz as...
  29. Thread: Listview

    by IanBrooke
    Replies
    6
    Views
    796

    VS 2017 Re: Listview

    Well I've been programming for over 30 years in more languages than you've every heard of and in that time one thing I've learned is that one person's idea of "official" is often totally different...
  30. Thread: Listview

    by IanBrooke
    Replies
    6
    Views
    796

    VS 2017 Re: Listview

    1. What's the difference between a Listview class and a control? I was referring to the control.
    2. What do you mean by "official documentation"?
    3. Would you provide a link to that documentation?
  31. Thread: Listview

    by IanBrooke
    Replies
    6
    Views
    796

    VS 2017 Listview

    Can anyone provide or link example code showing how to add columns, change column widths, add&change column headings in a Listview using code (NOT via the IDE).

    Thanks
  32. Thread: Setfocus

    by IanBrooke
    Replies
    1
    Views
    1,160

    Re: Setfocus

    Never mind, I just found "Selectedtab"! :blush:
  33. Thread: Setfocus

    by IanBrooke
    Replies
    1
    Views
    1,160

    Setfocus

    Hi,
    I have a form containing a tabcontrol with 5 tabs. On one tab I have a datagrid, when the user clicks an entry on the grid I need to complete details from the row clicked in textboxes on a...
  34. Replies
    2
    Views
    567

    VS 2017 Simple question on Form setup

    I'm having a problem with setting up a form. One of the items on the startup form is a listbox which needs to be initialized with a series of names. I have a sub which does this which is currently...
  35. Replies
    3
    Views
    816

    Re: VB6 IDE Problem

    Thank you, I spent 10 minutes looking for that, missed it completely.
  36. Replies
    3
    Views
    816

    Re: VB6 IDE Problem

    Closing - I fixed it.
    For info, when I changed the properties window to undocked, it appeared in the center pane and it was possible to see there that the actual properties list had somehow been...
  37. Replies
    3
    Views
    816

    [RESOLVED] VB6 IDE Problem

    Hi,
    I've suddenly got a problem with the VB6 IDE. On the right of the IDE are two docked windows, the top one is the Project Explorer, it's fine, below that is the Properties window, it's not fine!...
  38. Replies
    3
    Views
    1,563

    VS 2017 Re: Imaging Control

    Here's the code, this code is NOT the real program but a small test application and I've deleted some non-relevant bits. Note that the user may be rotating and/or zooming the image frequently. The...
  39. Replies
    3
    Views
    1,563

    VS 2017 Imaging Control

    I'm looking for a simple imaging control, similar to a Picturebox, in-fact I can already do much of this with a picturebox. It needs to do 4 things, load and display a 2D image file (whatever...
  40. Replies
    8
    Views
    7,104

    VS 2017 Re: DataGridView Events

    Thanks.
    I did look at kpmc, so far didn't get it to work, the difficulty is that as soon as the cell goes into editmode it stops notifying keypresses which seems to me pretty stupid, there doesn't...
Results 1 to 40 of 51
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width