|
Hi,
Thx for the reply.
I managed to solve the problem setting selectedItem to null.
Thx,
Nuno
|
|
|
|
|
hi guys
there's probably others way of installing 2 or more HotFixes on Vista, but i've decided that I'm going to write a program in C#, one that:
1 - will ask you to add the Htofixes to be installed
2 - Will send each of those Hotfixes to CMD.eXE in format of
eg : START /WAIT Windows6.0-KB931675-x86.msu /QUIET /NORESTART
but i'm already stock. i can't figure out to send a command such the one above to cmd.exe. i also have to wait til cmd returns from wat its doing before i can send the other command to it . How cam i do that? plz help
thanx
|
|
|
|
|
How about using
Process.Start(@"START /WAIT Windows6.0-KB931675-x86.msu /QUIET /NORESTART");
?
|
|
|
|
|
[correction]:
i tried:
Process.Start("CMD",@"START /WAIT C:\\Downloads\\Windows6.0-KB931675-x86.msu /QUIET /NORESTART");
but instead of the command been applied through CMD, i get
"Visual Studio 2005\Projects\WindowsApplication
2\WindowsApplication2\bin\Debug>" in CMD?
Also how is it possible to detect when CMD has returned from applying the patch? for example if i have 5 patches to apply, if i put on through CMD , i need to wait until that patch is done, and once thats done, only then i want the second patch to be appied. how can i detect that?
thanx
|
|
|
|
|
ok got that fixed
it should be :
Process.Start("CMD",@"/C START /WAIT C:\\Downloads\\Windows6.0-KB931675-x86.msu /QUIET /NORESTART");
Now how can i detect when CMD has finished processing the current patch and is ready so i can send the other patch to CMD then? thanx
|
|
|
|
|
Hi all,
I'm looking for a way to call functions in a VS2005 Shared Addin from an external VS2005 application.
a) The functions defined in Addin need some special demands?
b) In application how to invoke the function?
Thanks
scott- 3/29/07
|
|
|
|
|
I’m try to read a xml-string into an XmlDocument like this:
string xml = "valid xml";<br />
XmlDocument doc = new XmlDocument();<br />
doc.LoadXml(xml);
It works perfect if I don’t have any strange characters like ‘&’.
Why do I get the following exception if I use ‘&’:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
_____________________________
...and justice for all
APe
|
|
|
|
|
Because the string that you call "valid xml" is not valid xml. You have to encode characters like & into &.
---
single minded; short sighted; long gone;
|
|
|
|
|
Perfect! Thanks
_____________________________
...and justice for all
APe
|
|
|
|
|
hello,
I have Reinstall my windows xp.
and I am restoring my progranm
when I try to "build" or "rebuild" my program I get the error:
"unable to find mainifest signing certificate in the certificate store"
1) what does it mean?
2) how do I fix my program?
|
|
|
|
|
Go to the "Signing" tab of the project properties and uncheck "Sign the ClickOnce manifests".
Gautham
|
|
|
|
|
Hi all,
I have a datagridview, is it possible to copy data, for example from an excel spreadsheet into the grid, and if so how?
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
string strConn;
strConn = "Provider=Microsoft.Jet.OleDb.4.0;data source=File Path;Extended Properties=Excel 8.0;";
OledbConnection objCon = new OledbConnection(strcon);
OledbDataAdapter objDA = new OledbDataAdapter("select * from [sheet1$]", strConn);
DataSet ds = new DataSet();
objDA.Fill(ds);
datagrid1.datasource=ds;
datagrid1.databind();
Gautham
|
|
|
|
|
Thanks for the quick reply.
I have a grid that is bound to a datasource, our clients have an excel file with data, so I want to be able to select data from the excel page, copy that, and then just paste the data onto the grid at runtime, is something like this possible
He who laughs last is a bit on the slow side
|
|
|
|
|
hi! how to change the font in one row in a datagrid..
|
|
|
|
|
DataGridId.Items[row number].ForeColor=System.Drawing.Color.Red;
Gautham
|
|
|
|
|
Hi,
Suppose i have a datagrid,have 1000 records.how can i see the duplicates records
in the datagrid?
thanks.
|
|
|
|
|
I suggest you to change the underlying query (for instance, using ORDER BY ) to relocate duplicate records in such a way they are shown adjacently.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Not that way exactly, i want to say that i generate a store procedure,using populate a dataset.now i bind a datagrid on that dataset.
now without using any Store procedure just from front end (using dataview or etc) can i find the duplicate records on that Datagrid?
thanks
|
|
|
|
|
Test270307 wrote: now without using any Store procedure just from front end (using dataview or etc) can i find the duplicate records on that Datagrid?
Of course you can use trhe DataView to order rows and hence find duplicate ones.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Suppose the grid have 1000 rows. and there was two name "Prasad" and "xavier".
So i want to see in the grid only 4 rows.
prasad
prasad
xavier
xavier
not all the rows.
thanks
|
|
|
|
|
as cpallini has said.
Order the grid by the name and loop through the grid removing items where name[n] == name [n+1]
This may be dangerous in a connected world though, not sure how your app is setup.
HTH
Russ
|
|
|
|
|
I'm new to C# and I can't find a comprehensive tutorial on making API calls. An example of one would be nice, preferably of 'GetAsyncKeyState'. Thanks.
|
|
|
|
|
|
Hi,
How can i extend the NameValueCollection class to store string and double
data as key and value (more than a single value). i want to access the
contents inside a lock.
Sakthi.
|
|
|
|