Steve Lasker -MS's Q&A profile
Visual Basic Number Only Input
First of all, Sorry of this is a really simple question. I'm a bit of a noob. Is there anyway to make an input box that will only allow the input of numeric characters Thanks in advance. EDIT: The following code was taken straight out of help and was used to allow only numbers to be entered into a textbox. ' Boolean flag used to determine when a character other than a number is entered. Private nonNumberEntered As Boolean = False ' Handle the KeyDown event to determine the type of character entered into the control. &nbs ...Show All
Visual Studio Team System Adding Default web part fails
Using: TFS RC on W23K SP1 with VS2005 on a Single Server Deployment, Sharepoint Services SP1 I've created a MSF for Agile Software Development and I'm trying to add a Web Part from the sites gallery. However this fails each time, irrespective of the webpart I select (e.g. Events, Contacts etc) The error I get tells me that 'An unexpected error has occurred'. I've Googled as much as I could and found one post about upgrading the web.config using stsadm - however I'm still no further to an answer. Anyone got any ideas TIA Scrat The pages and all of the files associated with your site ...Show All
Windows Forms why is this wrong
try { SqlConnection ListTick = new SqlConnection(SQL_CONNECTION_STRING); string SQL_List = "SELECT * FROM Support"; // initialize dataadapter with query SqlDataAdapter myAdapter = new SqlDataAdapter (SQL_List, ListTick); // initalize and fill dataset with query results DataSet myData = new DataSet(); myAdapter.Fill (myData); DataTable table; table = myData.Tables["Support"]; foreach(DataRow myRow in table.Rows) { Tickets.Items.Add(myRow); } ...Show All
Windows Forms multiline datagridview cells?
In beta1, datagridview cells could contain display multiline data by default. In beta2, the data is shown on a single line with some control characters. (1) Can I set the cells to display multiline (2) Can I replace the control characters with something else (eg a double space) to make it look a little more professional Thanks For me it is the contrary case. I would like the datagridview to wrap not only for CRLF, but also for any text that is too long to fit in the cell., but it only wraps the CRLF. (I set the autosizecolumnmode is Fill and the autosizerowmode is All Cells) Anyone can help ...Show All
Smart Device Development "Wait" symbol Windows Mobile 5.0
I was wondering if it was possible to tie into the Windows Mobile 5.0 "wait" symbol through some sort of api I would like to inform the user that their request is being processed without using the progress bar control ( my space is limited as you might guess ). I would like to pop up some sort of indicator; I like the one microsoft uses. Any suggestions You'll need to change the cursor to the WaitCursor. http://wiki.opennetcf.org/ow.asp CompactFrameworkFAQ%2FWaitCursor ...Show All
Windows Forms changing TopToolStripPanelVisible throws a NotSupportedException
the documentation says it "gets or sets", so i have no idea why it is throwing an exception. in the OnLoad event, i have a method that sets the property to false. it doesn't throw an exception there. once the program is running, and i click a button, i set the property to true. the program crashes there with a NotSupportedException, saying that the collection is readonly. the weird thing is, if the property is set to true OnLoad, the problem is non existent when i change the visible property back and forth. so far, i've temporarily fixed the problem with this: try { _toolContainer.TopToolStripPan ...Show All
SQL Server Extending Management Studio
In SQL Server 2005 Enterprise Manager was rewritten and renamed to Management Studio. If ISVs (independent software vendors) could plug their SQL Server tool(s) into Management Studio – creating a single environment for you to work in – which tools do you use that you’d like to see surfaced in Management Studio. Dan I think it would be cool to have PromptSQL integrated into Management Studio to give SQL Intellisense inside Management Studio :-) But then I would say that. ...Show All
Software Development for Windows Vista How to Obtain Fault from child activity in FaultHandler?
How does a child activity obtain access to the Fault captured by a FaultHandler I have a code activity as a child of the FaultHandler. I simply want to spit out the message from the exception that was caught. I tried using the Parent property, expecting that to give me back a reference to the containing FaultHandler, but it was null. The only way I can figure is to add a property to the workflow to store the Fault in through a binding so that it is still accessible to the child code activity. This seems like a really kludgy/indirect way of handling things though. Is there some way more direct, for this specific situation, and hopefu ...Show All
Windows Live Developer Forums Windows Live Expo
The Windows Live Expo API launched last week. Check out the API documentation here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlive/html/winliveexpo.asp Windows Live Expro "Expo is a dynamic social listing service that allows members to find and sell items, discover information, and meet other parties in their area – all for free! With Expo, you can browse and post listings to those you trust, like your buddies, co-workers, and fellow students, or, to all Expo visitors. To much hype ...Show All
Visual Studio Team System Debugging Custom Template Wizard
I am building a custom template wizard as suggested in http://msdn2.microsoft.com/en-us/library/ms185301 How can I debug it Thanks, Pierre Just attach a debugger to the instance of visual studio where your wizard is running. Make sure you have the .pdbs etc, and everything should be fine. ...Show All
Visual Studio 2008 (Pre-release) Styling PathSegment
Is it possible to style an individual PathSegment within a Path object different from the rest Basically what I am looking for is to make one segment dashed and the rest regular. I would prefer not to use separate paths, because it complicates segment joining issues and isn't as clean. If I need to use separate paths, is there a good way to make the joins always "clean". I looked into making my own PathSegment class, but couldn't find any information on it. Thanks. Looks like your really hanging for some input. I can only think of adding a seperate line segment for each dash in the line, with th ...Show All
Visual C# Error CS0554. user defined conversion to/from derived class
I have come across a most peculiar compiler error. When I try to define a cast operator to convert from a base class to a derived class I get this error - apparently according to the help "User-defined conversions to values of a derived class are not allowed; you do not need such an operator." Is this as insane as it appears to be or am I missing something somewhere Of course I need to define a cast operator, how else can the compiler know how to create a derived type from a base type Any explanations appreciated. Dave Interesting thought. I'll need to look back and check on the code and see if there are any ...Show All
Visual Studio Team System One problem in security setting
TFS : Beta3_refresh VS 2005: Visual Studio 2005 Team edition for software developers I create a team project called "TestTeamProject". There is a file in this team project. Its path is $/TestTeamProject/Test/test1.txt. I also create a Team Foundation Group called [TestTeamProject]/TestGroup. and add user (domain\ABC) to the group. Grant the read and check out permission to this group. domain\ABC connect to TFS, and he can check out and undo check out $/TestTeamProject/Test/test1.txt. I remove user(domain\ABC) from the [TestTeamProject]/TestGroup. domain\ABC restart his machine and connect to TFS again. he still can ...Show All
Windows Forms DataGridView inserting records
I am looking for an event in the datagridview, tableAdpater, etc.. that I can use to add a record to the database. Current, my table adapters insert command is set to a sproc. When a user enters a new row in the datagridview, what event should I use to exec the insert command I am using the UserDeletingRow event to prompt the user for deletion verification, followed by exec the delete command which execs a delete sproc (I pass the e.row.cells["primaryKey"].Vaue): this .c_request_itemBindingSource.EndEdit(); this .c_request_itemTableAdapter.Delete( Convert .ToInt32(e.Row.Cells[0].Value.ToString())); I tried the UserAdd ...Show All
Windows Forms Error: DataGridViewComboBoxCell Value is not Valid
Greetings, I am using VS2005 and Sql Server 2005. My database table contains a column (mycolumn) defined as char(10), no nulls, default value blank. This table is added to my dataset with default value blank, default control type is datagrid, mycolumn default control type is ComboBox. I created a sample form and dragged the the dataset table on to the form, a datagridview was automatically created. I changed my columntype to datagridviewcomboboxcolumn (surprised I had to do this since already defined in Dataset), added "one","two","three" to the items collection. The DataPropertyName is set to mycolumn. ...Show All
