davidhart_home's Q&A profile
Visual Studio Express Editions Changed data saved, however old data retrieved.
If I open SQL Express (in Server Explorer) I can see the value "Foo" in the database table exactly where it should be. I can run my program and retrieve the value "Foo" from the local SQL Express database and display it in the form. I can change the value from "Foo" to "Bleh" on the form and push a button that saves it to the database. While the program is still running I can open the SQL Express database in Server Explorer and see that the new value "Bleh" is stored in the database. However, if the program immediately accesses the database again it will retrieve "Foo" ...Show All
Visual C# Why won't my variable initialize in an overriden function?
OK, I'm having a very peculiar problem here. I've got a modified DataGridViewTextBoxCell where I want to override the GetFormattedValue function to handle complex types in my data source. The problem is that I can't seem to initialize simple datatypes inside this overriden function. Here's the code: protected override object GetFormattedValue( object value, int rowIndex, ref DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context){ Citation tempCitation = new Citation (); ARTData tempARTData = new ARTData (); ...Show All
.NET Development system.net.mail class question
I was checking out the new System.Net.Mail class and noticed the LinkedResource...does anyone know of an example using a LinkedResource How does one reference the LinkedResource from the email body thanks in advance Hello, I've tried this. I don't get any errors, but when I receive the e-mail it is not like in the html file. The pictures are attached in the mail, but i cannot see the e-mail like the html file. Why is that Thanks ...Show All
SQL Server Categorise Bar Chart
How to create a bar chart by setting the static category myself I mean, for example, I have a dataset which record the number of coins different people have. I would like to draw a bar chart which shows 3 bars with the following 3 different categories: 1) n < 5, 2) n >= 5 and n <10, 3) n>=10. where n is the number of coins. How can this be expressed in the categories grouping Thanks in advance. Sorry, this is currently not directly supported through chart groupings. You would need to write the query (or add a calculated field on the dataset) so that you get this categ ...Show All
Visual Studio Team System Install ok but error messages connecting to TFS from client
I have installed a single server (WORKGROUP) setup of TFS without any issues in the installation routine The only non-standard selection I made was not to enable the Team Foundation Alerts. However when I try and connect a TFS client, I get the following error message in the client window :- TF30291: There was a problem on the server of unknown cause. See the Team Foundation Server event log for details. Time 2005-10-14T10:09:53:562 Looking in the event log on the TF Server I get two messages :- Type : Error Event ID:3000 An unexpected condition has occurred in a Team Foundation component. The information containe ...Show All
Software Development for Windows Vista Receiving message through window
Hi, I hope I am posting to the right forum. I want to perform some specific task when the system returns from hibernation. I found out from MSDN that I need to make use of the WM_POWERBROADCAST message that is generated. http://msdn.microsoft.com/library/default.asp url=/library/en-us/power/base/wm_powerbroadcast.asp It says that a window receives this message through its WindowProc function which has the following prototype: LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_POWER WPARAM wParam, // power-management event LPARAM lParam // function-specific data ); I am developing a library ...Show All
.NET Development Data Binding with hieracherial XML file
Hello, I am having a lot of trouble doing what appears to be a basic task, hopefully someone here can help. I have an XML file that contains nested information for a quiz. Here is a sample of the file: <Quiz> <Animal> <Lesson Name="Lesson 1, All About Monkeys> <Question Text ="This is question 1"/> <Question Text ="This is question 2"/> </Lesson> <Lesson Name="Lesson 2, All About Chickens> <Question Text ="This is question 1"/> <Question Text ="This is question 2 ...Show All
Smart Device Development vpn pocket pc
Hi. Sorry for my English. I have a Qtek 2020i with windows mobile 2003 SE. I can connect with a host by vpn, but I can see folders or files in the host. I have same configuration in a laptop. I can see folders in the host from the laptop if I don't enable a check called " use remote gateway" that is in vpn configuration of the laptop. Where can I deselect this check in the qtek Thank you. Victor Garzon. Spain. Please see the following post on where to post non-VS 2005 questions http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=223605&SiteID=1 ...Show All
Visual C# Want to sort strings in a collection array, any idea???
Hi, I am a beginner in C# and want to sort the strings in a collection array. Can you please give me which collection array class one will fit with my requirement Thanks, vcboy The easiest way is to use generics I guess and it's very efficient and strongly typed..here is a sample code take a look at it Add this to the namespaces using System.Collections.Generic; List < string > ls = new List < string >(); ls.Add( "Small" ); ls.Add( "Large" ); ls.Sort(); foreach ( string s in ls) { MessageBox .Show(s); } Good Luc ...Show All
Visual Studio Express Editions one click deploy and file positions
I wrote a vb2005 express app that open an oledb connection to an access db trough a connectionstring defined in the sub main() Module ModMain Public dbcon As New System.Data.OleDb.OleDbConnection Sub Main() Dim Main As FrmMain Dim connstr As String Try Main = New FrmMain connstr = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=db\delta.mdb;Mode=Share Deny None" dbcon.ConnectionString = connstr dbcon.Open() ....... when i publish my application, it creates a setup which include the db in the correct folder, but when I install the setup, it plac ...Show All
Visual Studio Team System Newbie needs sample "clean-build" script to study and run
Are there any samples of "clean build" scripts that I can run prior to allowing code check in (The code needs, at least, to compile withtout errors or it can't go into source control). I was unable to locate this type of script on the TFS RC disk. Also, where is the script language used documented TIA, Barkingdog There are no samples for this yet. We are comtemplating one but it will take time. The build script here is MSBuild which is the default build engine in VS 2005. There is lot on MSBuild on the web but you may want to start from http://msdn2.microsoft.com/en-us/library/wea2sc ...Show All
Visual Studio WinFX extensions not removed by auto removal tool
I would like to draw attention to the fact that the auto pre-release uninstall tool provided by Microsoft does not remove these products if they were installed on the client computer: WinFX extensions for Visual Studio beta 1 WinFX SDK beta 1 However it did remove WinFX runtime beta 1. This is highly inconsistent behaviour because, The SDK is useless without the runtime. WinFX extensions cannot be removed AFTER the auto uninstall tool has completed removing the other products as it fails with the message: "A network error occurred while accessing 'C:\WINDOWS\Installer\vsextwfx.msi' ". Trying to uninstall by running the original .msi ...Show All
SQL Server Missing Distinct Count option in Measure's Aggregate Function property
I am trying to get a "distinct count" aggregate function specificed for a measure that is non-numeric. Is this possible When I use the cube editor, the Distinct Count appears in the drop down list only when the measure is numeric or datetime. If the measure is varchar, the Distinct Count option is not there. Any thoughts Hi, Did you get any reply and/or solution to this problem. I have similar issue. Would appreciate if you can share. Thanks ! ...Show All
Visual Basic ScreenSaver Preview Mode
Hi all, I'm making a screen saver app. All is well, aside from when drawing inside the preview window, how do we know when to stop the app from drawing here's a sample of my code. The Sub Main() is my startup sub. Public Sub main() Dim args As String = Command() If args = "" Then frmSS.ShowDialog() Exit Sub End If &nb ...Show All
SQL Server Dynamic connection manager file name
Hi There This should be an easy one i hope. I need to dynamically change the file name of my destination flat file connection everytime the package runs, obviously i do not want to edit the config file everytime. I think the best way to do this is by a script taks that sets the connection manager filename property with a variable that i dynamically populate. Is this the right way I just want to be sure that there is not an easier or better way to do this Thanx Yes, that sounds like a good approach. Don't use a script task though (because its not possible to do it with a script task), u ...Show All
