🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #495

Re: InputBox or InputQuery

#495
From: Chris Holland
Date: Thu, 10 Feb 2005 08:13
39 lines
2093 bytes
That is great thanks, dont care about the look I only want to use it for 
debugging purposes.

Chris Holland


JED wrote:
> David Clegg wrote:
> 
> 
>>Chris Holland wrote:
>>
>>
>>>That would explain why I cant find it
>>
>>VB.NET users have one they can use. It should be possible to find the
>>assembly that it's implemented in (probably part of the standard .NET
>>Runtime) and use it from there.
> 
> 
> In the Microsoft.VisualBasic assembly, Interaction class...
> 
> Add Reference to Microsoft.VisualBasic
> Add using Microsoft.VisualBasic 
> 
> Drop down a button and add the following::
> 
> string value = Microsoft.VisualBasic.Interaction.InputBox("My Prompt",
> "Some Title", "I am the default", -1, -1);
> if (value.Length != 0) {
> 	Text = value;
> }
> else {
> 	Text = "Cancel selected";
> }
> 
> 
> Dialog doesn't look the best though (IMHO).
> 
Technical Details
Message-ID: <420b17a5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4208bec0$1@newsgroups.borland.com> <42091f36@newsgroups.borland.com> <4209ca4d@newsgroups.borland.com> <xn0dyc0v84b1cp6000@newsgroups.borland.com> <xn0dyc6sy8v8pa009@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,448921ecbb33be75
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 10 Feb 2005 08:13:19 +0000
From: Chris Holland <mail@chrisholland.me.uk>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Re: InputBox or InputQuery
References: <4208bec0$1@newsgroups.borland.com> <42091f36@newsgroups.borland.com> <4209ca4d@newsgroups.borland.com> <xn0dyc0v84b1cp6000@newsgroups.borland.com> <xn0dyc6sy8v8pa009@newsgroups.borland.com>
In-Reply-To: <xn0dyc6sy8v8pa009@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.136.166.161
Message-ID: <420b17a5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108023205 81.136.166.161 (10 Feb 2005 00:13:25 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail