|
|
Well, no more problem, this is my solution to the problem. Thought I would give feedback.
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
Thanks a lot,
well are u creating any game in c#?
If u could tell me in detail, it would be gr8!!
Thanks,
Pramod
|
|
|
|
|
I just re-wrote Microsoft's MineSweeper to see if I could do it. It took me 8 hours and 747 lines of code (excluding saving of high scores and sound effects) and the last thing I had to sort out was the clicking of both buttons to expose the buttons that doesn't have mines under it. Nothing spectacular, just a little exercise over the weekend.
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
private void mylabel_MouseClick(object sender, EventsArgs e)
{
if(e.MouseButton == MouseButtons.Left)
MessageBox.Show("You've just pressed the Left mouse button!");
else if(e.MouseButton == MouseButtons.Middle)
MessageBox.Show("You clicked the middle mouse button");
else if(e.MouseButton == MouseButtons.Right)
MessageBox.Show("You clicked the right mouse buttom");
}
|
|
|
|
|
Hello,
When developing a Windows Application, You may have to put lots of controls on same form. Therefore It becomes too difficult to see, manage and manipulate all of these overlapped controls.
I think, it is a frequently encountered problem. Are there an way to solve this?
|
|
|
|
|
Hi
that's when the Containers technique comes handy
a container is much like a standalone subform has its own controls when you you move the container you move all the contained controls
examples of containers
Panel, GroupBox,TabControl, ToolBar
you can take the "Folder Options" Dialog as an example of how microsoft manage toooooooo many overlapped controls in one single form
through frames and tabPages
Ahmad Shaban
|
|
|
|
|
Hello!
I try to build a class library but I run into some problems.
In the code for this class library there are some rows that have this kind
of look
public bool IsBottomMixValid(MeltPracDataGmix.BottomBlowing mix, int
maxBottomFlow)
As you can see here we have a class named MeltPracDataGmix that exist in the
code for the project
that build the actual exe file. So the class definition does not exist in
this project for this class library.
My qustion is what is the solution to this kind of problem.
I assume if this was C++ it would be enough to include the class declaration
which is the header file.
But in C# we don't have any header files. So how do I do here?
//Tony
|
|
|
|
|
Hi
i don't understand you ! do you wanna pass the constructor or a method in the class
public bool IsBottomMixValid(MeltPracDataGmix.BottomBlowing mix, int<br />
maxBottomFlow)
is BottomBlowing a static method or property or what !!
Ahmad Shaban
-- modified at 4:07 Monday 20th March, 2006
|
|
|
|
|
Hello!
Here below I have been more specific to my problem.
I thing that you can understand what my problem is.
I'm trying to build a class library which has a class called
AvestaPlantFunc.
In this project building a class libray exist a class called
AvestaPlantFunc. In this class is there a method called IsBottomMixValid.
Code not relevant for the question has been removed.
This method IsBottomMixValid has one parameter and the type for this
parameter is MeltPracDataGmix meaning passing class reference
MeltPracDataGmix.
Now to my question the definition for class MeltPracDataGmix does not exist
in the same project as
the class AvestaPlantFunc. Class MeltPracDataGmix exist in another project
that build the exe file.
When a class has a reference to another class as in my example is it
nesessary that the full definition to class MeltPracDataGmix is existing in
the same project.
I assume if this was C++ it would be enough to include the class declaration
which is the header file and not the implementation.
But in C# we don't have any header files. So how do I do here?
What is the solution to this problem when the class need another class.
using System;
using MeltPracData;
namespace Common
{
public class AvestaPlantFunc
{
public bool IsBottomMixValid(MeltPracDataGmix mix)
{
//here is there some code
}
}
}
//Tony
|
|
|
|
|
Hi
You are building a Class Library (dll)
look for the namespace of The class MeltPracDataGmix
and add this refrence in your project
using TheNamespaceThatHoldstheClassMeltPracDataGmix;
C# use the namespace technique instead of the header technique
C, C++ ---> #include <stdiol.h>
.Net ( including C# ) ---> using System;
Ahmad Shaban
|
|
|
|
|
hi
iam working on a browser control .I have blocked all the popups in the new window events-e.cancel = true, but i want to allow popups from predefined sites . How is it possible.
thanks
ramya
|
|
|
|
|
hello...actually i wanted to make a negative of an image. now the problem that i am facing that i can read an image into a bitmap object but am confused with reading out each of the pixel value and storing them onto a matrix to perform the operations. plz provide help... thanx.
haseeb
|
|
|
|
|
|
Hi all,
can any one please tell me how can i make a crystal report in landscape mode in design time?
so i can have more width space...
Thanks in adv.
|
|
|
|
|
Hi,
I want to programatically add a component in GAC using GACUtil.exe. I tried usingProcessStartInfo class. It gives error "The system cannot find the file specified.".
How can i run programmatically run commands on VS DOTNET 2003 prompt?
|
|
|
|
|
You can execute batch files using Process.Start(...) command. You can create a batch file which first invokes the vsvars32.bat (to set the path), and then you can execute GacUtil.exe, which will do whatever...
There has to be more to life than just this
|
|
|
|
|
Hi
" How can i run programmatically run commands on VS DOTNET 2003 prompt?" ??
By this way you are assuming that the end user have the .Net INSTALLED hence
you can launch the command line tools!! Well
First VS.Net do not register its command line tools globaly which means you can't run these command from the normal command prompt window and that mean if type any command in the run dialog it will generate you the same error "The system cannot find the file specified." so you must
either 1) type the full path to the command you want to run and that isn't practical cause it may differ
2) copy the command executable and paste in the same folder with your program in your case "GACUtil.exe" and i think it is illegal to distribute those tools with you program
Ahmad Shaban
|
|
|
|
|
But the GACUTIL.exe is always supplied to the client. It is in the DotNet framework. So there is no point being illegal.
|
|
|
|
|
Hello to all,
I want some system info to my C# application.
1) Hard disk serial no (Manufature serial no)
2) Mac Address
3) IP Address
How can i get these all & use it in my application.
Divyang Mithaiwala
|
|
|
|
|
hi i have used only for IP address for that you can do following
1. Add using System.Net;
2.
IPHostEntry ipHost = Dns.GetHostByName(Dns.GetHostName());
IPAddress [] ip = ipHost.AddressList;
string ipaddress = ip[0].ToString();
|
|
|
|
|
Thanx Manish,
It's work for me.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Use the Environment class to retrieve information such as command line arguments, the exit code, environment variable settings, contents of the call stack, time since last system boot, and the version of the common language runtime.
other than those mentioned above you can use the
WMI
Ahmad Shaban
|
|
|
|
|
Thanx Ahmad
It is so usefull to me.
Divyang Mithaiwala
|
|
|
|
|
By doing googling on wmi i also found some example for my own question. If some one found usefull.
1) For IP address the first reply is best.
2) To found MAC address go here.
3) For HDD Manufacture Serial No go here.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|