:)
apferreira
Posts
-
'Web Withdrawal' -
over/under flow questionThe MessageBox.Show method should be inside the catch statament, i.e.
Try var1=number1/number2 Catch e As System.OverflowException MessageBox.Show("Error:Invalid Argument" & e.Message","Invalid format") End Try
As for the extended textbox control that validates user input, I suggest you read the following CodeProject articles: Validating TextBoxControls[^] Validating TextBox[^] And for a more general view on custom control development, I suggest the following MSDN article Developing Custom Windows Controls using Visual Basic NET[^] -
over/under flow questionjustmeTW wrote: What I want to do is create an overflow and underflow code so that if the interger is over or under the input then it will bypass the following message: Use catch statements that target the System.OverflowException class to display a personalized message on overflow errors. justmeTW wrote: if the user inputs 1.1.1.1 then an error message will occur. I would suggest using an extended textobx control that would validate user input instead of using try/catch clauses.
-
EducationI would definately go with option #3 if your job description right does not require you to be developing web services in the near future. Furthermore, since you have strong C++ background, I do not think you will have many problems adapting to Java if you do whish to learn that programming language. And yes, Java isn't the only way to implement web services.
-
DataSet Clear() performance problemSince this seems to be a .NET Framework issue, I do not see how you can alter this behaviour without changing the structure of your code. Also, I do not know if this issue only arises on .NET v1.0 or not. You should check that, because .NET v1.1 had many perfomance and bug related improvements
-
DataSet Clear() performance problem -
using .NET as a script engineTry these CodeProject article: Tool to run .NET sourcefiles like script files[^] Dot Net Script[^]
-
Listing shares and typeTry the following CodeProject article: Network shares and UNC paths[^]
-
Calling a function in C++.NETIt is a matter od simply changing the order on which you call your functions. In your main method,
GetIncome()
should appear beforeDisplayOutput()
, not after. -
DirectX9 with C++.NetTry this CodeProject article: Tetris3D - an Introduction to Direct3D using Managed C++[^]
-
Suspend-to-Ram and Wake-on-AlarmAn application may use SetSuspendState to transition the system from the working state to the standby (sleep), or optionally, hibernate (S4) state.
BOOLEAN SetSuspendState( BOOL Hibernate, BOOL ForceCritical, BOOL DisableWakeEvent );
-
Multiple MonitorsIn multimonitor environments use the
DesktopLocation
property instead of theLocation
property to correctly position forms. -
Woohoo! I'm a daddy!Congratulations to you and your wife.
-
Window Location, Multiple MonitorWhen running an application on a multiple monitor environment the coordinates of the form are the coordinates for the combined desktop. The .NET Framework provides the Form.DesktopLocation property to set and get the location of forms in multimonitor environments. So, in the code you posted above you should remove stataments like Me.Location = New Drawing.Point(loc.Right,(loc.Bottom - loc.Top)/2) replacing them with
Me.DesktopLocation = New System.Drawing.Point(loc.Right,(loc.Bottom - loc.Top)/2)
-
Image..:laugh::-D;):)
-
creating an app to track user inputIt is, simply put, an event based scenario. Depending on what you want to track, you can use standard events (those offered by the Framework classes) or create your own events to deal with your application's business logic (by building your own event handler delegate classes). Also, depending on the amount of user data you want to track, you can store it in simple XML files (if the amount is small) or in a more sophisticated data store like an Access or SQL server database (if you want to store large quantities or complex relationships of user data).
-
Help: Add-in development in VS C++ Standard EditionVisual Studio Standard Editions only offer a limited set of templates. As far as I know add-in templates are only available in Visual Studio Professional or higher versions.
-
SQL server connection string issue :-(Have you tried this at the command prompt? This solved a similar connection problem on my computer.
osql -E -S (local)\DBNAME -Q "sp_grantlogin 'MACHINENAME\ACCOUNTNAME'" osql -E -S (local)\DBNAME -d Pubs -Q "sp_grantdbaccess 'MACHINENAME\ACCOUNTNAME'" osql -E -S (local)\DBNAME -d Pubs -Q "sp_addrolemember 'db_owner', 'MACHINENAME\ACCOUNTNAME'"
Substitute elements in UPPERCASE with the relevant informantion from your specific case. Note: Contrary to you, I was using Windows Authentication instead of SQL Server Authentication. -
.net controls + longhorn?Regarding your question, and quoting the Longhorn SDK[^] ...You can display pure "XAML" pages in a browser without compiling it. However, if your "XAML" page includes procedural code, you must compile the application before you can run it. "Avalon" cannot interpret uncompiled procedural code... Also, to make my earlier remarks clear: Another quote from the Longhorn SDK[^] Procedural code can be part of the "XAML" file or be within a separate code-behind file..."XAML" has a corresponding object model that allows you to do anything in procedural code that you can do with markup. In fact, when you build an "XAML" application, the markup parser converts the markup into equivalent object model-based code... And a quote from Don Box's blog[^] ...XAML is domain-neutral, so while it may be used to create desktop apps, web pages, and printable documents, it could also be used to create CRM apps, blogging backends, or highly concurrent web services provided you had a supporting CLR-based library to do the heavy lifting...
-
.net controls + longhorn?Judah H. wrote: XAML is a language, just like HTML or XML is. But yes, it's only intended to be used to describe UI elements, it can't be used by itself to create an app. That is not entirely true, since you can inline C# or VB code in a XAML file. Of course, for intermediate to big real world applications you would not want to use a declarative language such as XAML.