|
Or, make the Person type a struct instead of a class .
|
|
|
|
|
hi,
i declare one xmlnode path in my C#.net application.
i want the next node name.
ex.
<comm>val
<hi>kkk
i give path for <comm> for reading the value of <comm>
and i want to know the <comm> next node name(i.e. "hi").
how can i get that in c#.net
plz help me
Thanks
|
|
|
|
|
Did you try using the NextSibling[^] property? Once you have reference to the <code>XmlNode</code> representing comm, just do
XmlNode nextNode = node.NextSibling;
|
|
|
|
|
Ok so this:
OdbcCommand read = new OdbcCommand("SELECT id, species FROM species");
should somehow return a list of all rows for these feilds.
This should be
'1' 'somehting else' <-- as in id=1 species=something else
Anyway, then i execute the reader:
OdbcDataReader reader = read.ExecuteReader(); <-- (is this what im supossed to do?)
and then im stuck, reader.Read(); returns a true or false depending on weather or not there was a result (reading from left to right, top to bottom). Rather than 'true' 'true' 'false' i want '1' 'something else' null.
How do i do that?
|
|
|
|
|
Aahh, i was so close. When it reads its doesn't read from right to left top to bottom, at reads the WHOLE row, and goes top to bottom.
The result i get thats stored in reader, is an array, so i need to go
Console.WriteLine( reader[0].ToString() );
And so on. Well im happy AWAY!..
|
|
|
|
|
We can get the list of installed softwares in the local machine by reading the registry key "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
But can I get the installed software on a remote machince....?? Please help..
thanks in advance....
Regards
Ranjith Stephen
|
|
|
|
|
Im busy with a asp.net application in C# where i work with an Excel file with 5 sheets in it. I populate the first two sheets and then formulas provide sheets 3 - 5 with data. How would i manage to print only sheets 3 to 5 after i have populated the first two ?
Thanks in advance.
|
|
|
|
|
Hi all,
i have a linklabel on my form and the text is http://www.apache.org/ and i want to know how to make this a hyperlink of sort... when you click on this link it should go to the address
Thank you in advance.
Nico
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Have you tried to put the http://www.apache.org/ address in the PostBackURL?
Do your best to be the best
|
|
|
|
|
Not yet,
thanks, i'll give it a go...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
put it in linkLabel1_LinkClicked
i think it better then others
I like this!
|
|
|
|
|
Will do thanks...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
I want to know
how to connect barcode with program by c#
difficute?
I'm not clever in c# introduce me
and how to put barcode in database
if you have email
chat with me isis_preaw@hotmail.com
Preaw
|
|
|
|
|
Microsoft BarCode Control
I like this!
|
|
|
|
|
Hi,
Quite new to C# and Visual Studio, but here's my question..
I'm on a project that uses Windows Forms with a RichTextBox.
The text that is imported/typed in this box is copied to another RichTextBox, that eventually change this text to a Scrolling Text, from right to left on the screen. Searched the net for something like this, but I had no real luck finding it, except for the DougScrollingTextCtrl. Though this is not that user friendly in my opinion.
Is there anything I could think of to create something like this?
Thanks in advance.
|
|
|
|
|
Im not sure if this would be possile, but could you try using spaces?
Like this:
make a timer
-while(text doesn't go offscreen? <-- thats the bit im not sure about)
-text = " " + text;
then once it reaches t'other side, trim the first character for as long as it is " "
Then repeat, i don't have any code for this, its just an idea.
|
|
|
|
|
Thank you for the respond,
Thought about something like this as well, though this makes the screen flicker a bit, cause it's one char after another. Would like to see it smoothen out and for the user able to change the speed it scrolls. Said I used a RichTextBox, so the user can put text in there, but doesn't matter what control is used for the scrollingtext.
I'll be looking into it, cause it's a start anyways.
|
|
|
|
|
Hi to all,
I made an installation project (msi) for my c#.Net winform application.
In the installation folder dialog box i have two options button :
Everyone
Just me (by default)
the 'Just me' option is selected by default, how can i select 'Everyone' by default ?
Best regards and thanks in advance
Fady
|
|
|
|
|
|
1. I want sample code for combo box in Data grid View 2.0.
2. Any one can provide source for master/detail form sample.
|
|
|
|
|
regarding infomation about the label in c# coding
swapna
|
|
|
|
|
tanishka wrote: regarding infomation about the label in c# coding
What do you want to know about the label? Be more specific
Do your best to be the best
|
|
|
|
|
Hi all,
I need to know how to authenticate a user before sending a mail using a
C# application.
The source code i use is this:
private void sendMailButton_Click(object sender, EventArgs e)
{
try
{
MailMessage mailMessage = new
MailMessage(toTextBox.Text, fromTextBox.Text, subjectTextBox.Text,
bodyTextBox.Text);
SmtpClient obj = new SmtpClient(SMTPTextBox.Text);
obj.Send(mailMessage);
MessageBox.Show("Message Sent");
}
catch (Exception ex)
{
MessageBox.Show("message not sent");
}
}
I need to add the authentication part. This is working but with no
authentication for the user or the mail sender address. I am using a
local SMTP server.
Thanks,
Jamil Abou khalil
|
|
|
|
|
|
i am getting problem with label i want to add label with authentication mode example if new user come he want to register new account in registration form last press the key how we write the code for that key pls help me asap
swapna
|
|
|
|