"Every dog has its day. And VB got its way today"
-
I think there are only user-contributions: VB Like InputBox for MFC[^]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!This one seems to be even better! :rolleyes: CInputBox 1.0[^]
Regards, Nish
My technology blog: voidnish.wordpress.com
-
Rajesh R Subramanian wrote:
Years ago, I've used, re-used and abused that InputBox thing you wrote and published. :laugh:
I didn't want to mention it since I wrote that so long ago and today I bet the code would seem rather crappy to me :-O
Rajesh R Subramanian wrote:
But MFC does have CEdit which serves good. And there's there's CRichEdit for the greedy ones.
True!
Regards, Nish
My technology blog: voidnish.wordpress.com
Nish Sivakumar wrote:
I didn't want to mention it since I wrote that so long ago and today I bet the code would seem rather crappy to me :O
That's several years ago, so let that guilt of bad code not kill you. :) But then I was using it for quick and nasty things, and later evolved writing my own nasty code better and sophisticated controls.
"Real men drive manual transmission" - Rajesh.
-
This one seems to be even better! :rolleyes: CInputBox 1.0[^]
Regards, Nish
My technology blog: voidnish.wordpress.com
Have you no shame, man!! :laugh:
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
-
We normally look down VB (and hence VB.NET) because of its innumerous shortcomings. Today I had to make a quick utility to work on a export format. Though I started the 10-minute tool as a console application, in less than 30 minutes, I wanted a bit of small extensions like putting up a small inputbox. If I had to convert the entire 10 line app to Windows forms it would have been a long work. Fortunately, the quickly and nifty
Microsoft.Visualbasic
lended a helping hand with its 'Interaction.Inputbox' and a few other methods. Thank you, VB. :)
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!Vasudevan Deepak Kumar wrote:
If I had to convert the entire 10 line app to Windows forms it would have been a long work.
"The fault, dear Brutus, is not in our stars, But in ourselves, that we are underlings." Marc
Latest Article: C# and Ruby Classes: A Deep Dive
My Blog -
We normally look down VB (and hence VB.NET) because of its innumerous shortcomings. Today I had to make a quick utility to work on a export format. Though I started the 10-minute tool as a console application, in less than 30 minutes, I wanted a bit of small extensions like putting up a small inputbox. If I had to convert the entire 10 line app to Windows forms it would have been a long work. Fortunately, the quickly and nifty
Microsoft.Visualbasic
lended a helping hand with its 'Interaction.Inputbox' and a few other methods. Thank you, VB. :)
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!Using forms programmatically woudn't have been too hard honestly....
var f = new Form();
var t = new TextBox() { Dock = DockStyle.Fill };f.Controls.Add(t);
f.Controls.Add(new Label() { Dock = DockStyle.Left, Text = "Give me input: " });
f.ShowDialog();
/* Insert code here to grab the t.Text value */ -
What do you mean, "at the moment"? MFC was soooo 20 years ago[^] dude. :)
"Real men drive manual transmission" - Rajesh.
That's a great one :) Despite each new fad coming in as the next big thing then being promptly dropped good old MFC/C++ is still going strong.
-
Using forms programmatically woudn't have been too hard honestly....
var f = new Form();
var t = new TextBox() { Dock = DockStyle.Fill };f.Controls.Add(t);
f.Controls.Add(new Label() { Dock = DockStyle.Left, Text = "Give me input: " });
f.ShowDialog();
/* Insert code here to grab the t.Text value */Interesting. Thanks Andrew for the snippet.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep! -
That's a great one :) Despite each new fad coming in as the next big thing then being promptly dropped good old MFC/C++ is still going strong.
Stayed up making some unavoidable and necessary changes to some rickety old, but excellently written C code. Or in a word, Joy. Jon done, so I'm off to bed. G'nite. :)
"Real men drive manual transmission" - Rajesh.
-
Have you no shame, man!! :laugh:
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
-
We normally look down VB (and hence VB.NET) because of its innumerous shortcomings. Today I had to make a quick utility to work on a export format. Though I started the 10-minute tool as a console application, in less than 30 minutes, I wanted a bit of small extensions like putting up a small inputbox. If I had to convert the entire 10 line app to Windows forms it would have been a long work. Fortunately, the quickly and nifty
Microsoft.Visualbasic
lended a helping hand with its 'Interaction.Inputbox' and a few other methods. Thank you, VB. :)
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!Sorry to hear that. I can't mark you down 50,000 points but for for cussing at all of us by using VB you deserve nothing less. :-D
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
-
Sorry to hear that. I can't mark you down 50,000 points but for for cussing at all of us by using VB you deserve nothing less. :-D
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
:)
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep! -
We normally look down VB (and hence VB.NET) because of its innumerous shortcomings. Today I had to make a quick utility to work on a export format. Though I started the 10-minute tool as a console application, in less than 30 minutes, I wanted a bit of small extensions like putting up a small inputbox. If I had to convert the entire 10 line app to Windows forms it would have been a long work. Fortunately, the quickly and nifty
Microsoft.Visualbasic
lended a helping hand with its 'Interaction.Inputbox' and a few other methods. Thank you, VB. :)
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!VB is fine. Everybody makes WAY too big a deal out of this!
-
VB is fine. Everybody makes WAY too big a deal out of this!
-
VB is fine. Everybody makes WAY too big a deal out of this!
VB.Net has its place. Contrary to popular opinion, it is great for some things. :)
Cabowaboaddict
-
VB is fine. Everybody makes WAY too big a deal out of this!
VB.Net has its place. Contrary to popular opinion, it is great for some things.:thumbsup:
CWA
-
VB.Net has its place. Contrary to popular opinion, it is great for some things.:thumbsup:
CWA
I write mostly in C# now but VB is fine. It will get the job done just as well. These religious arguments over language exist to give us something to do. If you prefer VB then use it! :)
-
VB is fine. Everybody makes WAY too big a deal out of this!
Absolutely agree. Bunch of MAC vs. PC BS (that's a metaphor)... just get the job done. I just wasted five minutes commenting on this.