Answer Questions
Wolfgang Henrich Installing Windows Services during runtime
Aloha, I've been trying to install a Windows service during runtime in Visual C# without using any seperate programs like installutil.exe. The MSDN library barely gives any information on this, always referring to installutil.exe or a full MSI installer package, neither of which can be done in runtime. I'm wondering if it's even possible to do this during runtime. Perhaps it would be better (but messier) to directly alter the registry perhaps ...Show All
arazy Serial Port - ASCII Char Write Problem
Hey, I am working on a project which involves communication to a device through a serial port and I have to send ASCII commands. The problem arises when I try to send ASCII characters above 127. Those do not converted to ASCII properly. I know so because I am looking at the output using a serial port monitor. For example <STX> (ASCII code 2) gets send out as a ASCII char whereas T (ASCII code 254) gets converted to and therefore ma ...Show All
Lam Nguyen Need VPN Client Software
Hi, I need best VPN Client software for Windows XP. Please send the link ASAP. Thanx Ganesan .M Hello Ganesan, This forum is for questions specifically regarding Windows Desktop Search. If you have questions regarding VPN client software you might try these resources: http://www.broadbandreports.com/forum/vpn http://www.tek-tips.com/threadminder.cfm pid=463 Paul Nystrom - MSFT ...Show All
BigPete gac'ing problem
Hi, I modified some changes in dll and then gac'ed it using gacutil, still i dont see the new changes. i commented wrote some code to eventviewer, still i dont see the new changes. i also dragged and dropped into c:\windows\assembly folder and tried adding it from the UI also, nothing seems to work. i am working in vpc, but that shuld not create any problem. any one have faced such problems, help me venkat. ...Show All
apocalips ArrayList copying a class
I am reading a .csv file and loading each record that I read into a class then populating the class into an array list. The issue I have is that the class contains strings and seems to be copied by reference in the array list. Therefore causing an issue when adding additional records the reference is just being written multiple times in the arraylist with the same pointer. A friend suggested I use a dataset instead of an arraylist. I have to do ...Show All
Sumit Kute Blocking ALT+CTRL+DEL in your application!
Hello all How to block ALT+CTRL+DEL or ALT+F4 in your c# application. Thanks for your help. Comsin wrote: U can't block Ctrl-Alt-Del combination but u can prevent user from doing anything else. In WinXP the user won't be able to use the Task Manager, but in Win2k and Win 2k3 it's a little more complicated cause u have to chose the Task Manager from another 6 options. That's XP Home. XP Pro be ...Show All
jjamjatra Splitting a string using multiple delimiter error
Hi guys, I am using C# express august edition, i get this error when trying to do this string t = "Once,Upon:A/Time\\In\'America" ; char[] seps = new char[]{ '/', '\'}; foreach ( string ss in t.Split(sep2)) Console.WriteLine(ss); it says too many character in character litral what do i do but i have a string that has \r\n\r at its end, and i want to remove that from the upper bound of the arraay, like This\r\n\r, how do i remove ...Show All
xinpis .GetBounds() error
Hey folks, I'm not sure if this is the correct forum to post this, so feel free to move the posting a more appropriate place if you deem it necessary. :) First of all let me state, that I'm very new to C# programming. As a matter of fact, I have only ever had one programming class (C++) in college, which was an elective. ;) Anyways, here is the problem I have. I have two images and I want to check if they collide at some ...Show All
gorden Properties - detecting non set properties
I have a two classes; branch and staff the branch class hhas, amongst other things a member variable called manager, which is of type staff as such: private staff manager; in the constructor I set manager to null, as for various reasons I do not want to create an empty staff object at this point. I am using properties to access the manager details, but sometimes, due to the order of events, the user may attempt to access a branches manager whic ...Show All
VIGILJO using ExecCommand to copy in MSHTML
I am working on an editor using mshtml. I just cannot get cut / copy / paste to work with ExecCommand. All other command identifiers seem to be working well. Here is my code: public partial class Form1 : Form { private static HtmlDocument htmldoc; private bool fireonce = false; // fire previewkeydown only once public Form1( ) { InitializeComponent( ); } private void Form1_Load(object sender, E ...Show All
Larry Joy Problem related to inheritance
Can u tell me as in c++ if we want to access member of base class privately then we write base class:private derived class But in c#.net how it will be implemented I didnt understand your question exactly. If you are asking about how to do private inheritance in C# then the answer is C# does NOT provide private inheritance. ...Show All
buguyaga Printing text directly to a printer (NOT as a graphic)
I can print text if i do a e.Graphics.DrawString(......) My problem is that I am trying to print to a card printer, and usually it checks what text it is printing, and if it hits a '~' it then encodes the magnetic stripe. When i print from Microsoft word, or Access, it works fine because text is sent to the printer. But using "PrintDocument" object and drawing to a bitmap, it is unable to parse the text. Any ideas on how to print text ...Show All
ylhyh SQL Server
Ok. I have a Windows Media Player Control question, and a SQL Server question. What I want to know is, when I am choosing the sound file location for the Windows Media Player, if I can have it play a file from my SQL server, and if so, how would I put the file on my SQL Server i'd like to know also. Duplicate of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=131562&SiteID=1 ...Show All
apander MS, MVP feedback, question: casts / conversions -- some way to automate?
Is there some way to adjust the warning level and other compiler flags so that the c# compiler is 1) not so darned finnicky about expressions using mixed floating point and integer types and 2) actually performs automatic conversions more correctly than it does, like a 'C++' compiler some feedback on this also -- requiring explicit casts in so many situations is all downside, as far as I am concerned: Its very time consuming having ...Show All
Scraniel Index Out Of Range Error
Hello, I am getting An Index Out of bound error after my site is uploaded. The problem does not occur in the localhost. This error is not frequent but is rare. Please suggest me with a solution Thank You Anoop.H 1 - work out exactly where the error occurs 2 - do better bounds checking to stop it from happening. ...Show All
