manuel0081's Q&A profile
Visual Basic validation woos
I have an Access backend with a VB.Net 2003 frontend. In the table, I set an input mask for both the telephone and zipcodes. I also set them as required fields. But, when I input in the form, it lets me put anything in the field or leave it blank. what am I doing wrong I don't know if you are creating Windows Forms application or ASP.NET application. Validation controls (like Required Validator) are available only in ASP.NET applications. If you are creating Windows Forms application, then you must use Validating event on textbox. Like in this code sample Private Sub TextBo ...Show All
Smart Device Development evc 4.0 Upgrade Wizard
hello, where is the upgrade wizard for Evc 4.0, can i download this thank in advance Just for the record... I've converted 3 solutions and they all worked like a charm. I seem to get 2 'standard' warnings for everything I convert (even hello world) 1. SxS mainifest files excluded. 2. C++ Compiler conformance change - fully qualified member function names. Neither of these applied to what I was doing, so it was smooth sailing. I have a question for someone who might know. When compiling for Smart Devices in VS8 are we now using: ...Show All
Visual C# Controlling a web browser control from another form?
My application contains two forms, one controlling the other (which holds the web browser in question). I need to control the web browser's actions from the second form. I've been trying to somehow declare the browser as public but I can't figure out how to do this. Help is appreciated. Are we allowed to bump topics If not, sorry and just delete this post. I really need an answer on this question though and don't want to start a new topic. ...Show All
.NET Development identity field crisis
I'm using two parent-child table and a transaction. When parent hasn't errors but child has, transaction increments the identity field on sql server. So on next save i receive a foreign key exception because identity field on dataset remain different respect that on database although update rule on relation. If i use acceptchangesduringupdate=false i receive a dbconcurrencyviolation and if use continueupdateonerror the transaction doesn't work. Help please. I'm using system.transactions code: Using tran As New Transactions.TransactionScope Try Me .ClientiTableAdapter.Update( Me .FashionDataSet.clienti ...Show All
Smart Device Development LINK : fatal error LNK1181: cannot open input file '.obj'
Hi, I am building a project in VC++ 2005 smart device and got ths linking prolem. LINK : fatal error LNK1181: cannot open input file '..\..\CoreSys51VS2005\CoreSys51VS2005\Pocket.obj' I did not intend to create such Pocket.obj file because no file has name like Pocket.* in my project. I read some thread and it may be due to the old cl.exe, link.exe or lib.exe but I am building inside VS 2005 not at command line. I think this must be set automatically by the IDE Could anyone help me to solve this Where did I set the PATH for the linker and cl.exe inside IDE VS2005 Thank you. Stefen Huynh Here is the log file: ...Show All
.NET Development Why can I not constrain a generic to be of an Enum?
I've got a class that I want to use a set of Enums as the parameter for the generic, why dosn't the compiler let me do this public class Acme<T> where T : Enum{ private T currentValue; public T Value{ get{return this.currentValue;} set{this.currentValue = value;} } } > surprising also is System.Object , it cant be used as well . Constraining that something must be derived from Object is esentially no constraint since everything derives from Object. If you mean that you want to constrain to classes, you could use: public c ...Show All
Visual Studio How to display "ADD Webreference Dialog Box" programmitically
Hi, Can anybody please tell me how to display "ADD Webreference Dialog Box". We are trying to dislay it using "AddWebReferenceDlg" of Interface "IVSAddWebReferenceDlg" but Dialog box is not coming up. Can anybody please let me know if their is another method to display the dialog box. Thanx in advance. Regards Kiran Hi Kiran, I'm afraid this forum is probably not the best place to get an answer to this question. You may want to try this forum that discusses the VS SDK: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=57&Si ...Show All
SQL Server SA account Locked out
I have been using SQL2000 for a number of years and the company I work for needs a new system so I decided to install SQL2005. I installed SQL2005 without any problems and set a complex password for SA. I tried to log on and had to make several atempts as I remmebered the password after the SA account got locked out with the following message: Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it. (Microsoft SQL Server, Error: 18486). The problem I have is I cannot log onto SQL at all as it is not logging on with windows authentication either! How do I unlock the SA account ...Show All
Smart Device Development running exe on device emultor
Hi folks, Im newbie to .NET CF (coming from j2me world..) so my question might look dummy.. but I didn't found the answer yet... I'm develop to WM5 CF2 and using .NET 2005. is there a way to take my .exe/.cab file and run t with the emulator I’ve tried to do that with the activeSynch explorer, but I don’t know where to put the exe in the emulator file system (and after that to run it from the emulator) thanks in advance, Oren This is the scenario - You have a cab file on your desktop and the Pocket PC emulator and Active Sync are running. Open up Active Synv explorer and go to any fol ...Show All
Visual C# how to convert array into an array of bytes?
Hi, I'm busy in C# trying to send an array (of string) structure from a server to a client app. I cannot find anywhere how to do this. Im using sockets to do this. but there isnt any method to convert the array into byte[]. Any suggestion would be appreciated. byte[] buffer = System.Text.Encoding.ASCII.GetBytes( "Diego" ); You can use Unicode if your string contains non-ASCII characters. Another handy method is int System.Text.Encoding.ASCII.GetByteCount( string ) if you want to make buffer calculations before the conversion takes place. Regards, Diego Gonzalez Lagash Systems SA ...Show All
Windows Forms Deployment: Register Win32 Service during Installation?
Hello Community, my application is installing its own Windows Service (inherits from System.ServiceProcess.Service base) and its also no problem to install it (by using the ServiceInstaller and ServiceProcessInstaller Components). But we also have a 3rd Party driver, which is a win32 executable. It usually comes with its own installer but we need to install this service within our own installer. Can anyone tell me, how i can install a win32 service within my .Net Installer I have very less experience with anything below .Net (unmanaged code, win32 api and stuff) so i hope i dont need a lot of them Thanks in advance!!! ...Show All
SQL Server Getting Started
hey, I am 100% new to useing SQL server 2005 express/SQL server, and when I installed it I only had 3 options I could chose from in my start menue for this program: Server configuration manager, SQL server and error usage reporting, and SQL server serfuace area configuration. And what I want to do is make a database for a website I am making, with files that can be downloaded and user account info(passwords and usernames) but I dont know what to do, what can I do to do this Had the same problem after about 2 hours found this link, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=246872&SiteID=1 hope it helps ...Show All
Visual Studio Complex automated build environment, conditional dependency resolution, multiple SCC branches
I'm trying to set up a fairly complex build environment consisting of multiple configurations. The details for this environment are as follows: I need to have two branches of source code for a project in our SCC system. One for current stable code, ready for release to customers, another for "bleeding-edge" code containing our latest and greatest fixes and features. I need to build each branch independently, but using the same VS Project regardless of what branch of code is being built. This product that spans multiple projects, most of which are evolving independently and some of which are shared among other products ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException Exception Message: TF26038: Field type for Microsoft.VSTS.Common.Priority does not match the existing type. It was Integer, but now is String. ...Show All
Visual Studio Tools for Office Event firing problems in Project 2003
Hello, I am having problems with something that should be very simple. I want to implement some VBA code to run during the Project_BeforeSave event and I experience the following: I create a new project plan. I add test code (just a msgbox) to the event handler for the corresponding Project object. I save the plan and the code fires as expected. I repeat this N times and it always works. I close Project. I re-open the same project plan as above. I save the plan (with or without changes made) and the event code does not fire. I open the VBA editor and the code is intact. No matter what I do now, the event code never fi ...Show All
