|
I say that you are to use.
for (int i = 0; i <= integer-1; i++)
or
for (int i = 0; i < integer; i++)
If reader.FieldCount = 4 get the i parts 0,1,2,3
|
|
|
|
|
hi friend's
i design an application that when start need to read a serial number from a server that this serial number saved in a sql database. but i dont know how to set my connection string and so on...
please give me a asolution
thank you
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
thank you
this site is suitable and useful.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
Hi,
I am using c#.net and Microsoft.Office.Interop.Word dll to read the ms word document content. My requirement is to read all available bookmarks from the document.
I am able to read the number of bookmarks(count only) but failed to read the bookmark names.
Here is the code for reading bookmark count.
_Application wdApp = new Microsoft.Office.Interop.Word.Application();
_Document Doc = new Microsoft.Office.Interop.Word.Document();
Microsoft.Office.Interop.Word.Range wdRange;
object optional = System.Reflection.Missing.Value;
Doc = wdApp.Documents.Open(ref _fileName, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);
int intParaCount;
intParaCount = Doc.Bookmarks.Count;
Please provide the code for reading the available bookmark names from the word document.
Thanks in advance.
Veerendra
|
|
|
|
|
try
doc.Bookmarks.get_Item(index).name;
|
|
|
|
|
Hi,
I am using .NET to query indexing server (search engine for our Intranet)
If the user searches for "the,he,she,in" or "a" etc they will get an error page stating - "(The query contained only ignored words.)"
What is the best way to catch this and deliver something meaningful back to the page.
|
|
|
|
|
It looks as you have problems with SQL Server Full-Text Search.
If I'm right you should post your question into General Database forum.
Life is a stage and we are all actors!
|
|
|
|
|
Hi
I am new in asp.net can some help me how to start an online chat application in asp.net using c#..MY mail id is guptagaurav212@gmail.com
Thanks in advance
Gaurav Gupta
|
|
|
|
|
GauravGupta212 wrote: Hi
I am new in asp.net can some help me how to start an online chat application in asp.net using c#..MY mail id is guptagaurav212@gmail.com
Thanks in advance
Gaurav Gupta
Wow. Let me spell it out for you.
1 - posting your email, which will get you spam from people who have nothing to do with this site, and almost certainly nothing else
2 - this is NOT the ASP.NET forum
3 - we are NOT here to tell you how to use google.
4 - it is INCREDIBLY rude to delete your message, no matter how stupid. It just clutters the forums.
The only way to write a chat app is with AJAX. ASP.NET has next to nothing to do with it. I suggest buying an AJAX book and reading it before coming back and using the correct forum to ask specific questions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
You've done just about everything wrong here. Try reading the guide on how to ask questions, do some research, and try using the right forum when you have a question that is more specific than 'do my work for me'.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All, I am trying to prepare my self for a project which is Distributed and also disconnected at most points.
i would appreciate any reference,website or books of distributed application development which i can do it through c#.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
This is a really nice beginners book for distributed systems.
Life is a stage and we are all actors!
|
|
|
|
|
I am really sorry my friend, I dont have access to credit or any other kinds of cards to buy from amazon or others. kindly i am asking for free source.
thx
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hello,
I wan to able to change the label when i select a radiobutton.
For example when i select the Yes radiobutton, it will show the text as Y and not Yes.
Is there a way to do that?
|
|
|
|
|
Yes. What control do you want to change the text on when the RadioButton is selected?
|
|
|
|
|
click, thanks for the reply.
|
|
|
|
|
"click" is an event. Do you want to change the text on the RadioButton, or a Label, or what?
Anyway, just wire the event "click" event to the control, then inside it: radioButton1.Text = "my new text"; or labelText1.Text = "my new text"; etc.
|
|
|
|
|
For example:
private void radioButton1_Click(object sender, EventArgs e)
{
radioButton1.Text = "my new text";
}
but to wire the event:
this.radioButton1.Click += new System.EventHandler(this.radioButton1_Click);
which is done automatically by the designer, but if you don't have VS, just add the above to your form's constructor with a change to the radio button control's name of course that matches the method signature (e.g. "radioButton1_Click" in this case).
|
|
|
|
|
hmmm, i did that, and when i go back to the previous form which has the radio button. The text of the radio button becomes the value that i type in the program.
Exmaple, i click on Yes button, the value is Y but when i return back to the form, the text of the radio button becomes Y instead of Yes originally.
|
|
|
|
|
Are you working with a Tabcontrol, or are you calling another form?
|
|
|
|
|
Ooohh, I think you are calling a messagebox or another form. If so, you need to access the main form's (1st form, or parent form) control. Can you give me a code example?
|
|
|
|
|
If that is the case (haven't seen your code yet), then here is an example of what you want I believe:
MyNewForm form2 = new MyNewForm();
DialogResult result = form2.ShowDialog();
if (result == DialogResult.Yes)
radioButton1.Text = "Yes";
Note the "Text" being set after return from the previous form's "Yes" button, but you have to ensure the DialogResult being returned from form2 is DialogResult.Yes for this to work.
|
|
|
|