|
well the fuction he is trying to tell me to use is Visual basic function try it your self works fine in VB but not C++ or C# which i was asking about
|
|
|
|
|
I hate to tell you this, but it's a method on the Form class, and does work in C#. I've used it often enough to recognise it.
|
|
|
|
|
Wrong. I have a C# Windows Forms application that I executed that code in before I posted it to you.
I am trying hard not to insult you ( no comments needed from you Pete ), I really mean it sincerely when I suggest you need to use a beginners book. There is nothing wrong with that, I still have shelves of them at home from when I started and I still have to look things up in them almost 20 years later! It's a never ending experience learning about development but we really need a foundation to work from.
led mike
|
|
|
|
|
led mike wrote: I am trying hard not to insult you ( no comments needed from you Pete ),
Moi? Little ole moi? Would I...?
|
|
|
|
|
The Show method works just fine in both C++.NET and C#. I use it every day
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
which funky do you mean, AE or BE? if I'm getting insulted, at least let me know
and prepare for a fearless riposte.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Funky as in classy shaped icon. No insults there - just 3 MVPs chewing the fat.
|
|
|
|
|
Which leads to another question: did/does CP ever explain what MVP stands for?
it could be many things, Most Vertical Primate being one of them.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Luc Pattyn wrote: did/does CP ever explain what MVP stands for?
I don't know about yours but my award stands for Most Valuable Puke. I wanted Most Valuable Cookie Tosser but Chris said John Simmons already had that.
led mike
|
|
|
|
|
it seems to me we need another editable column in the database, so we can personalize this.
And in a couple of weeks the friday quiz question: given 40 MVP names and 40 titles,
who is who?
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I'd like to think it's Most Valuable Professional, but in my case it could be Madly Vocal Pessimist.
|
|
|
|
|
I didn't see you as a pessimist
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Pete O'Hanlon wrote: but in my case it could be Madly Vocal Pessimist.
If the award was for that, it would be much easier for me to win one. In fact I would probably have top honors.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
No. He is telling you to get a book and learn.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Gregory Bryant wrote: so in other words you dont know
Look at the icon, man! He's an MVP, dude!
|
|
|
|
|
Another one. What happened to the normal people? They are supposed to run in the millions.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Luc Pattyn wrote: What happened to the normal people?
Ahem, I've barked at the OP a few times
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Sorry, I forgot about your daily show...
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
It's okay
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Don't worry - I've no doubt that you'll be joining the hallowed ranks soon enough.
|
|
|
|
|
I pretty sure someday Just need to get off my butt and write some articles
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
No, in other words, you plainly have no idea what you're doing and should learn some basics before wasting all our time asking questions you don't understand the answer to.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
in form2
form1 f1 = new form1()
f1.show()
try this.
|
|
|
|
|
That's also pretty bad.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I'm going to suggest that you use one of the design patterns here. One that I'm thinking might help is the Mediator pattern (have a look on Google to find it), but it basically looks like this:
public class Mediator
{
private Form1 _loginForm;
private Form2 _buddyForm;
public Form2 BuddyForm
{
get
{
if (_buddyForm == null)
_buddyForm = new Form2(this);
return _buddyForm;
}
}
public Form1 LoginForm
{
get
{
if (_loginForm == null)
_loginForm = new Form1(this);
return _loginForm;
}
}
public void Logout()
{
LoginForm.Show();
BuddyForm.Hide();
}
}
public class Form1 : Form
{
private Mediator _mediator;
public Form1(Mediator mediator)
{
_mediator = mediator;
}
protected virtual void Login_Click(object sender, EventArgs e)
{
_mediator.ShowBuddy();
}
}
public class Form2 : Form
{
private Mediator _mediator;
public Form2(Mediator mediator)
{
_mediator = mediator;
}
protected virtual void Logout_Click(object sender, EventArgs e)
{
_mediator.Logout();
}
}
|
|
|
|