Angelvs's Q&A profile
Visual Basic vaildate email address
Hi guys, again probably something simple, but I'm writing a form in which I need to control whether an email address is valid (contains @ symbol) any ideas how I can do that thanks, chris (sorry for asking really dumb questions - but I'm trying to unstupidify myself) Hi The most logical answer would be to use a regular expression to determine if the entered value is a valid email address. However, if you are only interested in determining if an @ character has been entered in the text then you could use the IndexOf method of the text box. Maybe on the Leave event, something like: If Te ...Show All
SQL Server SPIDs blocking itself
Running sp_who2 on our SQL Servers during peak time (where more data come in), that the same spid is displayed multiple times and some of them blocking itself. DISKIO and Lastbatch on all these will the same, while the CPUTime are different. This is how the result of sp_who2 looks: SPID Status BlkBy Command CPUTime DISKIO LastBatch 92 Sleeping .& ...Show All
Visual Studio Team System How to assign state transition to certain roles?
I've been customizing my own template based on the MSF Agile one. I created three new project user groups (in addition to Contributos, Build Services etc) called Business Analysts, Developers and Testers. How can I limit the work item state transition to individual roles For example, I'd like to allow only Developers to move a work item from Active to Resolved. There are two attributes you can use on the TRANSITION element: for - restrict the transition to a specific group not - disallow the transition for the specified group. e..g. <TRANSITION from="Active" to="Resolved" ...Show All
Visual C++ where can I include the object/libray modules(opengl32.lib glu32.lib glaux.lib ) in vc++.net?
In vc++6.0 when I want to use OpenGL in my application,I can link opengl32.lib glu32.lib glaux.lib in the link of project settings of Visual c++ 6.0 ,but I want to know where can I include the above object/libray modules in vc++.net Thank you very much! Hi, The steps are as follows; 1. Look for Solution Explorer. 2. Right-click your project (not solution). 3. Open the Properties box. 4. Open the Configuration Properties. 5. And select the Linker item. The linker item has many options. However, you can find the right option very soon. Hope this helps. ...Show All
Windows Forms How to prevent form closing when datagridview errors exist?
Hi -- I've got a form with a datagridview on it. The datagridview allows users to add new rows. When the user adds a new row but doesn't commit it (by moving to a different row) and then clicks the "X" button on the form, I only want the form to close if there's no errors on the newly-entered row. If there are any errors, I don't want the form to close. How do I accomplish this I know I can trap errors in the RowValidating and DataError events of the datagridview but the form is still allowed to close. Thanks in advance, Bill Yes, but how do I know in the OnClosing event that the grid has a ...Show All
Windows Forms Signing an IE Control
I am stumped... My problem is I have a Windows Control I am creating in .Net, I have put it in an HTML file and everything works fine the problem I get is when I try and sign the control like such: [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyName("")] [assembly: AssemblyKeyFile("acmeKey.snk")] Where acmeKey.snk is a Strong Name I created with SN utilit ...Show All
.NET Development ODBC drivers in 64-bit.
I tried to port some code to 64-bit that uses ODBC to connect to the DBase driver but get the message "Data Source not found.". It appears that this driver went away in 64-bit as part of JET (Can anyone confirm this ). Anybody know if there are plans to provide a replacement or if there are any 3rd parties vendors currently providing a 64-bit driver for DBase What about ADO/ADO.NET providers Thanks! The Jet database engine was not ported to 64bit. These drivers all depended upon Jet database engine, so they were not ported to 64bit either. There are no plans to port Jet da ...Show All
.NET Development Creating our own datasource
Could We create a structure so that it could be binded as a datasource to control who supports databinding. If yes Could any body provide me a sample (with code) of creating our own datasource in C#.That is i don't wan't to bind to dataset ,xml etc I wan't to create my own datastructure.What I have to do. Hi! Create any class (structure is bad solution) and declare there public properties (they will be bindable). Like this: public class Person { public string Name { get { return _Name; } set { _Name = value ; } } public string Phone { get { return _Phone; } set { _Phone = value ; } } ...Show All
Windows Forms how to implement a DataGridViewComboBox's SelectedValueChanged event?
Is there any way to implement a DataGridViewComBoBox SelectedValueChanged event really need it Hi Ronin, You should listen to the DataGridView.EditingControlShowing event. It exposes the ComboBox control used for editing (in e.Control). In that event handler you can start to listen to the SelectedIndexChanged or SelectedValueChanged event of the ComboBox. You can unhook the event handler in the DataGridView.CellEndEdit event. Thanks, -regis Microsoft DataGridView Developer This post is provided "as-is" ...Show All
SQL Server Script Formatting Options.
In SQL Server 2000 there is a Script Tab on the Options. This allows you to turn off delimiters "[", remove collation ...... as defaults. Where is this funtionallity in 2005 Thanks, ...Show All
.NET Development Hiding DataGrid Rows
Anybody know how to hide rows in a ADO.Net datagrid Senario: If the user checked the CheckBox on the form it would hide the rows in the grid containing a particular value in the field Steve David, Are you still out there I'm trying to implement your suggestion however, since you’re an ADO.Net Program Manager. I have some serious problems with my network based local ADO.Net application but before I describe them I’d like to know if you still subscribing to this thread. The major (overview) problems include: expression to complex error when trying to update DA, the DA w ...Show All
Visual C++ How could i pass a structure as CmdLine parameter while using CreateProcess?
Hi all, While i use CreateProcess( LPCWSTR pszImageName, LPCWSTR pszCmdLine, LPSECURITY_ATTRIBUTES psaProcess, LPSECURITY_ATTRIBUTES psaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID pvEnvironment, LPWSTR pszCurDir, LPSTARTUPINFOW psiStartInfo, LPPROCESS_INFORMATION pProcInfo ); I want to pass a structure as second parameter(pszCmdLine) in this function. But somehow child process can't correctly get the structure! Should i do anything like "cast" or.. before i pass it thanks for any advice! Wh ...Show All
Visual Studio Tools for Office Can not add Msosec.dll to the fully trusted assembly list
Hi All, Following the "How to: Grant Permissions to Documents and Workbooks in Shared Locations", after performing the step 5 (click Select) in "To add Msosec.dll to the fully trusted assembly list" I've got an error message, saing:"Unable to add the selected assembly. The assembly must have a strong name (name, version and public key)." Any suggestions would be greately appereciated... Boris Yes, Misha! That was it. Thank you BTW, the correct command should contain the FULL PATH to the assembly, like this: >caspol -m -af "G:\Program Files\Microsoft Office\Office11\Addins\Msosec.dll" Boris ...Show All
Visual Studio Full MSDN local install for VS 2005 incomplete
I have recently installed Visual Studio 2005 and am having trouble with the local Help functionality. Local help is missing a host of very basic keywords and functions such as fprintf, #include, #define etc. (although other things are available, such as the STRCONV() function). I can click on a keyword, press F1 and be directed to online help, which always has the information I need. But if I search for the same item in the Index pane of local Help, I get a No Topics for Index Entry error and am told to click on one of the child elements. This occurs even when there are no child elements to click on. And I am not directed to online hel ...Show All
Visual Studio DSL Tools for RTM?
Is there any words out yet when we'll be getting Microsoft DSL Tools for Visual Studio 2005 RTM The concepts around Software Factories are very interresting and we're investigating different ways of implementing some of it's aspects. Especially interresting is the ability to define own custom DSLs and make designers for them within Visual Studio 2005. Just one quick question, is it possible to edit/manipulate the Class Designer's code generation I'd like to improve the default properties generated by the Class Designer (make them include a real private field instead of throwing Not Implemented exception). Regards, Sondre ...Show All
