Answer Questions
old ocker 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
jeevan rekha Index of a string within another string
The ".IndexOf" functionality for determining the position of a char within a string is very useful, but I need to be able to do a similar thing with a string rather than a char. i.e. I would like to be able to say string1.IndexOf("string2") rather than just string1.IndexOf('c'). Is there simple functionality like this that I don't know about (or have just plain forgotten!) If not, what is the recommended strategy ...Show All
itsnomihere WDS web search results in Firefox
I'm having trouble getting WDS to provide web search results in Firefox. I understood this function was simply supposed to load up my default browser (firefox) and pass it " example query". This should go to my default search page and list results for "example query". However, I'm taken to the page "file:///C:/ %20example%20query" instead. If I type the string " query" into the location bar in FF directly ...Show All
Susan Bradley Multi line Registry Key
Hi, I'm currenty working on an API for Windows CE and I saw a little thing I would like to be sure. When I get a registry Key and recognize it as as multiline, I put everything in a list, but when I watch on it there is some values I can't see on Windows CE Remote Registry Editor. This is my code sample: case RegistryValueKind.MultiString: List<string> L = new List<string>(); string[] values = (string[])Key.GetValue ...Show All
CALIFF Phone number
Hi. I want in a program by ringing the phone, I get the phone number. How or tell me on which library I should work. Can u please make it elaborate Regards, vinoraja If you have a modem that support caller id or other caller id device with serial port interface you could connect to the modem with the SerialPort class . How to exactly get the number depends on what modem/device you have, it should mostly be ...Show All
iAlbeniz Print Preview
Hi I need help with Print Preview that is working but it display only in plain text. I am trying to display in Rich Text can anyone help Hi for example when I try to display any document.RTF it shows as plain text with somekind of format text . I hope you understand what I mean. What do you mean by "Rich text" Compare "Rich Text" vs "Plain Text&q ...Show All
Trev Hunter C#.net or VB.net
I am beginner for .net programmer. Just want to know which one is better on marketing VB.net or C#.net I heard big companies more like c#.ner than vb.net thanks. C# is the same speed as VB.NET. However, a .NET app is slow to startup, because it needs to be compiled into native code. Perhaps this is the speed difference you noted C# can be considered a mixture of VB and Java, so you might want to lean towards C#. ...Show All
Iain Mcleod Can C# runtime code be encripted?
Is it possible to encript a C# executable so that a hacker will have real trouble when trying to disassemble the code in order to crack it Can the C# debugger be disabled for runtime The term you're looking for is obfuscation . There are several tools available to do that, and there've been some discussions on that topic as well: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=192007&SiteID ...Show All
Chrisatwg Just-In-Time Data Loading For DataGrids
Hello! I have a database with 2 million records and I want to display these records in a data grid, but I do not want to load them all into memory from the database. I want them loaded "just in time," maximizing performance and minimizing memory load on the application. Version: Visual Studio 2005 SO: Windows XP proffessional Thank you in advance On Windows dev center there is a g ...Show All
M.Davoodi program exit????
i trying to learn c# but when i try start/debug it. i say The program '[3864] WhatDay1.exe' has exited with code 0 (0x0). it does whit all the labs so fair help me plz what does this means and how to fix it using System; class WhatDay { static void Main() { Console.Write("skriv nummer 1 og 365: "); string line = Console.ReadLine( ); int dayNum = int .Parse(line); ...Show All
laksh Word document binding
Hi, How to bind word document into c# windows form like how we used to do using ole controls in vb6 Thank you, Prashant You have to implement the toolbars yourself, there are no default toolbars available as far as i know. There is a great example on The Code Project how to do this, take a look at the following article: Word Control for .NET . Thank you Van de Sande for reply, I did t ...Show All
Peter.Kortman The new IntelliSense feature is fantastic!
The new IntelliSense feature is the answer to a prayer. As much as I like C#, I always wished for an IDE option that would make it a little more like VB in one particular way: variable name case insensitivity. Under VB, if I declare a variable called “ MyVar ” I can subsequently type it as “ myvar ” and VB will automatically correct the casing as soon as I hit the space bar or enter key. Not only do I not have to go to the trouble of holdin ...Show All
scoobyjw store image
Hi can anyone write an snippet code to store image in database with binary shape(code) not an image seroiusly there must be an easier way to convert a filestream object into a memory stream i'm amazed by how many examples i'm seeing that require us to manually create a fixed length TEMP buffer and move data from one stream to the other. i'm simply amazed, i a bad way :( Here is a little example: Image image = Ima ...Show All
IanO DataReader not returning any data
Hi there, I have a slight problem using DAAB 2.0. I have a sp that runs fine through sql 2005 passing in the params manually, however, when I try and do the following i get no data public void() { userToGet = new User() //User struct Database db = DatabaseFactory.CreateDatabase("DB"); using(DbCommand dbCommand = db.GetStoredProcCommand("sp_name")) { db.AddInParameter(dbCommand, 'UserLogonID", DbType.String, &quo ...Show All
Kerem Baser Async Socket problems..
Hello! My problem is that when the socket have recieved all the data that the client is sending the last BeginRecieve call is not made so what I've read is never printed to the console. I've added the code for you to look at here: http://www.pastehere.com/ trvikn As you can see in the RecieveCallback method I first do: Int32 BytesRead = stateObject.IOSocket.EndReceive(ar); and then: if (BytesRead > 0) ...Show All
