KashJani's Q&A profile
Windows Forms Abort Startup, when Error occurs in Me.Startup
I am using the ApplicationEvents to prepare global data for my Windows Forms application. If I have a critical error during this startup, I want to shut the application down. I can use the e.Cancel = True, to stop the main form for opening. But I can find what command I can call on the My.Application object, that will force it to start to shut down. I know it is going to be something silly simple, but I am just drawing a blank. Thanks After I set e.Cancel = True; the Startup SplashScreen stays up. I take it that I must specifically close the Startup SplashScreen then.... (Yester ...Show All
.NET Development XML serializer does not serialize values of properties if value contains only spaces
Hi all, I have a field of type string in a type that is serialized to XML. If the field value is just one space, the resulting XML is this: <FieldName /> This creates an issue with deserializing, because in the context of the application, " " is not equal to string.Empty. I've looked for options on the serializer, and for serialization attributes that would control this behavior, but I could not find any. Any help is appreciated. SA. [Edit: changed subject to be more accurate description of the problem.] Please, consider that XML "normalize" whitespaces in the attribute ...Show All
.NET Development Stored Procedure And Classes
Greetings: I am quite new in object oriented programing. Well I know how to build a Data class that will only interface between my objects and my database. Say for example I have a class User that contains User.UserISValid or User User User.UserIsAdministrator, now I want another class called Dataclass that will only deal with my data manipulation, so what I want to do is to use a stored procedure that accepts userID as parameter Input in SQL Server and returns me UserISValid= True/False and UserIsAdministrator=True Or False. Can someone help me Thanks Yo ...Show All
SQL Server An instance of the SQL Server Reconciler error object cannot be created
I've got the following server configuration. Database Server - Windows 2003 Standard - MSSQL 2000 sp4 Web Server - Windows 2003 Standard - SQL 2000 sp4 replication components - SQL Mobile 2005 Server tools The database server published out the snapshot to a share on the web server. This bit is working file, I can see the snapshot contents etc. When I connect from my own pc using SQL Management Studio and attempt to set up a subscription to a Mobile database, I get the following error. TITLE: Microsoft SQL Server Management Studio ------------------------------ An instance of the SQL ...Show All
Visual Studio Trap Errors from SS label command line calls
We use Command line batch files to do automated builds. We have seen several issues lately where there is an error while running the SS Label command. Is there a way to check the errorlevel returned from the ss label command and cause the build to fail if the label is not applied. Here is a recent example: SS label $/A/B -l6.3.1209 -i- Comment for $/A/B: PCS_NEWDEV_V6 File \\server\share\data\v\vodaaaaa is already open We do have an "If errorlevel 1 goto failed" after the ss label command, but this is not working. Thanks I was able to resolve this by creating a batch file to do the following after running the ss label comma ...Show All
.NET Development How to catch a key in windows
Hi, I need to activate my program if PrintScreen key is pressed and focus is on some else program. Thank you. Stay away from com objects. You can set up a keyevent monitor in you program, parse the input to determine the key pressed and directly call your program via a shell. The dotnet framework has all the classes you need to do this. ...Show All
Visual Studio Tools for Office Unable to rebuild my project
Hi, I've produced a C# automation addin for Excel and all works well. However, I'd like to be able to recompile the addin without closing Excel and reloading the addin. I've tried unchecking the addin from the addin list in the tools>addin menu, but it doesn't work. Does anyone know how to rebuild & overwrite the existing file without having to close Excel Thanks !! Thanks for the reply. Soooo frustrating/disappointing. Lets say I'm an addin developer and I typically recompile my an addin 10 times a day - if it takes 30 seconds to close and reopen Excel, over the course of a year I would spend over o ...Show All
Windows Forms UnhandledException?
How could i capture & handle UnhandledException in client or service side The "Main" method is actually the assembly's entry point, every assembly should have one( or more, the you have to choose which one), when you create a Windows Form App using visual Studio.Net, it will create one in Form1.cs/Form1.vb, here you'll find, Application.R ...Show All
Visual Basic namespace
I am new to vb.net 2003. I am trying to code a save button to have the data append to a backend. I'm getting a "statement not a valid namespace" and "Company is not a member of ClientENT" Can someone help me: Public Class ClientENT Inherits baseEntitiesComponents Public Enum clientFlds LastName = 0 FirstName = 1 ClientID = 2 Nofld = 3 End Enum End Class Private _ClientID As String Private _LastName As String Private _FirstName As String Private _Address As String Private _State As String Private _TelephonNo As String Private _Cell As String Private _EmailAddress As ...Show All
Windows Live Developer Forums WHY?
What was the problem with the previous skin ! I liked it very much, better then this one. It's like messenger 7.5 . The previous skin was colourful and this is ugly! Where are the colours I lidek the real colours not these light things! Why did you change it Why I'm talknig about the new messenger beta ! I like this new skin but there are some other things i really don't like in this new version. Watch my previous thread roby ...Show All
Windows Live Developer Forums Windows Live Messenger Beta Invitation Winners
Last week, the Messenger team offered Windows Live Messenger Beta invitations to the first 5 people who submitted Activity Apps that passed the provisioning process. Drum roll please... And the winners are: 1. Notesaic by Daniel Tse 2. Quatro by Chris Weeink 3. Boter kaas en Eieren by Glenn Klijn 4. Let's Play Chess by Prasad DV 5. CooperYoung by Frans-Willem Hardijzer Congratulations to the winners! You will be receiving your beta invitations shortly via the email address used when you submitted your application to the contest. Keep the apps coming! The Worlds Best App contest continues until midnight (PST) December 31, 20 ...Show All
Visual Studio Express Editions VB 2500 express with MySQL thru MySQL Connector Net
I new to VB 2500 express with MySQL. I pick up some idea from Mike Hillyer's tutorial at vbmysql.com. I desperatelly need some direction here. I have a table [emp] in MySQL with the following: CREATE TABLE `emp` ( `empID` int(4) unsigned NOT NULL auto_increment, `firstname` varchar(50) NOT NULL default '', `lastname` varchar(50) NOT NULL default '', `status` enum('A','D') NOT NULL default 'A', PRIMARY KEY (`empID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; INSERT INTO `emp` VALUES (1, 'Richard', 'Sam', 'A'); INSERT INTO `emp` VALUES (2, 'Record', 'Two', 'A'); INSERT INTO `emp` VALUES (3, 'Rec', 'Three', 'A'); I ...Show All
Visual Basic How to center controls
Hello How can I center controls in the form I know how to center controls by using "Format-->Center in Form". But I need a code for centering controls. Thanks Something like the following should be what your looking for Sub CenterControlOnForm(ByVal Ctrl As Control, ByVal frm As Form) Ctrl.Top = (frm.Height - Ctrl.Height) / 2 Ctrl.Left = (frm.Width - Ctrl.Width) / 2 End Sub ...Show All
Software Development for Windows Vista Presistance and workflow runtime
hello, Do i need foreach workflow DB for presistence or i can presist all my workflows under one db and the same question for the workflow runtime do i need one workflow runtime for each workflow or i can use one workflow runtime for all the workflows. You can use one db for all workflow types to be persisted, you do not need a different db for each. You only need one workflow runtime for an application domain and it will run multiple instances of the same or different workflows. Matt ...Show All
Visual Studio Express Editions How to launch deployed applications from limited XP users
I have deployed several Visual Basic 2005 Express applications and they all function on my XP Administrator user account. However, it appears to be impossible to run deployed projects on my XP user account which does not have Administrator privileges. I tried to change the privileges for this account temporarily to administrator, so as to make installation possible, but the application would not start. Is there any way around this problem Actually, I would wish the installation process to install my application on all accounts on the computer, which is normal when you install retail ...Show All
