Dr_Cuddles's Q&A profile
Visual Basic How can i translate my program?
How can i translate my program to another languages I want that my program will be in English, German, French and Spanish. How do i do it I think think the common technique for this is to put strings in resource files and have a different resource files for each language. and to build for each language The resource editor is located is invoked by Project | Properties | Resources Consider a project named IO with a directory named IO There will also be a directory called IO/MyProject which contains resource files. Resources.Resx and Resources.Designer.Vb If you take a generic string with the name of ...Show All
SQL Server i created a login in SQL SERVER 2005 EXPRESS, but cant login...
create login dave with password='abc', default_database=tempdb when i use this account to login my sql2005, i got Msg 18452, Level 14, State 1, Server DAVID-398113F7C\SQLEXPRESS, Line 1 Login failed for user 'dave'. The user is not associated with a trusted SQL Serv er connection. why You have probably installed the server such that it only allows Windows Authentication, so you cannot connect with a SQL login. See the "How to: Change Server Authentication Mode" topic in Books Online for additional information on how to allow SQL authentication. Thanks Laurentiu ...Show All
Windows Forms Reordering Columns in DataGridView Programmatically
Hello. I need to create different "views" of the grid, and depending on the view selected, the columns of the grid need to be reordered. Is this possible Thanks! Griffin Yes it is! - Just change the DisplayIndex property of a column and the column will reorder. Note that I'd recommend doing this on a build after Beta2 build since we have made some improvements in this area. Hope this helps! -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio Msbuild treat \r as \n ?
I'm testing to see whether msbuild can replace nmake. project file <Project xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <Target Name="test"> <Exec Command="test.exe"/> </Target> </Project> test.exe only print number. using System; namespace test { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { &nbs ...Show All
.NET Development Reading XML using XMLTextReader
Hi all, I'm a dev newbie and need some assistance with something i'm working on. I need to read through an XML file and output the values of only certain elements. Say my xml file looks something like this: <element id="1"> <text> Blah blah blah </text> </element> <element id="2"> <provide name="Access"> <defaulttext> Blah-di-blah </defaulttext> </element> So basically i will have a form where users can pick an a number, and this will be passed as a paramter into a function that reads through the xml file - so if you picked 1, then it will look for element ...Show All
SQL Server I hate this
I'm migrating a fu... dts to SSIS. That's fine. I've got a derived column task for stuff as cdbl(DTSSource("Col014") /100). But how the source plain file have a lot of columns suddenly I find this: Function Main() Fecha=Right(DTSSource("Col014"),2) & "-" & Mid(DTSSource("Col014"),5,2) & "-" & left(DTSSource("Col014"),4) If IsDate(Fecha) then DTSDestination("FechaOp") =Fecha Else DTSDestination("FechaOp")=null End IF Main = DTSTransformStat_OK End Function So that 'Derived Column' is useless at all for to encompass this rule unless t ...Show All
Visual Studio Express Editions How to use 101 samples
I downloaded 101 samples of visual studio 2005, but there is no project or solution for me to open by visual studio 2005, who knows how to use the 101 samples. thanks. You have posted this question in C# General also, i have replied there. Find this thread here: How to use 101 samples of Visual Studio 2005 . I will close this one. ...Show All
Visual Basic Programmatically Navigating a website
What is the best way to programmatically navigate (have the program click on certain buttons/enter text) a website using the webbrowser control ...Show All
Visual Studio Team System Internet Proxy Server/Settings Issue
We ran into two issues both related to our use of an internet proxy server. On install of TFS Beta 3 we got a "Error loading Event Web Services" error at the end of the install. Worked around this by disabling the proxy server setting in Internet Explorer. Then on a client machine I couldn't connect to the server until I added a local address exception of this form: <machineName>.* Note that we did already have an exception for *.<site>.<company>.com but that apparently wasn't enough. As I mentioned before our admin determined that when the local address exceptions aren't done correctly, the web serv ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException Exception Message: TF26038: Field type for Microsoft.VSTS.Common.Priority does not match the existing type. It was Integer, but now is String. ...Show All
Visual Basic Hiding Parent from the grid ??
Dear Team beside the parent in the grid there is a "+" if it is pressed the details will be shown At the top right of the caption there is 2 small buttons, 1 to goback to parent, 2 to hide parent HOW to make the grid shows only the details directly without doing this steps any idea Thank you very much i'm not sure exactly what control your using but for treeviews it is: TreeView1.ShowPlusMinus = False TreeView1.ExpandAll() ...Show All
.NET Development Adding a new row to an existing table
Hi, I am attempting to to add a new row to an existing access database using parameters. Here is my code (i am a bit of a noob so if you've got any suggestions on cleaning up the code please feel free to critisise!!): private void addData() { try { // Build SQL command for all form input fields using parameters &nbs ...Show All
Visual Studio Express Editions Bug - In Dataset a record picture overwrites the other record picture
Hi all, I've got a table and store an image in a field. The table is sorted in the BindingSource, and displayed in a grid and with details on binded controls, including a PictureBox that shows the image. When I insert a new record that gets a position prior to the one i am lookin at, the current picture gets copied to the previous record. Let me ilustrate that. I've got records with IDs 1,3 and 4. I'm looking at record 4 and insert a new record with ID 2. The picture in record 4 gets copied to record 3. This also happens if a record is edited in a way that alters the sort order. Is this a bug Anyone noticed that So far I've go ...Show All
Windows Forms Problem with DataGridView generating extra Rows
(I have tested this problem with VS2005 beta2 and RC) Hello, I have a form with a DataGridView on it. In my BeginEdit event, I have certain values being programatically set (DataGridViewComboBoxCell's). If you click a new row and have the values be programatically set with the BeginEdit event, without the user actually typing anything in, it gets a little screwy. Basically, if you click the DataGridViewComboBoxCell and click away to a different row without manually setting any values on that new row it will keep calling the NewRowNeeded event (this doesn't cause new rows to show.. YET), and once you DO type a value in and ...Show All
Software Development for Windows Vista Problem with SQLStatePersistence
I added the sqlpersistence service to my Workflowruntime (with a valid connection string). I have two events that i will trigger: SubmitEvent, and ScanEvent.. When I call my submit event the workflow gets to a new state where it is waiting for the scan event..\ At this point the workflow instance is idled. Now when I raise the ScanEvent with the same instance ID i get an error EventDeliveryfailed for the instance ID.. When I look in the innerexception it says the workflow with the instanceid was not found in the persitence store (but when I check the database that instance is there). So I tried to add before raising the scan event WorkFlowru ...Show All
