Search results for query: *

  1. M

    Pass STRUCTURE as a parameter?

    I'm so stupid! OF COURSE!!! Enum!! My GOD I am so stupid. How could I forget that? :o I think I'm getting a bit old :( Thanks very much for taking the time to post and refresh my fading memory. Much appreciated. Mark
  2. M

    Pass STRUCTURE as a parameter?

    Hi, I have a class that raises events. I want the TYPE of the parameter to be a user defined type. Then, in the event handler, intellisense would recognise the typed parameter... However, it isn't working... In .Net 2.0 TYPES have gone, so I've had to use a structure instead... However I'm...
  3. M

    Extend UInt16 Object? Possible?

    Thanks Thank you. I didn't know that! I just searched my MSDN for ToString("X") - came up with nothing! :-/ Mark.
  4. M

    Extend UInt16 Object? Possible?

    Hello, I would like to add a new method to the UInt16 object: .ToHex Is it possible? How is it done if it is possible? I can get the behaviour I want, no problem, using Hex(value) but I thought it would be nice to extend to the object and give it a ToHex function... Not sure how to go about...
  5. M

    Printing text (text is clipped)

    Ok, thanks John, I'll give that a try. I must admit, I looked at the code and thought "Er, yeah, ok, right!" Mark.
  6. M

    Printing text (text is clipped)

    Hi John, Yes, but check the end of his code: ' print the text to the page intCurrentChar += intCharsFitted 'advancing the current char to the last char printed on this page < TextBox1.Text.Length Then If intCurrentChar e.HasMorePages=True 'HasMorePages tells the printing module whether...
  7. M

    Printing text (text is clipped)

    Hi there. I am working on a VB.Net application (WinForms) and all is working fine. I'm just putting the finishing touches to it, and am now working on a Print function. The application is a code editor, and of course, one of the facilities is to be able to print the code that one has written...
  8. M

    DLL Server in .Net? Possible?

    Hello, Is it possible to create a DLL in its own process with .Net? I want to write a DLL that handles connections to a database by different applications on the same machine. It strikes me the best way to do it is to write a DLL that connects to the database, and makes this connection...
  9. M

    Add User Control to Project (VS2005 Beta 2)

    Doh! Bugger! I can't believe it was simple. Doh! How stupid do I feel :( Seriously though, thanks for your help. It worked a treat. I have another problem now - the user control uses My.Settings to access a DB connection string to SQL server - however, when running in a windows form, it...
  10. M

    Add User Control to Project (VS2005 Beta 2)

    Hmmm... Hi there, thanks for the reply, Yes, I have found the browse tab and can navigate to the DLL and include it in my project, BUT, it does not appear in the toolbox, thus I cant drag it onto my form.... Normally, when you include a user control in your project, it appears in the...
  11. M

    Add User Control to Project (VS2005 Beta 2)

    Hello, this is my first post. I am trying out Visual Studio 2005 Beta 2 and am very happy with it. It seems to be quite stable (so far) - I can't wait for the full release! I have developed a user control as a project, and it works well. When I run the project, Visual Studio launches it...
  12. M

    Make a panel object redraw?

    Thanks!!! Will give it a try :-)
  13. M

    Make a panel object redraw?

    Hi there, I am vb.net newbie. Am am using GDI+ to draw onto a panel control - all works ok... However, when I resize the form (it's a windows forms project) the panel erases itself and i can't make it refresh. I want the panel to refresh itself (and the stuff that was on it) when it is...
Back
Top