Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox
Message
General information
Forum:
ASP.NET
Category:
Visual FoxPro Toolkit for .NET
Title:
Miscellaneous
Thread ID:
00718326
Message ID:
00719156
Views:
12
James,

You can't use the Show syntax. The Toolkit is designed to mimic the Visual FoxPro syntax which doesn't use the show syntax. You can call the messagebox using the fully qualified name so the compiler knows which messagebox you are referring to:
VFPToolkit.dialogs.Messagebox(...
>I have yet to install the VFP toolkit.
>Could you references the VFP toolkit like this also?
>
>
>VFPToolkit.dialogs.Messagebox.Show(...
>
>
>But that bring up another question. Is there an order
>to the sequnce .net searches for commands in librs?
>
>
>>Hi Roland,
>>
>>The Toolkit uses the same name as the .NET class. To fix your error you can prefix your call to the .NET class as follows:
>>
>>
>>System.Windows.Forms.Messagebox.Show(....
>>
>>
>>Or
>>
>>You can remove the reference to the dialogs class at the top of you code files (Imports VFPToolkit.dialogs).
>>
>>>Hi,
>>>
>>>I installed the VFP toolkit and the existing MessageBox.Show commands now shows an error. Does the VFP toolkit override or replace the VB.Net messagebox?
>>>
>>>Thanks
>>>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform