|
I have developed some no. of screens in windows application using vc#. I want to make other form ( that may be 3rd, 4th but not first) as starting page. How can i make it? please help me!
Raheem MA
Tr. Systems Engineer
|
|
|
|
|
Look for the static Main method of your application. If you created your project with VS2005 its in a separate class called Program otherwise it's in the first form created. There you find the following line of code (the name of the form class may be another):
Application.Run(new Form1()); If you want another starting form simply change the type of the instance that gets created and then passed to Application.Run .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
You can find the following code in the main.
Application.Run(new Form1());
If you want to run the form2 then simply change this to
Application.Run(new Form2());
My small attempt...
|
|
|
|
|
If you want to help the original poster, you should post a reply to his posting and not to mine.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
I am working with C# and Crystal reports 10 and C# 1.1 VS 2003. When I run my project i get following error:
"A Crystal Reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store."
Also I have another project which is working fine with the same things, so I think license for Crystal reports exists, and this is some thing else.
Also sorry if this is not the right place to post this question.
|
|
|
|
|
I am having same problem ... I am using Crystal Report 10 with VS2003. Surprisingly, report shows on Release Mode but not in Debug Mode
Does any one know solution of this problem????
MQPASTA
Remember: You can't see every one but every one can
|
|
|
|
|
Hi everyone,
Would like to get help on client access thru server side scripting.
Problem:
I want to access drive information of client machine thru a server side script. But it displays my server drives not client machines.
am using "Directory.GetLogicalDrives()" function.
Help required..
Regards,
Niladri Dasmahapatra
Developer .Net
Delhi, India
|
|
|
|
|
I want to write code of click event of axShockwaveFlash.when i click on axShockwaveFlash object then open a another form.but there are no events of axShockwaveFlash object.so how i do that?
pls help me.
thanks.
|
|
|
|
|
|
i have a window service and window application two different projects.
i am hendling a window service through window application for start, stop, Restarting the service. i am checking service using Timer in window Application for every 500 interval. but i want it without using Timer it should check the service status, if i stop service(in services) then it automatically show Stop in Window Application.
Thanks
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
There are several ways to do this.
One easy way is to write it to windows log entry using the EventLog class. In the service you'll create a source with your service's name, and in the Stop() method of the service, you write an entry to the Log. In the applications use the same class to monitor that log. When an entry is written an event called EntryWritten will be raised.
PS.
This may not work when you service has been forcibly ended using the task manager.
Regards
|
|
|
|
|
Hi,
How can i passed values from one form to another form without using help of constructor.
suppose FormA has a variable i=4 that values i want to send to FormB.
it can passed by constructor. like FormB oFormB=new FormB(i).
But i want to know that is there any other way to passing value.
Pls help me if possible give a example with code.
thanks.
|
|
|
|
|
|
yes, u can create a static class and set the property from one class and then access it from another class...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
FormA
{
public static string GlobalVar;
}
FormB
{
FormA.GlobalVar = "parameter to be passed";
}
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Try to you delegates.................. to pass the values
My small attempt...
|
|
|
|
|
hello every one , i have a windows service and i want to expose the methods inside the windows service as a com object how can i achieve it.
thank you
|
|
|
|
|
I have multi dimensional array, which has to be produced in report (.rdlc)
microsoft's reports
i hope i should use object data source, but i am unable to make it up... (ARRAY) i know how to do it with variables...
kindly help me out
|
|
|
|
|
I am displaying records from an MS Access Database. One of the fields is the person's marital status. To conserve on space, I have saved it as a short Int: 0=Unknown, 1=Single, 2=Married...etc. What I'm trying to do is convert that numeric value to the textual value when it is displayed in the DatagridView. I am toying around with some ideas but they all seem too time consuming. Does anyone have any ideas on how to go about this?
|
|
|
|
|
hi,
I have idea like this. In design mode, you add column collection in datagridview. With material status column, you do choose DataGridViewComboBoxColumn with items (0 - Unknown, 1 - Single, ...).
You must add each record in MSAccess into datagridview in code. That's all.
hope my help.
P/S: I'm not sure we can do your idea.
|
|
|
|
|
Thanks for the information. I was thinking about creating a column like that with code. One thing that seems too time consuming is looping through all the records to set the appropriate value. Do you know if the DataGridView has a way to trap the event of a row being created? That way the cpu wouldn't have to do double work.
Thanks again for the help.
|
|
|
|
|
Hi All:
I have the following algebraic equations I want to code in C#. I am not sure how to do this. Please help!
495 = 66t + c
951 = 190 + c
How do I write this in code?
Thanks,
Laura
|
|
|
|
|
Sorry the equations are actually:
495 = 66t + c
951 = 190t + c
Thanks! Please Help!
Laura
|
|
|
|
|
Are you looking for an algorithm for solving two simultaneous equations[^]? And you want to code that in C#?
Make sure you understand the algorithm first without being concerned about how to implement it in C#. Once you have a strong handle on the algorithm, you can then begin to consider how to implement it in C#. The above link describes three approaches.
|
|
|
|
|
You must use the matrix.
for ex:
2x+6y=8
3x+2y=5
|8 6|
|5 2| -14
x=-----= --- = 1
|2 6| -14
|3 2|
|2 8|
|3 5| -14
y=-----= --- = 1
|2 6| -14
|3 2|
sol x=1 y=1.
|
|
|
|