Alin Constantin - MSFT's Q&A profile
Visual C# 'esc' key ?????????
I want to exit a c# command line program that i made by pressing only the 'esc' key. How can i do that thanks (make it simple!!!!) thank you... this is the code that i'm going to use: Console . WriteLine ( "\t\tPress Esc to exit or ENTER to continue" ); ConsoleKeyInfo key = Console . ReadKey (); if ( key . Key == ConsoleKey . Escape ) Environment . Exit (- 1 ); once again thank's.. ...Show All
Smart Device Development Extending Context menu for Windows mobile 5.0 Samrtphone Contacts
I have a Cab project which extends contact's contextmenu items. But When I installed the same cab file on smartphone it installed successfully but contextmenu items remains same Could there be any change in the installation file. this is my ini file to built the cab file [Version] Signature = "$Windows NT$" Provider = "MyProject" CESignature = "$Windows CE$" [CEStrings] AppName = "MyWireless" InstallDir = %CE1%\%AppName% [Strings] NOW_PPC_Dir = D:\Projects\MyOffice\OriginalPocketPC\ ...Show All
Visual Basic GAC'd dll does not work for an application.
Hi, I have 2 windows forms applications which uses all the required functionality from a dll which is GAC'd. They both use the dll in the same exact way just different classes in the dll. I am installing the apps using the setup and deployment project msi created by visual studio (2003). The problem I am facing is that while the first app runs fine using the GAC'd dll the second app refuses to run (both the apps have the exact same dependencies). The second app only runs when the common dll is copied into the application folder. The error that I am getting when I try to run the app without the common dll in the folder is: MyApp.exe - Common Language Runtime Debugging Services Application has generated an exception that cou ...Show All
.NET Development Timeout exception after the first request
Hello, I've got a problem that is pretty difficult for me to nail down. I'm developing a C# WinForms application using Visual Studio 2005. I have a form in the application that is acting as a feedback form. It has a few text fields, and clicking on a button will submit the information to a web page for storing in a database. The button is a "Next" button, which shows a label where I display some information about the connection and submission process. Once that finishes, the user can hit "Back", fill out more feedback, and hit "Next" again to submit it a second time. Or, they could have just closed the form and pressed the Feedback button to make it show again. Regardless, however the second reques ...Show All
Software Development for Windows Vista Roles provider
Where do you stablish for a workflow which role provider to use in a HanldeExternalEventActivity I did a lab where roles are used, and they work. But I cannot realize where the provider is set. Thanks in advance Ok, thanks for your time. Now I got the idea. The role itself is wich provides the mechanism for authenticating users. Bye ...Show All
Visual Studio Express Editions Making the Exit Button not shut off the application
Hello I'm a beginer at VB Express and need HELP!!!!! I'm designing an application that does not allow the user to click the exit button. You know, if you click on it it goes beeeeeeeeeeeeeeeep! It has that fade away effect but you can see it. How do I make the exit button not exit I'd appriciate code and responses THANKS!!!!!!!!!!!!!!!!!!!!!!!!! I used this code in an aplication that I am building. I have an MDI with several forms that open inside of it. When any of the forms that I have set the code: Private Sub Form_FormClosing(Byval sender as object, Byval e as system.windows.form.formclosingeventargs) Handles me.formclosing e.cancel = true end sub the forms perform as expecte ...Show All
Windows Forms Setting default values in bound controls on a form
How do you set default values for bound fields in windows forms There are times when specifying the default value in the underlying dataset is insufficient. The fields are bound to a binding source which has an AddingNew event where you can do something like: e.NewObject = <something>. The something however needs something of the same type or else you get an error message of "Objects added to a BindingSource's list must all be of the same type". I assume this is a DataRowView except I don't don't know how to create one in this context. One way is to use code like this: DataRowView rowView = dsNorthwind.Customer.DefaultView[0] but this implies the row is already in the underlying dataset except it isn't becaus ...Show All
Windows Forms Clear Results...
Hello, I am trying to clear my results from my dataGrid...i have the following code but it breaks on the last bracket in the code for some reason but here is the code, check it out private void button3_Click( object sender, System.EventArgs e) { //try //{ this .theDataset = new DataSet("Customers"); this .theDataset.Tables.Clear(); this .theSQLDataAdapter.Fill( this .theDataset); this .dataGrid1.SetDataBinding( this .theDataset,"Customers"); //} //catch(Exception eq) //{ // MessageBox.Show(eq.Message.ToString()); //} } } } seems like im getting confused, someone is replying on clearing out and refilling a dataset and im thinking about something els ...Show All
Visual Studio Express Editions Visual Basic 2005 Express Edition INSTALATION HELP Needed
When I install, it prompt "Fail to download - Microsoft Visual Basic 2005 Express Edition - ENU" . My machine used to have VB6 which was uninstalled using auto-uninstall tools in support page (Visual Studio 2005 express). And I've try to create a blank folder - "C:\Program Files\Microsoft Visual Studio 8 - Microsoft Visual Basic 2005 Express Edition - ENU". But it still not work. Help !! I agree, I have seen lots of problems with Virus detection programs and slow or bad network connections interupting the downloads when installing the web downloader. What I always suggest to everyone is to try the maual install and cut there own CD Image. If that does not work y ...Show All
SQL Server Basics of T-Sql and XQuery
Pl let me know 1)the different between those two. 2)when to use and 3)anyone is Microsoft specific 4) for and open xml can be used only in xquery 1) XQuery is for querying XML fragments and T-SQL is a language that augments SQL for querying relational data. 2) You should use SQL for querying relation data and XQuery for querying XML within your applcation. 3) T-SQL has constructs that are SQL Server specific (i.e declaring a variable, while loops). The SQL part of the language has various Microsoft specific stuff, but we do try to align to the standard. 4) FOR XML and OPENXML are not part of XQuery. These were SQL Server 2000 technologies (still in 2005) used for composing and shredding xml to ...Show All
Visual Studio Unable to find manifest signing certificate in the certificate store
Hi all, I changed PCs and moved my VS projects over to the new one. In doing so the clickOnce certs are not valid. I got the "Unable to find manifest signing certificate in the certificate store" when I tried to publish. I got the error resolved by creating a new certificate. Problem is now, when my users try to update the programs, it is telling them that the certificates do not match and the applications will not update nor run. How can I resolve this regards Bill Please review the article http://support.microsoft.com/ kbid=925521 (discusses dealing with expired certification). I believe you are running into the same problem. Thanks, Jay ( jaysh@microsoft.com ) ...Show All
SQL Server Derived Column Transformation Editor Question
Help... I'm having trouble coming up with a valid expression in my derived column transformation editor that tests the input column for NULL and responds something like this: if[message] isNull then "NA" else [message] where [message] is the input column. Thanks! ...Show All
Visual Studio Tools for Office VSTO Excel alternating row
Hi, How can I change my ListObject rows in alternating color I already populated data into my ListObject but, I couldn't find out a way to change that in alternating color. Thanks, Myo Thanks, This DataBoundFormat method helps me out. I found out some formats that make my listObject in alternating color. But, for some cases, like if I want to change the color of some rows which value is under the required amount, this won't work. I try to use with this way : "lstTSearchResult.ListRows[3].Range.Interior.Color = 5" in sheet's activate event. But, it only works for the exact row. I can not change that '3' to a variable. Can you also help me out with this issue Thanks, Myo ...Show All
Visual C++ need a help regarding dwmapi.dll and DwmExtendFrameIntoClientArea function
Dear All, My compiled code asking dwmapi.dll, which is nowhere to find on my windows XP box. using dependency walker, it reports that the "c:\windows\system32\urlmon.dll" is looking for this dll, and the function name is DwmExtendFrameIntoClientArea. I searched internet, and some people say that the IE7 is making this problem. and I am kind of agree, and I have it on my machine. So I need this dll badly, or somebody can give me a way to un-install IE7 quickly Thanks a lot. rcen How is it that there's still no official patch for this problem yet This is still easily reproducible, using nothing but MS software: On an XP machine, download Platform SDK (I'm using Server 2K3 R2, bu ...Show All
.NET Development Shutting down network computers?
I suspect that I once again have someone leeching of my Wireless router again and I can't connect and lock it for some reason. So I thought perhaps I could shutdown the computer who is leeching off my network As a lesson :P There are probably a lot of software out there that could do this but it would be nice to learn how I could create such software. The router is broken so I can't connect to it, shuts down the whole network and requires an restart to fix. How can I get his computers name ...Show All
