|
Hi
I think you need something like OpenFileDialog.
Try this:
OpenFileDialog openfile = new OpenFileDialog();
openfile.Show();
|
|
|
|
|
My application re-configures the network settings (IP, Subnet Mask, Gateway, DNS..) and after that I want to disable and then enable the Local area connection (not the network card), so the connection is refreshed with the new settings without having to restart the computer. Does anybody have any idea on how to do it in C#? Thanks for your time.
Radgar
"Imagination is more important than knowledge." - Albert Einstein
|
|
|
|
|
You don't have to disable/enable to network card to get the settings to refresh. You can make the changes using WMI, but watch the return codes. No matter what method you chose to make those changes, Windows will tell you if the machine has to be restarted for the changes to take effect. Otherwise, in most cases, the changes you make take effect immediately.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a field in a database that contains a value with double quotes ("Test Value"). I am trying to use this in a javascript by writing it back out. I need to be able to seach the string for double quotes and replace them with \" so that the end result is \"Test Value\". Is there a function in .NET to handle this? In Delphi, there is a QuotedStr() function.
|
|
|
|
|
No - but it's easy enough to write your own.
David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# Converter and the Instant VB C# to VB.NET Converter
|
|
|
|
|
What is the best way to check for the double quote in the returned value?
|
|
|
|
|
Nevermind. I have resolved the issue with Replace("\\"", "\\\"")
|
|
|
|
|
I create a bitmap in this way:
bitmap myBmp = new Bitmap(100,100);
now i want to color all the bitmap of green, how?
|
|
|
|
|
|
Hi people,
I have a user control that draws a Bezier (drawing occurs in OnPaint and OnPaintBackground). This control is used in a windows form. Is there a way to get the graphics of that control to be able to save it in a file?
thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hi again,
well I managed to send back the Bitmap to the main form, but I had to recreate it in the returning function. I was wondering if there is a way to get back what I had already drawn in the control.
thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hi there
i'm trying to extract certain information from an HTML source, i've used the : WebClient from the .NET library to Screen Scrspe the web page the second part is to use RegEx to EXTRACT usefull information to me from the HTML source available and because i'm not very familiar with regular expressions i need help to do this for example:
I NEED TO EXTRACT THISand then to place whatever is extracted within XML tag (i.e. converting)
thanks and regards
jay
|
|
|
|
|
<td class="subhead" colspan="2">(?<content>.*?)</td>
where group "content" will contain text "I NEED TO EXTRACT THIS"
or more generaly,
<td(.*?)>(?<content>.*?)</td>
RETester[^] is nice place for testing... Check out Reg Ex Lib, too.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
thanx alot, appreciated
|
|
|
|
|
ok how to do without the tags,,i.e just the : (?<content>.*?)
regards
|
|
|
|
|
I don't understand your question... Read MSDN here[^]
ah maybe I know what you mean... try @"yourregexhere". You know what I mean?
hope it helps
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi for all
I have nine buttons in my form and I would like how I can include a button's reference in an arraylist. I'll modify the text's value of a some button by this reference. How can I do this?
Thans for all
Alex
|
|
|
|
|
Does simply adding the Button object not work? Something like
<br />
class MainForm<br />
{<br />
private Button b1 = new Button("B1");<br />
private Button b2 = new Button("B2");<br />
<br />
ArrayList a = new ArrayList();<br />
<br />
<br />
public void AddToList()<br />
{<br />
a.Add(b1);<br />
a.add(b2);<br />
}<br />
<br />
private void ModifyText()<br />
{<br />
foreach(Button b in a)<br />
{<br />
b.Text = "Long live Senthil";<br />
}<br />
}<br />
}<br />
Regards
Senthil
My Blog
|
|
|
|
|
how to display colorful cursors or *.ani in the c#?
the mono cursor is very done,but the colorful cursor is not easy to be done?
|
|
|
|
|
|
the above is not correct in the c#!
|
|
|
|
|
hi
i want to know what is the Diffrence between the DATASET and the DATAREADER
and when you use each of them
thankx
|
|
|
|
|
datareader is a connected resultset, while the dataset is disconnected.
Have a look on MSDN for more detailed info though.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "Most of us are programmers, but a few use VB", Christian Graus
|
|
|
|
|
Hi all,
i am developing a software ,,which will helpfull for the network administrator in such a way that....it will provide efficiency to the printer..
my software is explained as
this software will restrict the user to use the printer....for example...
the network administrator will provide a database for the user that e.g, "abc" user can only print 3 pages...if user send 4 number of prints from any place means from network or any software then then the message box come to the user that u r restricted to use on 3 pages...the boundries of such software are completed.....the main module that when the user send the print job to printer then the job should cancelled and read the database and according to that data base there will be printing pages to certain users...
So i have to take help that ....plz made me this help that
this module i m tying a lot ..but not happening that the job should canelled first of the printer and then job according to database apply...please programmes help me .I will very thankful to all...I will wait for yours response and the code also related to this module..
Lot of thanx for solving my problem
|
|
|
|
|
cishi_us wrote:
I will wait for yours response and the code also related to this module..
Lot of thanx for solving my problem
Uhhh.... YOU have to write the code, we're not doing it for you. You solve your own problems, we just help.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|