Answer Questions
philmwebb key press help
How can i know if SHIFT+L keys are pressed i know how to capture just 1 key but how do i capture combinations Thanks Hi To determine if Ctrl+Shift+F6 is pressed use: if(e.Shift && e.Control && e.KeyCode == Keys.F6) { MessageBox.Show("Shift+Ctrl+F6 pressed"); } Note the use of the e.Shift and the e.Control properties. I don't know how you will find out if the user presses L and R at the same time ...Show All
J.A.J. thnaks
hi how i can use peer-to-peer connections with c# application and how i can send file to other application or computer microsoft peer to peer tech i think is DirectPlay.. i saw more details on the DirectX SDK ... Try There are so much articles, example and tutorials on the net. Take a look at some of there articles: Real Time TCP/IP using C# - The Code Project - C# Programming Introduction to TCP ...Show All
Steven Guo typedef in C#: Visible in separate projects
I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS { using Handle = System. Int64 ; or using Handle = System. Int64 ; namespace NameSpace CS { But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the using NameSpace CS ; in my other project but it still seems to ...Show All
Tran Van Thang Collection that lines up automatically objects added to it
Hi there, I'm making one simple app, that reads all the employees from a SQL server, and presents in a form one button for each of them. My question is if existe some type of collection where I add buttons in runtime, and this lines up them for me automatically, as well as when I resize the window, moving for one another line when it arrives at the edge of the form. I hope to have myself done to understand, ...Show All
lmsa problem with property update...
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace test { public delegate void D (); public interface IA { event D Event; } public struct A : IA { public int i; public event D Event { add { //assign value here i = 123; } remove { } } } public class C <T> where T: IA , new () { ...Show All
jettman Can this be made more efficient?
Does anyone know of a better way of doing this I have been tasked to convert a VB 6.0 app over to C# and encountered this routine (there are more like this). Luckily the original coder believed in documenting but, I'm having a devil of a time trying to convert this to C# code! I've thought of possibly using a regular expression but I'm not at all familiar with them and so far have gotten hopelessly lost. Can someone please ...Show All
trucktrax Communiacting with DLL in c#
I am working on a project which communiactes with a Radio Device (WR G303e Radio Receiver)connected to PC via USB. I comes with an API WRG3API.DLL implemented as a 32-bit driver. In the SDK it has examples for Delphi and C/C++. My Question is..... How can i import/communicate (with) this dll to work in C#. I am looking for some1 2 reply... please help me if any1 out there has any info about this issue... Kind Regards t4urean an option ...Show All
ChristophEgger Convert to VB
how would this look in basic uint somevar = 100; int x &= ~(int)somevar; uint somevar = 100 ; converts to Dim somevar As Uint32 = 100 int x &= ~(int)somevar; converts to Dim x as Integer = CType(somevar, Integer) HTH That's not C# code. If you meant: int x = ~(int)somevar; then the VB version is: Dim x As Integer = Not CInt (somevar) If you mea ...Show All
carolyn H Network
Hi, I am start learning to use the System.Net functions build in 2.0. Now I have a simple task I want to complete, I want to be able to send information between different computers in my LAN. More exactly I want to send strings between the computers: - type - name - message What is the best way to do this The best thing to do is to working with a server-computer, I think, because I'm working with more than 4 computers. Pleas ...Show All
irascian Problem with axWebBrowser in a Multithreaded application
Hi! So I have a MainForm. There is a timer on that form, and in a right time I want my application to shows four seperate forms with an axWebBrowser on them. These axWebBrowsers are automated with their OnDocumentComplete events. So, first I had the following error message: ...The current thread is not in a single-threaded apartment. So I searched the internet for this error, and corrected my code with this line: regThread.ApartmentState = ...Show All
Rocker How can I group listview items under categories created at the design time?
Hello, I am wondering how can I group listview items under categories created at the design time. Code: listview1.Items[X].Group = XXXXXXXXXX Please help. Thanks. Thanks but I didn't understand your code. I tried: private void Form1_Load( object sender, EventArgs e) { ListView lv = new ListView (); ListViewGroup lvg = new ListViewGroup ( "1" , "Hello&q ...Show All
LTR web forms or html forms
hi, i may sound so stupid but i really want to raise this question. i'm using visual studio .net and C#. i am doing a web page and i noticed in the toolbox the Web Forms and HTML which contain some same controls. what should i use does the controls in WebForms have big differences with the controls in HTML thanks. thank you. hope you'll read my new post/thread. ...Show All
Michael Boehm Visual Studio 2005 fails to reference typelibs
I have both 2003 and 2005 installed. I am able to add a reference to a tlb file into a C# project when using 2003. However, if I attempt to reference the same typelib in a C# project created using 2005, the file does not seem to import. If I double click on the refernce (it has an ! icon), I get a message saying: "This project cannot be viewed in the object browser because it is unavailable or not yet built. Please ensure the project is availabl ...Show All
Richard Burte Copy a float to an array in network order?
Hello, I like to send an udp packet with several measurement values to another network station. Some values are float values (4 byte). How can I copy the float values with C# to the byte array of send data How can I get the right byte order, big endian Thanks and regards, Jens hi, you can use BitConverter class to convert the types like for example double test = 3.123; byte[] doubletoByte = B ...Show All
Gaurav Srivastava Signed WDSQuery.dll that can go into the Global Assembly Cache
I am creating a library in C# that will go into the Global Assembly Cache. The library useds the WDSQuery.dll. Because the WDSQuery.dll is not signed, I get the following error on compilation: error CS1577: Assembly generation failed -- Referenced assembly 'WDSQuery' does not have a strong name Please suggest how I can sign it or please post a signed version of the DLL. Thanks Try: SN.exe myKey.snk TlbImp wdsQuery.tlb  ...Show All
