|
But this cannot be done in easier manner so any one can help me
many thanks
sai krishna
|
|
|
|
|
dsaikrishna wrote: But this cannot be done in easier manner
Everything has to be easy?
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Hey its easy man...try to figure out your way...
Koushik
|
|
|
|
|
Hi,
I am wanting to know what I would need to do to retrieve a list of the referenced assemblies names and versions at runtime and add them to list etc.
Thanks, Andrew.
|
|
|
|
|
Use the following
System.Reflection.Assembly objAssembly = System.Reflection.Assembly.LoadFrom(@"Load your assembly( filename)");
objAssembly.GetReferencedAssemblies();
gives you the referenced assemblies.
Koushik
|
|
|
|
|
Any examples of how to put this information into a grid with name and version colums?
Thanks, Andrew.
|
|
|
|
|
construct a datatable at run time with Name and Version columns and after obtaining the referenced assemblies add rows to the datatable ..now u can bind this table to datagrid.
Koushik
|
|
|
|
|
thats a gr8 answer koushik......
--Sreeram
|
|
|
|
|
Thanks for your response. I never knew there could be so many code snippets....
|
|
|
|
|
I want that when click the Back and Forword browser button then display a messagebox. I know this problem is possible in javascript. How ? I am trying.
Anybody help me. Urgent
deepak_272@yahoo.com
|
|
|
|
|
Gagan Deep Garg wrote: I know this problem is possible in javascript.
How do you know it's possible? I searched Google...and found many users asking on different forums something like you want to know. And all the answers are You can't. It's not possible. Here [^]. See for yourself. You can try the onUnload event, but there you cannot know why the page is unloading, nor stop the unload.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Will you please stop posting this ruddy question? How do you know it's possible? Have you seen it done? If so, view the source on that page. I would have to say though that I rather doubt this is possible. JavaScript operates in a sandboxed environment whereby it has no real knowledge of the browser that it's running in, and so can't interact with it in a meaningful way. This is by design.
Plus - don't put urgent in your posts. People will get to your questions and answer them when they can.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Oh yes - this is a C# forum. You're not even asking on the right forum.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
1....2....3....4..... slowly Pete.....
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Malcolm Smart wrote: 1....2....3....4..... slowly Pete.....
I know - I should spend more time on my deep breathing exercises. This is what happens when you've just spent 2 hours having 1 filling done. Don't post angry - and don't post when you're in pain.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi
Any body help me to how to create a windows custom control(not usercontrol) having one combobox, label and button
Like below
[Lable]Connect [combobox]ServersList
below one button Click to connect
its urgent help me plz
kesavan
|
|
|
|
|
NK7 wrote: [Lable]Connect [combobox]ServersList
below one button Click to connect
You can achieve this by creating one UserControl that receives several parameters. Once you have created a UserControl, and build the solution you will have your control in the toolbox. You can drag and drop it anywhere in you form.
Another way is to create a new Windows Control Library Project, create all your user controls there and add the controls to the toolbox specifying the DLL file.
You can also check this link
hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
How can set the opacity of the Panel?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
There is no such direct property for Panel control to handle its opacity.
Although you may set its back color to Transparent, it will allow you to make Panel control transparent.
Such as –
Me.Panel1.BackColor = Color.Transparent
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hello,
Example for Transparency:
If you have inherited a panel from System.Windows.Forms.Panel,
you could try out adding this code.
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{}
Maybe it fits your needs!
It doesn't support DoubleBuffer.
All the best,
Martin
|
|
|
|
|
public bool resultado() {<br />
...<br />
...<br />
...<br />
return true;<br />
}
let's say that i'm created a Thread and i run the resultado method.
How i can capture the result? msdn didn't help me (and, of course, stop the Thread)
|
|
|
|
|
|
A thread terminates when it has no more code to execute (it gets to the end of the method you set as it's start method).
You REALLY need to understand how threads interact or you will just spend your entire time debugging things you do not know anything about. Read some tutorials, for example this one:
MSDN[^]
Generally speaking you communicate with one of the following methods:
1) Communicate with Events (ManualResetEvent, AutoResetEvent). This is typically used to signal things like "data inserted in queue", "terminate" etc. The advantage is that a thread can wait for an event to be raised without consuming CPU resources.
2) Shared data protected by locks. For example a queue one thread is inserting in while another thread reads, or the tread setting a value on a "result object" passed to it. Simple datatypes (int, bool etc) can be marked by the keyword "volatile" instead of using a lock for each access.
3) Invoking from your subtread to the main thread (look at the Dispatcher object, or the old WinForm.Invoke stuff). This allows updating for example a WinForm userinterface where only the GUI thread is allowed to change control values, but is also a pretty sollid way to ensure data is only manipulated on one thread which means you do not need to do locks (as long as you make sure the worker thread is always working on a copy of the data).
Instead of setting a terminate event you can allso raise a ThreadInterupt exception, but please notice a thread will NOT interrupt while executing your code - it will ONLY interrupt from a safe state, like waiting for an event... and in that case you can as well have it wait for a terminate event as well.
|
|
|
|
|
Thanks You
i'm working with basic Threads, like
Thread obj = new Thread(method);
but now i need to expand my brain =)
reading msdn =)
|
|
|
|
|
C# has XmlDocument and other xml operate object.
has it Html operate object? such as XmlDocument.
use in WinForm.
|
|
|
|