|
You can use Assembly.GetExecutingAssembly().Location .
There are other static methods in the Assembly class to provide information about the calling assembly and several others as well.
Regards,
mav
|
|
|
|
|
Hello all,
I need to pass value between windows forms.
how can i do that please advice.
Regards
Hay
|
|
|
|
|
A form is like a normal class. You can pass values through
the constructor of the form (if it is a one time initialization) or by creating a property that can be set from the other form. Something like
class MainForm : Form
{
public void SomeMethod()
{
new OtherForm(12).ShowDialog();
}
}
class OtherForm : Form
{
int val;
public OtherForm(int val)
{
this.val = val;
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi All,
I have create a .NET Remoting Server and I can to call from VC6/VB6 client. When I call from .NET client, it is OK. Please tell me how to do from VC6/VB6.
Thanks,
MaharSoft
|
|
|
|
|
I'm afraid that's going to be next to impossible to do. The remoting framework is part of the .NET FCL, so my guess is it would require .NET on the client side too.
If it's ok to have .NET on the client side, then maybe you can create a CCW(COM Callable Wrapper) and use VC6/VB6 to use it just like any other COM component.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
SOMEONE please help me out here. this should be a very easy fix but i just cant get it to work! i'm probably making a stupid mistake cuz i'm programming so late... here is the problem. I have a (multiple selection) listbox that I populated from a database and I want to go through and see what the user selected. The code builds and executes but when I make any selections the "Selected" option keeps returning FALSE when it should be TRUE!!!
Any help would be greatly appreciated, Here is my code:
int j;
string temp;
string[] asSelected = new string[lstListBox.Items.Count];
foreach (ListItem i in lstListBox.Items)
{
if (i.Selected)
asSelected[j++]=i.Value.ToString()+", ";
}
temp = asSelected[0];
for (int i=1; i
|
|
|
|
|
Well tell me what ListItem should be? Its not a class of the framework. I assume you added those objects into the ListBox but how should the ListBox know to set the Selected property of this special class which it cannot know?
Try instead iterating over the SelectedItems property of the ListBox:
string s = "";
foreach (ListItem i in lstListBox.SelectedItems){
s += i.Value.ToString() + ", ";
}
|
|
|
|
|
Hi,
I get an error when I try to build that code
|
|
|
|
|
hii.. its very small bug, u forget to initialize the variable j.. just let it have an initial value zero .. hope that works
IF u need help...Help the others
|
|
|
|
|
hi all,
I am writing a C# Application.Now I need to run a Method called
"execute_Query()" exactly at 12.30 PM..Can any tell me how to do it using C#?
thanks in advance..
|
|
|
|
|
I believe windows has an event scheduler you can use. Or you can use DateTime.Now and thread.Sleep, I guess.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
if i load an image (png, bmp...) in a PictureBox.Image and i try to delete that image by windows delete rightclick command i get an allert like this: "impossible to delete becouse the file is used by another process".
I have to close my application to manage that file (rename, cut, delete...)
why?
|
|
|
|
|
This is because the Image property, loaded from a file, keeps the file open for the lifetime of the Image. See this[^] KB article on MSDN for the details and workaround.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hey
is there anyway to run c# applications on windows 98?
|
|
|
|
|
You just have to install the .NET Framework. Be aware that not everything is supported on Win98.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
okay, thanks
|
|
|
|
|
|
ok, thx!
|
|
|
|
|
can i istall .ner framework on win 98
and can i istall c#.net
|
|
|
|
|
|
okay, but i can write or run some coed in win 98
|
|
|
|
|
Like 2^2 is four, but i want to do 100*1.5^ anything between 1, and 100
|
|
|
|
|
X^Y = X*X*X*X....*X*X (y-times)
so when you know Y and X, you just write....
now seriously, <a href = "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemmathclasspowtopic.asp" rel="nofollow">Math.Pow()</a>[<a href = "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemmathclasspowtopic.asp" target = "_blank" rel="nofollow">^</a>]
David
|
|
|
|
|
Damn - I missed the second bit and thought you'd given some silly advice for real....
Christian Graus - Microsoft MVP - C++
|
|
|
|