|
The underdog wrote: removed = sokje.Receive(data);
if you want to use this line to read from the client then it's wrong because sokje is the server. Use this instead
removed = clSocket.Receive(data);
Do your best to be the best
|
|
|
|
|
I ow u one Tnx a lot
|
|
|
|
|
Hi,
Having some trouble with the cursor position on datasets, so now i used bindingcontext and a currencymanager to update and insert records...
But it seems that the selected record in my datagridview isn't the same in the dataset after using sort on the grid...
When using the currency.position the update a row on the dataset, a different row has been updated. (probably not correct i guess)
Does anyone know how i can change programmatically values in my dataset in the same record as selected in my datagrid ?? the controls with binding are ok. But i need to set a datetime value when the record has been changed, and this is not entered by the user.
Thx
Kurt
|
|
|
|
|
Hi all,
I want to print a pdf file if the user clicks on a print button
I'm using this code...
string CardPath = "C:\Card";<br />
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = CardPath + "\\Card.pdf";<br />
myProcess.StartInfo.Verb = "Print";<br />
myProcess.StartInfo.CreateNoWindow = true;<br />
myProcess.Start();
I get an error saying just as it executes the myProcess.Start() part of my code...
"No application associated with the specified file for this operation"
How can i specify with what application to print??
Please help.
Thank you in advance....
-- modified at 9:20 Thursday 5th October, 2006
Oh yeah...
Would you by any chance know how to send this print to a specific printer?
i can send a .html or .doc to the printer but not the .pdf as stated above.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi! How do I save the contents of a list box, so that when the user shuts down the program, they click a button called save and the next time they open it, it is still there?
|
|
|
|
|
if ur using any database the u can store it in table at the time of closing application
or u can use Xml file to store ur content.
rahul
|
|
|
|
|
It would be REAL handy to know what type of application you're talking about, but I'm assuming a Windows app.
Generally it would be really easy to save the contents to a small XML file, then at startup check to see if that file is present. If it is, put the contents back in the listbox, and if not, it would be empty.
HTH
WhiteWizard
aka Gandalf
|
|
|
|
|
Hello every 1
Can any 1 tell me if there is a .NET control / library that can be used to create trees (preferably binary)on WinForm in C# application.
I have seen tree at cp that are vertical but i want tree that grows horizontally.....
any suggestions are welcome....
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
Hi,
I have a basic doubt in using a switch case.
For the case stmt am unable to have a static or readonly value. The compiler gives a error "A constant value is expected".
i.e, if i have a variable like - private static myval = "R1";
--
switch
{
case classname.myval: // gives compiler error
}
Would be much happy to know the logic behind this.
Thanks.
|
|
|
|
|
He is Cool wrote: switch
{
case classname.myval: // gives compiler error
}
in switch steatement you should set any value .
|
|
|
|
|
yup. i am giving a static value.
|
|
|
|
|
|
Yeah, that was definately a thinker...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
switch is pretty much limited to constant values. The value needs to be known at compile time. myval can be changed in the code, so it will not always be the same.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
He is Cool wrote: Would be much happy to know the logic behind this
Only constants are known at compile time. The value must be known at compile time for it to generate a valid switch statement.
With a static the value can be changed at any time during the run of the program. With a readonly the value is set at runtime, although it cannot be changed once set.
So, you can only provide a constant value. Either a literal value or something set as a const , just as the compiler says.
|
|
|
|
|
Hi,
I'm new to C#. I need your help with regard to the PropertyGrid.
I want to have a PropertyGrid for my class "Car" which has the category details of engine, wheels and framework. How do I create create categories and their respective fields like Category Engine - Type, Name, HP and so on?
|
|
|
|
|
Hi,
You have to decorate your properties with the CategoryAttribute attribute. In your Car class:
<br />
[Category(Engine)]<br />
public EngineClass Engine<br />
{ get ; set; }<br />
If your EngineClass contains all the fields you want to display, then use a TypeConverter that will expand the Engine node, like ExpandableObjectConverter or a derived class of it:
<br />
[TypeConverter(typeof(ExpandableObjectConverter))]<br />
public class EngineClass {<br />
...<br />
Hope that helps.
|
|
|
|
|
There are three textboxex. I have given values in textbox1 and textbox2 as 10 and 20. if I hit the enter key not tab control the sum of two textboxes(30) will be displayed in textbox3. How can I write on client side using javascript? if anyone send code its nice.
thanks,
Hosanna.
|
|
|
|
|
I recommend the web dev forum for this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi all,
I am working with Direct show in C#
I want to play a live stream from a link.
the link consists of a .asx file
I am able to play a saved .asx file but the live link is not working
How do i do that?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hi Thanks
Iam new to using win32 API for serial communication.
Plz help me
I want to send one string("Hello") to COM port
port is COM2
baud rate 9600
parity None
Data bit 8
Stop bit 2
Now I want write program in C#.net 2003 and framework1.1
Plz give me a small program for this (you can assume after click button the data should be send)
It’s more useful in my application
Plz
Thanks
|
|
|
|
|
hi
i found an article in codeproject as DataGridPrinter that print datagrid good. but it has written with VB.Net and i want it in csharp. when i create dll in VB.Net and i use it in c# the following error shown me :
Unable to cast object of type 'System.Windows.Forms.BindingSource' to type 'System.Data.DataTable'
and when i set Datagrid1.DataSource = ds1.Tables["Table1"]; the following error shown me :
//in Line 374
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
how to solve my problem and do you have a other class that print datagrid in C# with header and footer ?
thanks ..
|
|
|
|
|
How to read a exact line from .txt file.
Example:"FileName.txt", line 15.
Vasildb
|
|
|
|
|
File.ReadAllLines will read your file into a string array. Then you can use index 14 to read the 15th line.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|