|
Why don't you the login form as a dialog?
|
|
|
|
|
i prefer a form with textbox nicer and more professional
|
|
|
|
|
Forms can be shown as dialog and return a DialogResult, that makes things simple.
|
|
|
|
|
Yes, if the form is modal, then it makes sense to do what you suggested, I just assumed from the question wording that it was modeless. In that case, I apologise, I would use properties and the DialogResult to return a value from a modal form.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can in your child form's constructor set a field to the opener of it, then at anytime call any method on that form using its reference called. ex:
class Parent
{
public void Anymethod(){}
public Parent()
{
Child c = new Child(this);
}
}
class Child
{
private Form Owner;
public Child(Form f)
{Owner = f;}
public void CallParent()
{
Owner.AnyMEthod();
}
}
|
|
|
|
|
Hi,
I have problem for developing in OO style, I know the basic of OO.
which refrences are suitable for this purpose?
(with examples)
Best wishes
|
|
|
|
|
Hmm.... I think that OO thinking really comes more with practice, but Microsoft has a book, called Object Thinking.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
When you know the mechanics of object-oriented programming but you don't really know how apply it to a well-thought out application, this is a pretty good book:
"Object Design: Roles, Responsibilities, and Collaborations"...
|
|
|
|
|
Hi
How to create collection class??
I have to save more than one rows in Database.I think collection class is the best way of doing this type of task.
Or Is there any other way of doing this type of task?
Thanx
Seema
|
|
|
|
|
Seema Gosain wrote: How to create collection class??
Why would you ? The built in ones work just great.
Seema Gosain wrote: I have to save more than one rows in Database.
OK - you mean you need to store into the actual SQL database ? Then you need to write SQL, not use a collection class.
Sounds to me like you know some terminologies but not what they mean, have you worked through a beginners book, or are you learning C# on the job ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Evry1..
I have couple of Picture Boxes ... If I mouse over on a picture box it should be highlighted...How will I do that using c#
sample code is appreciated..
regards,
Subhash.
|
|
|
|
|
By handling the mouse events and drawing a box around the picture box, I guess. Personally, I'd ditch the picture box, draw the images yourself, and have far more options for how to highlight them.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi Christian...
Can u be Presice .. As i did not understand...
If Possible can u please send me the sample code...
thanks in advance..
regards,
Subhash
|
|
|
|
|
Well, it would involve actual programming.
In your class, handle the Paint message. In there, draw your picture. Have a boolean flag to say if the mouse is over the image. When the mouse moves, set that bool and call Invalidate() if it changes, to redraw the image. In the paint event, draw the highlight around or over the image ( for example, I'd consider a semi opaque box over the top of it ), if the flag is true.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi Christian,
I dont understand what you want to say ? I try to use google api but i ahve to pay for this.
|
|
|
|
|
I am not sure why you created a new thread here.
Torrents are basically tools for thieves, that's what I was trying to say.
What google API costs money ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Torrents are basically tools for thieves
Although mostly not, there are surely exceptions to this rule?
Knives are tools of thugs, but used for their intendded purpose they cut food quite well!
edit: Have a read[^] - there are plenty of legit uses of the Bit Torrent protocol.
|
|
|
|
|
There are many, many things distributed through torrents, and not all of them are illegal.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
Perhaps - but what are the odds ? What percentage of people using torrents do so for legal reasons ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Not many... if you check at http://www.torrentz.com/[^] and look at their search cloud of pouplar searches, you can see that most people are looking for movies or tv programmes, some more are looking for music, a few for PC games, and err French?
My current favourite word is: Bacon!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Hi evry1..
How will I make a property window readonly at runtime ...I need it in my gaming software
Sample code if any..
regards.
Subhash.
Software Engineer.
modified on Monday, May 12, 2008 3:15 AM
|
|
|
|
|
Why would there BE a property window at runtime ? What do you mean ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi ,
I want to search for torrent files from various web sites.Please advice me reg. this what i have to do for this.Is it possible to find without registration or with out permission of that sites we can find for the torrent files.
How can i make this possible please help me in this topic i want to know from beginning what to do ?
e.g please check the site www.torrent-finder.com.
I want same window or web application.
thanks ,
umesh.chape@hotmail.com
|
|
|
|
|
You want to write a windows or web app, to help you steal music, movies and software ? How about you just grow up ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Chistain,
I dont understand what you wan to say ! I aleard tried with google api. I have to register on google and it is paid .
One more is i want to search and show .torrent files form many torrent finder sites.
Have you checked the www.torrent-finder.com site. then we will have better idea ? what i want
|
|
|
|