Steven Bone's Q&A profile
Visual Studio 2008 (Pre-release) Windows Forms and WPF
Okay, I am using Visual Studio 2005 Team Edition for Software Developers with .NET 3.0 RC1 and Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP. When creating a new VB.NET Windows Forms project and then adding a WPF Window to the project, it is unable to build. Resulting error is "Name "InitializeComponent" is not declared" within Window1.xaml.vb. I performed this as a test, as I am trying to add WPF windows to an existing project. I have a large existing Windows Forms project and I would like to add some new XAML / WPF windows for our new features and eventually migrate the older interfaces to WPF. Does anyone have any solution to this issue Is there anything I am mi ...Show All
.NET Development Sending emails in windows app C# 2.0
How do you send an email from a windows app in C# 2.0 What classes do I need to use Does any one know how to make an executable file for a windows app Hi, meNu Please check these two threads on the topic, you'll find the answer: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=928163&SiteID=1 Thank you ...Show All
SQL Server Can/should I put SP1 on SQl 2005 Evaluation version?
This will become a recommendation for my customer; we are struggling with performance on this new install which is temporarily done with the Evaluation version and I see a Service Pack has been published. Please advise ...Show All
Visual Studio Tools for Office Outlook 2007 RTM FormRegion editing bugs
I am trying to edit FormRegion in the Outlook 2007 that I was developing in B2TR. When trying to modify it (add more controls) the changes are not saved. Even when trying to "Save As" the dialog is never poping up. By trial an error I've discovered that if I delete the TabControl (MultiPage) from my region it will allow to save it. What's going on Thx... Alex Hi Alex. I tried to repro this problem on my RTM version of Outlook 2007, and I can't get it to repro. I've tried it by dragging a field from the field chooser and by just adding an OlkLabel control to the form. In both cases, after closing and opening the form, the label shows at 8pt Segoe. There was a change made to the persisten ...Show All
Visual Basic Problem Converting VB6 to .NET
Hi, i used the Visual Studio Upgrade Wizard to convert my existing VB6 code to .NET but still lots of "upgrade warning" appeared after the convertion. especially during the convertiong of Array to Object . These are part of my codes, may i know how should i modify it It looks to me like you could just eliminate your StrSplit function and replace referenced to it with the .NET String.Split method: http://msdn2.microsoft.com/en-us/library/system.string.split.aspx Tony ...Show All
Software Development for Windows Vista IBaseFilter
hello everyone I suppose that IBaseFilter has it's own BUFFER(if i'm wrong please tell me) does somebody know how to clear that buffer Douglas Jordan wrote: IBaseFilter is an interface that exposes methods that will work with most any filter, it is not a filter itself. aa ok. thenks. sorry it was dummy question ...Show All
SQL Server Update Query Taking 23 seconds
I am not sure if I am in the correct location or if I should be in the SQL forum but here is my question: I have an update statement that goes out through SQL 2000 through a local linked server to another SQL 2000 server on my machine. When I run the update in Query Analyzer it takes less than a second. When I run it in my C# code using the SqlCommand object and parameters it takes me ~23 seconds. If I remove one of the parameters it goes down to ~15 milliseconds. Has anyone heard of this happening The parameter that I remove is a simple char(10) column that isn't the primary key and is used in the WHERE statement. There isn't an index on the field. 23 Seconds Update table Set column = @val WHERE field = @field AND other = @other ...Show All
Visual Studio Express Editions How to Bind Column with TextBox
Dear All, I want to bind a textbox with a column and then move forward and backward in dataset. so please tell me how to bind a column with a textbox, please write complete code. d s = new DataSet (); adapter = new SqlDataAdapter ( "select * from a" , connection); adapter.Fill(ds, "a" ); this.theTextBox.DataBindings.Add("Text", ds.Tables[0].DefaultView, " columnName "); where ds is your datasource (datatable/dataset) does this help ...Show All
Audio and Video Development HD DVD-Video Specs without the expensive HD DVD-ROM Specs
Is it possible to get the Video Specs alone Yes, you can just buy the Video book (but it's still $5000) http://www.dvdfllc.co.jp/hd_dvd/hd_what.html#howtos ...Show All
Software Development for Windows Vista StateMachine invoke SequentialWorkflow
Hi together, I am using a state machine workflow which invokes another sequential workflow. The sequential workflow gets called but after the sequential workflow has finished, the parent workflow (which is a state machine) switches to the completion state. Example: Sequential Workflow ^ | State A ---> State B ----> State C ----> Completion State As you can see in the sample "State B" invokes "Sequential Workflow". And now when the sequential workflow gets finished, the parent state machine switches to the completion state instead of "State C". Any ideas what's wrong here Cheers, Franz I was just about to post that I want to do the sam ...Show All
SQL Server How to handle report parameters of type DateTime?
I have defined a report parameter StartTime of type DateTime. I would like to use it in my Chart as filter criteria for the date that is retrieved in my query to view the results beginning with the StartTime. So I defined in the Filter Tab: expression: =Fields!Date.Value operator: >= value: =Parameters!StartDate.Value A Preview fails because of different types string and DateTime. It seams to be the parameter that has to be converted to a string. The problem is that the query data are represented in the de-AT format: e.g. 31.01.2006 but even converting the date to a string using localizing formats do not end in a de-AT format but in 01/31/2006, probably because I am using english tools. Is there any easy solution to compa ...Show All
SQL Server set MS SQL 2000 case-insensitive
set MS SQL 2000 case-insensitive Case sensitivity can be controlled through collation settings. Here's the best explanation I've seen: If you are using SQL 2000, you can change the default database collation with ALTER DATABASE: ALTER DATABASE MyDatabase COLLATE SQL_Latin1_General_CP1_CI_AS Note that a column collation is determined when the column is created so changing the database setting will not affect existing tables. You'll need to alter existing columns to the desired collation or recreate the tables. The collation used for identifiers (table names, column names, etc.) will take affect immediately. Thanks, Sam Lester (MSFT) ...Show All
Visual C# MessageBox.Show() - specify location of where box should pop up?
I'm calling a MessageBox, and would like it to show up in the center of the form that called it, rather than the center of the whole computer screen. Is there a way to do this It can be done with VB. So I'd imagine C# will also do it. Not "easy" tho... http://vbnet.mvps.org/ If you do a search for "messagebox" at the above url.....the first item returned is the VB code to do it. good luck. ...Show All
Visual Studio Team System Feature request - Show labels in the history viewer....
We were trying to determine today when a file was labeled, this was not easy to do in the UI, showing the labels as a line in the history viewer would be very useful. Thanks, Jim It might be better to log this suggestion at Visual Studio and .NET Framework Feedback . ...Show All
.NET Development Retrieving specific DSN configuration data
I am writing a C# WinForm application to work with ODBC DSN configuration data. My form has a text box that will take a particular DSN name as a search value. I want to be able to do the following two things: #1) Retrieve a specific DSN by name, i.e., HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ MyDSN , iterate through ALL the "name", "data type", & "value"s associated with that particular DSN and write the data to a file. #2) For disaster recovery purposes, retrieve this information from the file and recreate the DSN using this data. I can see several DSNs via LocalMachine\Software\ODBC\ODBC.INI\ODBC Data Sources. However, I want to retrieve just a specific DSN by name and acquire its val ...Show All
