|
Should be under:
Tools->Options->Text Editor->All Languages->General
I'm using VS.NET 2002 not sure if they moved it 2003
- monrobot13
|
|
|
|
|
You're right on, monrobot13! It's so helpful...
Thanks Monrobot13
Khang Nguyen
|
|
|
|
|
Hi!
I am writing a kind of spy tool in c#. Now I need to find out what
files are currently used (opened) by a certain process (knowing the
processid).
I know that there is this undocumented windows function
NTQuerySystemInformation, but I hope that there is another solution.
I tried NTQuerySystemInformation, but as I am not an interop-expert
I could not make it work ...
Is there anyone that solved that problem once, or has a code example
on how to invoke NTQuerySystemInformation in c#?
|
|
|
|
|
|
How to go about accessing the shared memory in C#.. fist of all how ot create one in C#..! Any pointers or reference is highly appreciated.
Visit me @ http://www2.domaindlx.com/earavi/
When you know something.. its meant to share with others for otherwise that knowledge has no worth
|
|
|
|
|
The below page contains a wrapper for shared memory
http://staff.develop.com/richardb/
- Kannan
|
|
|
|
|
Thanks it did provide a basic start that i was expecting!..
-Aravi
<hr>
Visit me:
http:
When you know something.. its meant to share with others :-) for otherwise that knowledge has no worth:-)
mail me:
aravinthan@rediffmail.com
<hr>
|
|
|
|
|
|
Hi
We are doing a client-server project for a chain of shops. The individual shops connect to the server using a 128 Kbit connection so we are very concerned with the amount of data being transfered.
We want to implement the client applications as smart client and deploy them using "Code Download". Can anyone answer the following questions concerning Code Download?:
1) The client app. consists of a single .exe file and a number of .dll files. What will happen if we update one of the .dll files? Will the client need to download all of the files again, need to download the .exe file and the changed .dll file or only the changed .dll file?
2) How is the above implemented if we want to download as little as possible? Is it all done automatically, do we need to a Assembly.LoadFrom() for each of the files, do we need to update the client manually if a need .dll is downloaded etc.
3) The client app. consists of only a single .exe file. If the .exe file is changed, will it be necessary for the client to download all of it or is it possible to download only "the changes" in the file?
Thanks for your help, Mads
|
|
|
|
|
These type of questions are exactly what the docs were written for. Check out www.msdn.com and look in the MSDN library if you don't have the docs already.
From memory, only changed files download again. All of the file is downloaded.
John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of Words
|
|
|
|
|
hello,
i have a little problem with datareader.
am connecting to sql server's database. trying to retieve data with select * from ... where id='';
there is some problem with where,
can we retrieve information with where or not ?
in case of datareader.
ASIM
Asim
|
|
|
|
|
Hi
You should be able to use where with datareader, e.g.:
SqlCommand cmd = conn.CreateCommand(); // conn is a SqlConnection
cmd.CommandType = CommandType.Text;
cmd.CommandText = "SELECT * FROM Customers WHERE Id = 2134";
conn.Open(); // with datareader you have to open/close connections manually
SqlDataReader dr = cmd.ExecuteReader();
while(dr.Read())
{
// do something...
}
conn.Close();
conn.Close();
Hope this can be of use, Mads
|
|
|
|
|
Hello all,
Does anyone have source code for parsing a person's name? For example:
Dr. John Q. Smith III would be parsed into:
var.Title = "Dr."
var.FirstName = "John"
var.MiddleName = "Q."
var.LastName = "Smith"
var.Generation = "III"
or Smith, John Quincy would be parsed into:
var.Title = ""
var.FirstName = "John"
var.MiddleName = "Quincy"
var.Lastname = "Smith"
var.Generation = ""
or Mr. Jose N. Del Valle would be parsed into:
var.Title = "Mr."
var.FirstName = "Jose"
var.MiddleName = "N."
var.Lastname = "Del Valle"
var.Generation = ""
Thanks all.
|
|
|
|
|
I would have a look at the String.Split method
|
|
|
|
|
here's an example to help you :
VB:
<font color="blue">Private</font> void richTextBox1_MouseMove(<font color="blue">Object</font> sender,System.Windows.Forms.MouseEventArgs e)
{
}
<font color="blue">Private</font> void button1_Click(<font color="blue">Object</font> sender, System.EventArgs e)
{
<font color="blue">Try</font>
{
string str="Mr. D Sysop";
string title=str.Split(<font color="darkgreen">' ')[0];</font>
string initial=str.Split(<font color="darkgreen">' ')[1];</font>
string surname=str.Split(<font color="darkgreen">' ')[2];</font>
string result = "Title: " + title + "\n" + "Initial: " + initial + "\n" + "Surname: " + surname;
MessageBox.Show(result);
}
<font color="blue">Catch</font>
{
System.Exception f=new System.Exception();<font color="#006400">
MessageBox.Show(f.Message.ToString());
}
}
hope that helps a little
<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
{
<font color="blue">switch</font>(twins)
{
<font color="blue">Case</font> ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
<font color="blue">break</font>;
}
}
|
|
|
|
|
WHy are those 2 guys throwing people off track?
You need to use some RegEx here! But that mite not be 100% as per your example 2, unless you can gaurantee the existanse of the ',' in there.
Here is something you can use perhaps:
((?<title>[A-Z][a-zA-Z]{1,4}\.)\s)?(?<fnames>([A-Z][a-zA-Z]*|[A-Z]\.)\s){1,3}?(?<lastname>[A-Z][a-zA-Z\-\s]+)
This wont work for 2nd case those but you could consruct another RegEx string on detection of a ',' in the string.
Cheers
|
|
|
|
|
Hi,
How can I use a memorystream in my richtextbox?
Now I do this, but it gives me a runtime error.
(In the real case I load a template of a letter in a string, do some replacements and then I want to show the results in a richtextbox. The string with the template I don't want to save it before I show it in the richtextbox. I want to save it only after I saw it in the richtextbox - there for the use of the memorystream)
string str = "abcdef";
this.TxT01 = new System.Windows.Forms.RichTextBox();
MemoryStream m = new MemoryStream();
for(int i=0;i< str.Length;i++)
{
m.WriteByte((byte)str[i]);
}
this.TxT01.LoadFile(m,RichTextBoxStreamType.RichText);
What I do wrong??
Thanks in advance for the help.
|
|
|
|
|
Hello there,
does anybody know how to find out the cursor position
in pixels (for example relative to the upper left corner)
in a Windows Forms TextBox?
I want to show a ListBox at that position, when the user
presses the OemPeriod key...
Thanks a lot.
brian
|
|
|
|
|
Sorry, but I didn't mean the mouse cursor,
but that "blinking input cursor"...
Thanks a lot.
brian
|
|
|
|
|
Very well, i've found it.
Thanks a lot.
brian
|
|
|
|
|
hi,I wonder wheather mshtml support editmode,and how to edit.Thanks.
|
|
|
|
|
Use the designMode property of the IHTMLDocument2 interface.
Here is some sample code. It assumes that:
1)You have added a reference to mshtml.tlb.
2) You have a WebBrowser control named webBrowser on your form.
IHTMLDocument2 HtmlDoc=(IHTMLDocument2)webBrowser.Document;
HtmlDoc.designMode="On";
And you're set! Remember that if the user navigates to a new page, the designMode property must be set again.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Thank you.Now I want every selected element has border with BorderWidth 1mm,how can I do?
|
|
|
|
|
I want make a resources editor.I could create every component of resources file.But I want it is showed as design mode.What can I do?
|
|
|
|
|
There's a LOT of code involved in something like this. Check out SharpDevelop[^] for an example.
John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of Words
|
|
|
|