Jump to content
Xtreme .Net Talk

TechnoTone

Avatar/Signature
  • Posts

    225
  • Joined

  • Last visited

2 Followers

About TechnoTone

  • Birthday 08/22/1972

Personal Information

  • Occupation
    Software Engineer
  • Visual Studio .NET Version
    Enterprise Architect
  • .NET Preferred Language
    VB.NET

TechnoTone's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I want to allow \r, \n, etc, to be entered into a textbox (windows form) but then when I query the textbox it interprets them as @"\r" and @"\n" and not the scape characters "\r" and @"\n", etc. How can get these escape characters without them being converted to literal strings?
  2. Don't know why I didn't search for "context menu handlers" before but I just did and found loads of information. Sorry! Can someone please delete or close this thread.
  3. Anyone know how to create a sub-menu on the Windows Explorer context menu? I'm trying to do something similar to the WinZip sub-menu's. After looking in the registry I found an entry in "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\WinZip" which refers to a CLSID which then refers to the WinZip DLL WZSHLSTB.DLL which is a shell extension context menu handler. What I need to know is what does this DLL do and how does it work. I'm guessing that there is a common interface that a shell-extension context-menu handler has to implement for it to function within Windows Explorer but I don't know what it is or how to find out. I've even tried looking into the WZSHLSTB.DLL (and the accompanying WZSHLEX1.DLL) with a HEX viewer but that didn't help. I can see lots of function names but I don't know what the parameters or return values are. Does anyone have any information on this or any suggestions on how I can find out?
  4. I realise that, but what I'm worried about is having to re-work the rest of my project into C# just because I need C# for one particular object. I was hoping I could incorporate a C# class into the existing project without having to re-do all of it. To clarify, the project is a common library that we use within our projects which encapsulates commonly used objects and functions. We are reluctant to split it into more than one library so it looks like we will have to convert all of it to C#.
  5. Thanks. I am an experienced VB.NET developer (been using VB since version 4) but have been considering learning C# too. It seems now is as good a time as any to get started. By the way - is it possible to mix C# and VB within a single project/assembly?
  6. Cheers people. Looks like it's finally time I got stuck into C#.
  7. I want to create my own object type called SWIFTBIC. This object will essentially be a String but it will have built in validation to ensure that the assigned value can only be a valid SWIFTBIC. Valid SWIFTBIC's are 6 characters followed by either 2 or 5 alphanumerics (Regular Expression "[A-Z]{6}([A-Z0-9]{5}|[A-Z0-9]{2})"). This in itself is fairly straight forward. However, my problem comes from the way I want to be able to use my SWIFTBIC. I want it to behave in the same way a String variable does, so that reading and writing to the objects value can be done directly as follows: Dim mySB as SWIFTBIC mySB = "ABCDEFGH" myTextBox.Text = mySB I realise that the direct assignment may not be possible without using a constructor: mySB = new SWIFTBIC("ABCDEFGH")That I can live with, but how can I get access to the objects value directly without having to specify a property? I've tried using default properties but that won't work without a parameter. I've also tried inheriting a String but that isn't allowed either. Is there any way to do what I want (using VB.NET preferably)?
  8. Ah yes - I missed the "and clickable" bit. Sorry. Yes - a separate thread would be the way to go in my opinion.
  9. Try either Me.Refresh or Application.DoEvents.
  10. I too use Microsoft's Visual SourceSafe. It works well enough for me.
  11. Nice. I wouldn't have thought of that.
  12. I come somewhere between 2 and 3. I try to plan as much as possible but I usually find gaps in my plan once I start work on development.
  13. That's not quite what I meant. In your example I agree, delegates provide a much better solution to using a timer. Interrupt or Event driven processes are always better than Polling processes as there is no wasted effort. What I'm asking is why would you go through the effort of using delegates directly when AddHandler and RemoveHandler do all the hard work for you? I think I've discovered one reason. AddHandler and RemoveHandler are VB.NET only so you can use them if your just interested in VB.NET programming but if you want to use C# or are considering using C# then you should get used to using delegates directly.
  14. What is the difference between using Delegates or using AddHandler and RemoveHandler? Are AddHandler and RemoveHandler actually using delegates behind the scenes anyway? If so, why would you use deletages manually?
  15. Turn on the forms KeyPreview property and respond to its KeyPressed event. When a function key is pressed you can show the correct panel (and hide the others).
×
×
  • Create New...