|
I think Visual Studio has something called an Outline that will show all that. Not sure, I am almost sure there is something built into Visual Studio though.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
It's the "Find all references" thing.
|
|
|
|
|
Yes, that is one way to do it. I remember something that allowed you to see all the things you referenced, and then where all you did so.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Sir,
I am from VB6 background and new to C#.
I am making a desktop application using the C#.
I have two windows forms say Winfrm1 and Winfrm2.
on Winfrm1 i have a command button named Button1 and also a grid which holds the customer names from the database.
when i click onto the button1, Winfrm2 form shows in modal manner i.e. showDialogue.
On Winfrm2, I fill the data and save it, when i close the Winfrm2 I want to see the newely added customer on
Winfrm1's grid ...
for that i call the fillgrid method on Winfrm1's activated, enter event but unable to get desirable output
when click to the any control on Winfrm1 then enter event is called and this makes me in trouble .
In vb 6 activate event calls whenever form got focus for this what i should do in C#....?
Pankaj Joshi
|
|
|
|
|
Use the forms OnClose event to call the updating code for the datagrid.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
sir ,
how i can call the winform1's fillgrid method from the winform2...?
i have to make it public..?
and also make an object of winform1 for accessing its method...?
hi
i am pankaj
|
|
|
|
|
Sorry To Say Sir,
I Can't Find the OnClose Event of Form in C#.net 2005...?
Regards
Pankaj Joshi
|
|
|
|
|
i would definately take a different approach.
in Winfrm2 create an event. called something like "DataSaved". you'll need to do this...
public delegate void DataSavedEventHandler(object sender, System.EventArgs e);<br />
public event DataSavedEventHandler DataSaved;
when you create an instance of Winfrm2 from within Winfrm1, you need to subscribe to the event with "+="...
Winfrm2.DataSaved += new DataSavedEventHandler(Winfrm2_DataSaved);<br />
private void Winfrm2_DataSaved(object sender, System.EventArgs e)<br />
{<br />
}
you then trigger the event whenever you add something in Winfrm2, by using something like...
if (this.DataSaved != null) this.DataSaved(this, new EventArgs());
|
|
|
|
|
What u need is using asynchronous invokes:
the problem u have is because of the GUI background multitasking:
the solution:
if(Button1.InvokeRequired == true)
{
Button1.Invoke(method1);
}
private void method1()
{
Thread Call to Method2
}
private void Method2()
{
// Here You need to show the form;P
}
Hesham
|
|
|
|
|
Hey Hey hey,
I Got The Simplest Code
one winfrm1's button click event i write this
1. winfrm2.showdialogue();
2. filllist();
From very first line the C# moves its all control to the winfrm2 and whenever we exit from that showdialogue from the controlls back to the filllist(); and data refreshed
Regards
Pankaj Joshi
|
|
|
|
|
Hello
I want to know that how to communicate between two same dot net application running on two different systems. This application is not a client - server application.
And also tell me, how would i know that application is running on another system or not ???
Thanks
Devesh Mishra
|
|
|
|
|
Hi Devesh,
One of the easiest way is to use a common file between the applications.
The other way would be to use the config file and have some keys specific to each process.
To know if ur application is running, u can search for ur application name in the Processes list of the machine where u have to search at.
Regards,
Murali
|
|
|
|
|
Hi Murali
Thanks for ur reply.
Would you tell me please, how to use config file between the applications and keys specific to each proces.
Thanks
Devesh Mishra
|
|
|
|
|
While developing ur application, in the app.config file, create a key (say 'instancenumber').
Then at runtime, set the key to a value (say '1','2',etc.) based on the instance of the application running.
This will enable you to associate information specific to each instance.
Regards,
Murali
|
|
|
|
|
Hello,
Why don’t you want to use .Net Remoting. I think that this solution will be easy. Or you can use Global Shared Memory, but if you choose this solution, you’ll work with P/Invoke (DllImport).
|
|
|
|
|
you need to use a kind of connection to send or get protocols or packages.
i give u some tips to learn about that:
Search for the classes of the library System.NetWork
|
|
|
|
|
Hi all,
I have created a windows installer for my application using VS2005 setup and deployment project. Everything is OK. Whenever there is a change in my project that is associated with installer project, I need to remove my service/ application first then it allows to install.
My question is how can i provide an option to install my application if any new version is available without uninstalling it. Currently, i am doing by manually copying the exe to the insalle path.
Thanks in advance.
Praveen Raghuvanshi
Software Engineer,
Wins Infotek Pvt. LTd.
India.
|
|
|
|
|
Hello,
I have created a DLL for COM using VB 6.0. the fucntion has a reference variable which returns some value back.
I am accessing this fuction in C# when i am passing the ref variable it is giving me an error.
Please help.
Thanks in Advance.
Bharath.S Ron
|
|
|
|
|
bharath.s.r wrote: I am accessing this fuction in C# when i am passing the ref variable it is giving me an error.
What error?
Regards,
Satips.
|
|
|
|
|
i am passing a variable as (ref var)
error :- ref object is not declared.
Thanks in Advance.
Bharath.S Ron
|
|
|
|
|
Reference variables are surely supported in C#.
I think the problem under this case might be the use of variable without declaration.
Regards,
Murali
|
|
|
|
|
can u please explain me how i have to rectify it.
i Have learn't C# on my own, i was working on VB Before now has been shifted to C#.
Thanks in Advance.
bharath.s
|
|
|
|
|
While calling the method, pass the 'reference' variables as
SomeMethod(ref varInput);
Then in the definition of the Method u have to use the same reference variable as,
public void SomeMethod(ref varInput)
{
//Give ur implementation here.
}
Regards,
Murali
|
|
|
|
|
the method has allready being deployed in vb6.o
in vb 6.0:-
public function somefunc(ref variable as string)
variable = "XYZ"
end function
in C# i have given reference to this class and function and created a Runtime callable wrapper.
IN c#
object.somefunc(ref csharpvar)
bharath.s
|
|
|
|
|
Make sure you are using the correct namespace.
|
|
|
|