Answer Questions
Juke CallBack from a WIN 32 C++ dll
Hello Everyone, My application is written under C#, but for some of the low level stuff I have to use C++ dll's and one of the dll require password before I can make some function call or if user entered wrong should ask again..... How can I implement something along those lines.... At first I can send the pasword, but if the password is wrong what is the way to get the password....If you want I can even post my procedure which asks for ...Show All
arexey VS2005 look for Strip-Controls?
Hi all, I really like the new strip controls, but the blue office look is not really good looking in my opinion. I already found that I can make all controls grey by setting ToolStripManager.VisualStylesEnabled = false; But is there a way to make the controls look like the ones in VS2005 Best Regards Bernd Ritter ...Show All
tlgRocksOn How do I find the printable client width and height?
I have the following code: private void button1_Click(object sender, System.EventArgs e) { PrintDialog pd = new PrintDialog(); PrintDocument imageDoc = new PrintDocument(); pd.Document = imageDoc ; imageDoc.PrintPage += new PrintPageEventHandler(imageDoc_PrintPage); &n ...Show All
T.J. Glazier I could really do with a pointer in the right direction
System.NullReferenceException: Object reference not set to an instance of an object. at _Default.Page_Load(Object sender, EventArgs e) in Default.aspx.cs:line 30 it is in the following code: using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net; using ...Show All
GSVS How to access shared folder in windows application programming
I am writing an windows app in C#. Clicking on a button goes to a shared folder (ex. \\abc\shared ) and searches a certain file in the folder. I have to create session and login class, but I am not sure how to start off with this. Do I create session events and how do I integrate login class and session so that I can access the shared folder in other machine and do searching Can any expert help me with this ...Show All
P J Walklate good c# book for window form and ADO
I have read Jesse Liberty's Programming C# third edition. Now I am working on C# 2005 ( window , ADO ,database) , and looking for a good book with more pratical codes inside. Please give suggestion. Pro C# 2005 and the .NET 2.0 Platform Thrid Edition by Andrew Troelsen Published by Apress...Has a good amount of what your looking for has a lot of code threw out the Entire book...Well Explained and Commented...I own the book and like i ...Show All
Radical Convert seconds to minutes+seconds?
Sorry for the elementary question, but I am new to C & C#. I need to convert seconds (upt to 3600 seconds) to minutes & seconds. For example I need to convert 90 seconds to 1 minute and 30 seconds. I'm struggling with how to get and manipulate the remainder after I divide 90 by 60. Your patience is appreciated...;) Gotta love google. Thanks! Duh.... Thanks! ...Show All
spregula Difference between out and [Out]
Hi Does anybody know what is the difference between out and [Out] For example if I'm passing byte[] to unmanaged c++ and I use fun(out byte[] bArray); // this doesn't work fun(ref byte[] bArray); // doesn't work too fun([Out] byte[] bArray); // this work perfectly C++ fun(*byte); Thanks for you answer, But tell me if I you [Out] - it does mean that c++ will be using copy of my data - I don't think so couse I can change ...Show All
GrahamWilliams 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
Srikanth Anumalla socket exception
ok made a very very good class server it can handle to 3879 clients but when it reach 3880 it throwes an exception like that says that it cant perform operation on a system socket because the socket`s quenque is full ya.. but begin accept are async methods arent they already executed on a seperate thread Anyway.. i thought that my other client class is the problem... but then i tried to connect with telnet.. and got message that the it ...Show All
lvance 2005 .item() & .Select() replacements?
In 2003 I could set, for instance, the datagrid.item() and datagrid.select() to select a row after filtering the dataview results. These aren't available in 2005, how can this now be achieved And when you cast it to a DataGridView: // Create a DataGridView reference. DataGridView view = (DataGridView)dg1; - or - // Cast it and use it directly. ((DataGridView)db1).Item; Thank you very much Ka ...Show All
pradjini Error when attempting to register
I had initially installed the C# Express February CTP on March 20th. I uninstalled it a couple days ago & installed the Beta 2 version of the C# Express Edition as best as I could, following the uninstal directions. Today I got a message saying I had to register my copy today, so I clicked the link, filled in the form, and hit submit. The result was an error however: We were unable to send your e-mail verification mail. An unknown ...Show All
Harry Hart PInvoke Doubt.
Hi, i am working for Certificate Management module in a Smart Card Management System project. I am planning to use Platform Invoke to access the XEnroll.dll, CertCli.dll and Certadm.dll. I am planning to create an wrapper like the following public class XEnrollWrapper { [DllImport] << Function that i like too call from the win32 dlls>> } My Question is: The certcli.dll or XEnroll.dll may be changed/replaced e ...Show All
LenardG Problem permiting global shortcut keys
I was programming a program that would hide itself at the press of Ctrl-Space and show itself when Ctrl-Space was pressed. However, the program has to have focus or this won't work. Is there a way to permit such a shortcut press while using another program without clicking on its task bar button I got that to work properly, but now it won't even respond to the keypress after registering them. Upon commenting t ...Show All
Shahab03 Help me : Recognise a word by press Ctrl+ right mouse click
I make an dictionary application , i want to make a function : user can Ctrl + right click on the word ( Inside my own application , not other application ) and i show the meaning of word. How can I recognise a word by press Ctrl+ right mouse click Can you help me with some demo or can you give me an advice. Thank you very much. Hi! All depends on how you show words in your app. If you use TextBox or RichTextBox - use GetCha ...Show All
