| equivalent to getch()? (8 replies) |
| microsoft.public.dotnet.languages.csharp |
| Is there a command in C# that does the same as the getch() function in C does? |
|
| FontStyle Question (3 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I have started using the RichTextBox and got a bit stuck on the fontstyle This is my current code System.Drawing.Font fCurr richTextBox1.SelectionFont; System.Drawing.FontStyle nCurr new FontStyle(); if (fCurr.Bold) nCurr nCurr | FontStyle.Bold; if (fCurr.Underline) nCurr nCurr | FontStyle.Underline; if (!(fCurr.Italic)) nCurr nCurr | FontStyle.Italic; is there any easier way to do this by get... |
|
| How to programmatically scroll a panel? (6 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| What method can I call to programmatically scroll a panel? There is ScrollControlIntoView() but I don't have a control to scroll into view. I just want the panel to scroll up by 100 pixels. Setting AutoScrollPosition doesn't seem to work either. The values I set are not honored, and are apparently modified by the framework. By the way, what I am trying to implement is the behavior seen in Notepad ... |
|
| How to get the physical assembly dll path? (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello everyone, I have a Class Library application in VS.net (C#) to manipulate MS Access database. I put the database file under the same folder as the assembly dll file. How to get the physical file folder? I tried several things such as "System.Reflection.Assembly.GetExecutingAssembly().Location", "System.Environment.CurrentDirectory", etc., but they return me the folder starting with "C:\Winnt... |
|
| help referencing value of a string variable via another variable (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Tricky I'm trying to do the following string sString "Here is a test string"; string sFieldRef "sString"; MessageBox.Show(sFieldRef); //How do I get this line to display: Here is a test string??? I want the messagebox to show what's stored in sString (Here is a test string) but by only using sFieldRef. I know in Clipper, this is referred to as Macro Expansion. Not sure how to do this in c# Thanks ... |
|
| draw inverted rectangle (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, There exists a very good methode in C and MFC: pDC invertRectangle(pRec); Is there any simular methode in C# and .Net ? How can I use the API function invertRectangle in C# ? Regards mike. :?: Posted Via Usenet.com Premium Usenet Newsgroup Services ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** http://www.usenet.com |
|
| windows service, unc drive, directory class - can't see... (13 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I have a windows service that tested fine locally fine on my lap top. When I place this same service on the server, my initialization file must push data to mapped drives. If I use my class that builds a hash of objects using the System management class I can return the UNC drives. If I try to see if the directory exists or ones beneath, I get "false" using System.IO's directory class. But if the ... |
|
| Implement MS word like What's this? help in C# (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| In C# What's this? help is available for a form that doesn't have MinimizeBox and MaximizeBox. I'd like to know how to implement What's this? help in the same way MS word provides. Thanks in advance for any help! |
|
| Convert String to Double (7 replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm passing a querystring to server2. Server2 parses the string and one of the figures needs to be a number so that additional calculations can take place. I try to convert using: double x (double) strParam; I get an error "can't convert string to double". Is there any solution? Suggestions? |
|
| How to use streamreader to read ascii 8 charecters (9 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Friends, Want to read a textfile with characters that go above 7F ( ascii 128) and put the results line by line in a string to process it further I used a streamreader to do so but the readline() methods in someway skipps the characters 127 . I used the binary reader as well, same result. string regel; StreamReader sr new StreamReader ( ImportFile, System.Yext.Unicode.UTF8); While ( regel sr.readl... |
|
| static member declaration (6 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Can someone please tell me how to declare a static variable in a function? The following generates a compiler error: public class MyClass { public void MyFunc() { static int i; // Compiler error: Invalid expression term 'static' } } |
|
| Parsing XML from a String (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I'm new to C# from a C background. A problem I'm having is getting my head around the different XML classes available. In particular I have a String type containing XML and want to parse it to extract values. The XML classes I've seen so far will do it from a file or a stream but (unless my eyes have failed) I can't find one to do it directly from a String. Any help appreciated! Lindsay |
|
| Type class question (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Easy : Type mytype myclass.GetType(); // my isn't an array class. How can I get easily the Type of an array of myclass using only mytype ? Alexandre |
|
| Types depending on other types (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I want to define a local variable having a type defined somewhere else. Is this possible in C#? Here's a more detailed description of what I'm about: Given a member somewhere in a class: class C {public int m;} In some function I want do define a variable having exact the type of the member defined above without actually knowing that type, somewhat like: void f() {C::m v;} So if I change the c... |
|
| UDP protocol (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Consider a simple UDP based protocol for requesting files(similar to FTP). The client sends an initial file request, and the server answer if the file can be sent. The client and server then continue with a stop and wait transmission mechanism 1) Descrive a scenario by which a client might request one file but get another; you may allow the client application to exit abruptly and be restarted with... |
|
| Is it possible to build a generic runtime C# expression evaluation engine? (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm trying to build a generic runtime C# expression evaluation engine to allow the user to evaluate any C# code blocks at runtime within the application's context. For example, obj4.p4 obj1.m1() obj2.m2(p1, p2) Class3.m3() or if (obj1.p1 obj2.m2()) { obj3.do() } where obj1, obj2 obj4 and Class3 are defined/instantiated in the application domain. With the generic expression evaluation engine, the u... |
|
| In dotNET windows_based deployment project user interface form, How to mask a textbox for input password? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| In dotNET windows based deployment project user interface form, How to mask a textbox for input password? Thanks. |
|
| ECMA-335: References to assemblies: AssemblyRef vs FileTable+ModuleRef (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| In most cases references to other assembly are stored in table AssemblyRef. But System. EnterpriseServices.dll stores the reference on System. EnterpriseServices.Thunk.dll in tables ModuleRef and FileTable. And the reference to a file is stored in table FileTable with a flag 0x0000 ContainsMetaData. What difference between the reference to assembly in table AssemblyRef and the reference to assembl... |
|
| Decimal Places in XP (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi, In my windows application, values in listview is being displayed as 2.31, 2, 4.3, etc... in client machine with Windows 2000 installed but in Windows XP machines it is being displayed as 2.31000, 4.00000, 4.30000, etc... Does it have anything to do with the client setting? If so, how do i reset it so that it displays the same result as the Windows 2000 client? Thanks in advanced. Regards, Jord... |
|
| TCP/IP (3 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hello, What is the best way to create a server with protocl TCP/IP with ethernet, in C /MFC ?? From: liat Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id utow2L0HG0Wpv4jp4IYLmA /Id |
|
| How to custom a install form in a deploy project? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| How to custom a install form? I want a install form with textbox and password box and checkbox. |
|
| Initializing objects in ctor or class (8 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hello all, This may seem like a silly question but I suddenly wondered about this. Is there any difference between the following 2 situations? 1) class A { private SomeObject o new SomeObject(); public A() {} } 2) class A { private SomeObject o; public A() { this.o new SomeObject(); } } Is there any difference at all? If there is, what is it, maybe memory allocation wise, or something, what method... |
|
| newbie: web.config for a webservice! (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi all! IDE: Visual Studio 2003 .NET OS: XP Pro I'm experimenting with c# and created a webservice. I want to put configuration settings into the web.config file so that the webservice gets more flexible... Below are 3 questions: Question 1: ?xml version "1.0" encoding "utf 8" ? configuration appSettings add key "KeyName" value "KeyValue" / /appSettings I have no problem accessing the value of Key... |
|
| Location of Addin dll (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi, How can I find out the directory location of the VS Addin thats loaded inside the code ? I basically want to access a file to read the configuration information, currently I have hardcode the default installation path, but would be nice to have the current path of the dll there. Regards Kiran |
|
| Speed Test c# vs. c++ (7 replies) |
| microsoft.public.dotnet.languages.csharp |
| hi i'm looking for a speed test of c# vs. c . the test should be representative for mass data production. it should also include IO operations. can anybody give me a good link from the internet? thanx jazper. |
|