ljlevend's Q&A profile
.NET Development Client IP Address
Client IP Address Hi I am using VB.net to run a Server Client application through TCP/IP I managed to connect and transmit data. One probel I am finding is that I need to get the IP address of the client while accepting and compare it to a list in the database. If the IP address is not in the database, the connection will be terminated. Can someone pls show me how to red the Client's IP address. Thank you all hi, i'm sear ...Show All
Visual C++ Scroll Bars and Status Bars
I wanted to create an application and ran into trouble. I want to create an application that is a single document but instead of a control in the window, I wanted to draw stuff in there. I added WS_HSCROLL and WS_VSCROLL for scrollbars and then used the Create Status Bar Function. I had the status bar inside the window and the scrollbars outside. It looked like this: [Status bar] V <--------------->/ Is there a way to make the ...Show All
Visual Basic Setting a value directly with serialization without calling the property set
In Visual Basic 6, I might have a property (for example Style) which when set, would also set a number of other properties to suggested default values. In ReadProperties, I would simply read the style directly to the variable holding the value, for example: Public Property Let Style(ByVal Style As Styles) mStyle = Style Select Case mStyle Case SomeValue &nb ...Show All
Windows Forms Windows App Standard toolstrip code?
Hi, I as wandering if someone would be able to show me some standard code to apply to the common menu strip items like edit,copy,paste,save as, print etc. As these things probably appear in most peoples Windows apps I was hoping someone could would be able to help. Many thanks, James ...Show All
Visual C++ Managed classes in static Libs
I have tryed building a static lib containing managed classes. My problem is that I get link error LNK2020: unresolved token when trying to access managed classes in the lib. However, I can get around the linker error by defining an unmanaged class in the same header file. The executable is set to be dependent on the library project, and adds the lib-file to the "Additional dependencies" field for the linker. Then I just include the ...Show All
Visual Studio Team System Check naming of boolean fields/variables
Thank you again for all the answers. I have a new question. I have written this code: Cinthia, As pointed out on your original question, the following blog post has some sample code that shows you how to do this: FAQ: How do I access the locals of a method in a custom rule Be aware though, that symbols (.pdb) will need be generated and be alongside the assembly you are analyzing for the local's name to be populated. Re ...Show All
Windows Forms How to access DataRow.rowID?
Hi, How can I access DataRow.rowID I see it in the variable window during debugging, but I'm not allowed to access it in my program. Is there any possibility to know the row ID of a given row in its table, without enumerationg through all ...Show All
Visual Studio Auto-layout collapses classes
Class Designer has a nice automatic layout feature, but it always collapses all classes before doing its thing. Is there some way to auto-layout expanded classes (i.e. so that they stay expanded) It would be nice if the Auto-Layout would work when classes are expanded. In other words, I would like to print out a (large) diagram with each class's attributes, methods and properties visible. I know I can highlight ...Show All
.NET Development ADOX column properties
Can anyone please provide c# example for the following vb ADOX code Set tbl = New ADOX.Table With tbl .Name = "Artist" .ParentCatalog = cat .Columns.Append "Artist_ID" , adInteger .Columns( "Artist_ID" ).Properties( "AutoIncrement" ).Value = True .Columns( "Artist_ID" ).Properties( "Nullable" ). ...Show All
Visual Studio Team System Merge and branch in various versions of a software in clients but similar in structure
I hope you can help me out on this one. My company produces an ERP that is based on visual studio 6 and sql server 2005. We need to implement a control version that assures version control, check in policies etc. TFS is the solution for us but there are some issues that I cannot solve. We have a base application for our clients and each client has our base application modified to their need. So here if we branch the base application we ha ...Show All
Visual C# How to create a new mail message window?
Hello, I am using VS 2003. What I am trying to do I hope is just a simple task, but I cannot seem to find anything on the Internet about it. I have a simple form that has a label and a text box. The label says "Email: " and its a link label actually, so what I want to do is, when the user clicks on it, it opens up a "New Mail Message" window. I want it to work whether they use Outlook, Outlook Express, Thunderbird..etc ...Show All
Smart Device Development Handling Sliding Keyboard + Some ARM Assembly decoding
Hi, Apologies in advance if this may be off topic, but i think it is an interesting and challenging issue related to WM device programming ( besides, no one has been able to assist of yet in other news group ). My device has a sliding keyboard...when that keyboard is slid open on the WM2005 Today screen, the keyboards enters a "num lock" state. This is where some overloaded keys that act as the phone dial-pad ONLY outpu ...Show All
Visual Basic inheritance template missing in vb.net 2005 express
I'm trying to experiment with form inheritance and created a base form with a couple of buttons. I save and build this base form as a dll. Then I try to add another form which inherits the base form, but the project menu has no items to allow me to add an inherited form. I've also tried adding a reference to the project first, but it still doesn't work. What is wrong Actually, rather tha ...Show All
Visual Basic KeyEvent Questions
I know how to get the key event of the application that I am working on, but how do I use the keyevent classes to capture general keystrokes For instance, if I want to mask a textbox to only allow numbers (I use VB.NET 2003), then I would monitor the keyevents for that specific textbox. What do I do if I want to mask a key or several keys for an entire program Would I have to put a mask everywhere or is there an easier way to do this. If you ...Show All
Visual Studio Team System Expected date for final 1.35 release
Anyone from the FxCop team care to give an estimate Joe, We are looking at a release before the end of the next month. A couple bugs (such as your analysis one) have found on the RC, so we hope to fix these before we release the RTM. Regards David ...Show All
