|
Take it easy there my friend..
Mark is simply saying you could have googled this, but just to get you started
the functionality you require is hidden away under :
DataGridView.Rows[rowindex].Selected = true;
On another note, people won't help you if your're rude.
Regards
Mick Curley
|
|
|
|
|
I'm not rude
I asked and one of them helped me to suspend
The answer obtained by you I know it , but the line chosen not be true only if chose by the mouse
Thanks
Thaer
|
|
|
|
|
Your question did not translate well to English so it may be difficult for anyone to answer.
|
|
|
|
|
I have an application written in C# using VS 2005 that calls a C DLL.
Everything has been working fine until recently. A few days ago I sent a
release build to my client and they reported they are getting a
dllnotfoundexception. We worked through some similar issues some time ago and
up until recently the versions I sent out worked just fine.
Dependency walker tells me that WINMM.DLL calls MSVCR80.DLL, and there may
be a version problem. However, even if I put a version of MSVCR80.DLL in the
same directory, I still get the error. Apparently it is coming from the fact
that IESHIMS.DLL and WER.DLL are not on the system. I don't need ANYTHING in
those DLLs- all my DLL does is some mmsystem based wave playback. But that
does not alter the fact that Windows won't run the release version. The debug
version, by the way, runs fine, but only on a system with VS 2005 installed.
I have seen some references to the fact that the latest version of IE got
rid of IESHIMS.DLL and replaced it with something else. However, the
solutions I've seen posted don't seem to help. I'm running on XP (as is my
client) but this will be a commercial product, so we have to support Vista
and W7.
I have seen remarks dating from around 2005 that say certain manifests need
to be built certain ways to avoid this, but I have not figured out what is
involved. I would appreciate any thoughts on finding a solution to this!
|
|
|
|
|
I would like to take any(unknown types) SortedList and get access to the KeyValuePair data as type object so I can then access the data.
Given
SortedList<string,int> tmp = new SortedList<string,int>(); or
SortedList<int,myObj> tmp = new SortedList<int,MyObj>(); or
......
I need to be able to do something like
foreach(KeyValuePair<object,object> kv in tmp).......
to get access to the objects then use reflection to determine type and such.
Steve
|
|
|
|
|
And what is your question?
What have you tried?
Where are you stuck?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
How can I typecast an object,which is of type SortedList to a SortedList.
public static string UnknownSortedListToStr(object tmp)
{
string res = "";
object n;
object v;
SortedList<object, object> si = (SortedList<object, object>)tmp;
if ((tmp.GetType().FullName.Contains("System.Collections.Generic.SortedList")) ||
(tmp.GetType().BaseType.FullName.Contains("System.Collections.Generic.SortedList")))
{
for (int i = 0; i < si.Count; i++)
{
string s = "";
n = si.Keys[i];
v = si.Values[i];
if (n != null)
s = n.ToString() + "=";
if (v != null)
s += v.ToString();
res += s + "\r\n";
}
}
else throw new Exception("Not a SortedList");
return res;
}
Steve
|
|
|
|
|
Take a look at this[^], particularly the last part of the answer from John Grove.
This[^], particularly Example 40, right near the end.
And finally this blog from Brad Abrahams[^].
One thing they all have in common is that they start with the Type of the collection, and get the parameter types from there. Once you have the types of the parameters, you can go practically anywhere.
You might find other useful/interesting stuff by googling something like reflection generic collections which is how I found the above.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Sound computer advice browsing the web.
I'd already been to 2 of your links but thanks for the effort. When I find the Solution I will be sure to post it.
Steve
|
|
|
|
|
I want to use dynamic background in my winform app, I used GIF image now, it looks not so good, can I use a flash as background? how?
In my opinon, I need to use "AxShockwaveFlash" to play the flash, this object is not under control of my app, so I can't draw on it...
|
|
|
|
|
Embed your flash in a webpage and show it in a WebBrowser [^] control. Set the Dock property to DockStyle.Fill
I are Troll
|
|
|
|
|
But how can I draw some text and image above webbrowser?
|
|
|
|
|
You can drop controls on the webbrowser. Most won't be transparent though.
|
|
|
|
|
Hi all,
Can any one plse tell me the exact use of serialization? in which scenario
we can use it?
Regards
Lijo
|
|
|
|
|
Have you considered "File...Save"?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Honestly, is this[^] really so difficult for you
only two letters away from being an asset
|
|
|
|
|
|
Lijo Rajan wrote: Can any one plse tell me the exact use of serialization? in which scenario
we can use it?
Well, one way that serialisation is really useful is if you want to sell something over a period of weeks. What you do, is run something up to the a point known as the cliff hanger; at this point, you stop and leave people hanging until the next week where you run the next point in the serialisation.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
You may be confusing with this[^].
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Confused? You will be.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
When i click on a button a new mail page is open,
and at the body of the mail i put the text that was writen at richtextbox.
my problem is,
when the new mail page is open the text is writen at the same line.
How can i put the text exactly as it writen at the richtextbox.
here is my code:
<br />
string mailTo = "";<br />
string body = richTextBox2.Text;<br />
string subject = textbox1.text;<br />
<br />
string filename = string.Format("mailto:{0}?subject={1}&body={2}", mailTo, subject, body);<br />
<br />
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = filename;<br />
myProcess.StartInfo.UseShellExecute = true;<br />
myProcess.StartInfo.RedirectStandardOutput = false;<br />
<br />
myProcess.Start();
10x
|
|
|
|
|
Try using the System.Net.Mail[^] classes, particularly MailMessage.
MailMessage msg = new MailMessage();
msg.From = "from@from.com";
msg.To = mailTo;
msg.Subject = subject;
msg.Body = body;
msg.IsBodyHtml = true;
only two letters away from being an asset
modified on Monday, September 28, 2009 11:54 AM
|
|
|
|
|
Mark Nischalke wrote: msg.BodyFormat = MailFormat.Html;
I don't have BodyFormat at msg object...
|
|
|
|
|
It's a property on the MailMessage class, what do you mean you don't have it?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: It's a property on the MailMessage class, what do you mean you don't have it?
This is what i get on the line-
msg.BodyFormat = MailFormat.Html;
Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddress'
'System.Net.Mail.MailMessage' does not contain a definition for 'BodyFormat' and no extension method 'BodyFormat' accepting a first argument of type 'System.Net.Mail.MailMessage' could be found (are you missing a using directive or an assembly reference?)
'MailFormat' does not exist in the current context
|
|
|
|