|
This is pretty standard way of appending text to file: File.AppendText Method [^] It's not efficient enough in your scenario?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hi All
How To Capture the value of textbox1 from Form2 to Form1
SAS
|
|
|
|
|
Hi,
please note that you need to read the value from an 'instance' of Form2. therefore you will need to, in some way, pass the reference of instance of Form2 to instance of Form1 when you instantiate the later at runtime. e.g in Form1 constructor or using a public method of Form1.
hope this helps.
|
|
|
|
|
SAS
|
|
|
|
|
What i need to be able to do is Convert a Colour to something - eg a Int or String and then store it in a XML file. I then get a Xml file back and need to convert that value back to a Colour but im unsure as to how to do this. Any help would be grateful.
Regards,
Gareth.
|
|
|
|
|
You can use the ToArgb and FromArgb methods to convert a color to and from an int.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
How would i store an image?, i had thought of storing the image name and then getting that, but if its possiable to just simply store an image in byte form maybe that would be easier.
|
|
|
|
|
Hi,
How is it possible to increase the width of a column header in datagridview?
At present all the column headers are the same width but would like to increase the width of one of the column headers.
Thanks
|
|
|
|
|
This is off the top of my head but I think it should work:
myDataGridViewCtrl.Columns[columnIndex].Width = ...;
/ravi
|
|
|
|
|
Is it possible to programmatically delete cookies? can anyone help me with this please.
cellardoor
|
|
|
|
|
You may be able to do this by deleting files in the directory returned by
Environment.GetFolderPath (Environment.SpecialFolder.Cookies)
/ravi
|
|
|
|
|
Just Curious does that work for all browsers or only IE? That would be sweet because I run 5 or 6 browsers and would love to be able to delete all the cookies at once.
Like to clear all the caches as well...
|
|
|
|
|
I'm pretty sure that's an IE-specific (i.e. Windows) location only. Different browsers store cookies in different locations. This[^] app knows them and takes advantage of this fact.
/ravi
|
|
|
|
|
Hello,
Is there a way programmatically to set the page properties, or something to print the HTML document without header, and a footer?
Right now I am using this command to do this:
<br />
HtmlDocument document = (HtmlDocument)webBrowser.Document;<br />
document.ExecCommand("Print", true, 0);<br />
But it always prints page number, and a file name on the bottom, etc...
Thank you.
|
|
|
|
|
I'm trying to post xml data and retrieve that post data by by the post data from the url using another aspx page using c#. I found some information from http://www.codeproject.com/Purgatory/XmlPost.asp, but am unable to successfully post xml data. Does anyone have any sample code to accomplish posting and retrieve xml data? Thanks in advance.
|
|
|
|
|
theflux123 wrote: I'm trying to post xml data ... retrieve data using another aspx page
You can use the class described in this[^] article to post and retrieve your data.
/ravi
|
|
|
|
|
Hi All
the problem is this that when i add a child node to parent node the code written in the button1_click is
treeview1.SelectedNode.Nodes.Add(Child);
but it only works if u select the parent node and if u press the button without selecting parent node it hangs on i want to put a check when someone clicks the check executes first and if the parent node is not selected it displays a message box to select the node first and then add child node
Search One , Praise One , Love One
|
|
|
|
|
if(treeview1.SelectedNode != null)
{
if(treeview1.SelectedNode.Text == "ParentNodeName")
{
}
}
Tarakeshwar Reddy
MCP, CCIE Q(R&S)
Experience is like a comb that life gives you when you are bald - Navjot Singh Sidhu
|
|
|
|
|
Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
Hi,
Really thanks for your reply.But i could not open the link which you provided.
Could you please suggest any other link?
Thanks
Regards
Anu
|
|
|
|
|
http://regularexpression.com/
|
|
|
|
|
Load the url in a webbrowser control, then use the Document property and then the Links property
|
|
|
|
|
You have forgotten the colon in some of the (?: parantheses.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|