GiovanniP's Q&A profile
Visual C# How to run 2 Windows Forms at the same time??
Hi, The language that I am using to do my work is Visual C#. Here is my problem. Under Console Applications, I have created 2 Windows Forms and would like to run both of them at the same time when I run debugger mode. How do I go about doing that How do I use Application.Run 2 Windows Form hi, the main idea here is that to change the form default location you have to set the start position property Form1 f1 = new Form1 (); f1.StartPosition = System.Windows.Forms. FormStartPosition .Manual; f1.Location = new System.Drawing. Point ( 0 , 0 ); Form2 f2 = new Form2 (); f2.StartPosition = System.Windows.Forms. FormStartPosition .Manual; f2.Location = new Syst ...Show All
Visual Basic Variable in Resouce Name?
I have several images called rt_#.bmp as a resource for my app, where # is a number, -1 though 15, i was woundering if ther was a way to use a varibale to represent the # in caling for it, so i could do something like this: Dim num as integer = 12 picBox.Image = My.Resource.rt_ & num but where instead of making it equal 12, it would equal a value read from a file, but using the code i used above gives a build error so it their a way to use a variable in a resouce name You can try something like this. (And CType the return value to the appropriate datatype.) My .Resources.ResourceManager.GetObject("rt_12") ...Show All
Smart Device Development How to Deploy Files to a Sub-Directory?
Hi all, i am testing a WinCE application that i wrote by deploying it in the WinCE emulator. This application uses a number of bitmap (BMP) files, and they are deployed by setting their Build Action as "Content". How can i have the BMP files deployed to a sub-directory instead of the main application directory E.g. My application is deployed to "/Program Files/TestApp/" on the emulator, and all the content files are deployed to that same location. However, as i have quite a large number of bitmap files, i would like to deploy those to a "/Program Files/TestApp/bmp/" instead. i could not find a configuration to specify where to deploy a certain file to. Any advice, please (Oh BTW, i'm using MS Visual Studio . ...Show All
Visual C# How to store a password?
I need to build a program that will require a password to open. This program will be something like storing other secret information. So now the problem is how to store the password that is required to open the program I can encrypt and store the password in a file and check if the password is set or not each time the program starts, and ask for the password if the password is set. But then if someone deletes or edits the password file, then I'll get into the problem of program not asking for the password or the password mismatch. So can anyone suggest me the better and secure way to store the master password required to open the program IS there any professional level solution to this I mean the method that is used by the commercial softw ...Show All
Visual Basic Dataset .vb file Disappearing
The following has occurred several times on my system: In my program, I have a dataset called Cornerstone.xsd While programming, an error occurs and VS 2005 shuts down. When I reopen, VS says it can't find the .vb file which houses the underlying data definitions, etc. When I check the folder, the file has disappeared, and the project won't compile. Any idea what would cause .xsd files to get messed up Thanks. Just a followup, I found the .vb in the trash can. How in the hell did it there Is there a quirky VS 2005 function that deletes files Weird. LC ...Show All
Visual Studio Express Editions How do i create a new Type?
i need to create a type Color3(byte r, byte g, byte b). so that i can do "Color3 visgroupColor;". yet i'm finding it a struggle to get any info on how to go about doing this. i also need to do Vec2, Vec3, Vec4. so if i can do Color3. the others will no doubt be done the same way. Hi, Why can't you use the standard color class Color c = new Color (); c . B = 10 ; c . R = 200 ; c . G = 0 ; To define a new type you need to create a class. ie: public class Color3 { public Color3 ( int red , int green , int blue ) { //... } //... } You might want to read a book on object-oriented programming. Regards, Charles ...Show All
SQL Server Limitations in Report Builder?
I'm using Report Builder. I have a NameAddress entity that I want to have printed on the report. There is only one "Drag and drop column fields" box on the "design report" screen. Every field I drop in there goes from left to right. Is there a way to reposition the headers/fields, so that I can have something in the following format: First Name: xxxxxx Last Name: Address 1 xxxxx Address 2 xxxx City: xxxxx State: xx Zip: xxxxx Everything I drop in there goes from left to right. I want to position things "anywhere" on the screen, and be able to split the column headers apart from the data. Basically, how do I get this tool to work like access report designer. Just a simple acc ...Show All
.NET Development SqlDependency and Stored procedures
Hi all, When using SqlDependency on an SqlCommand using command text, everything works as expected, I get a notification as soon as the data in the table changes. When I use a Stored Procedure instead, I always immediately get a notification after executing the SP without data being changed. As soon as I reissue the command, I again directly get the notification. Please see the following code: (Table is named Test with one column named Col of type int.) Correctly working code: using ( SqlConnection conn = new SqlConnection ( this . connectionString )) using ( SqlCommand cmd = new SqlCommand ( "SELECT test.col FROM dbo.test" , conn )) { SqlDependency depend = new SqlDependency ( cmd ); depend . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. imagebox
is there anyway i can get a picture with the format .dds in a picturebox or is there any other way i can show a dds There are tutorial projects in the Feb 07 DX SDK that will show you how I believe. Download it here . ...Show All
SQL Server Outlook 2003 closes when you press print?
when you press print in outlook 2003, outlook closes. Any Help why by the hell did you posted this question in the " .NET Framework inside SQL Server " forum :-) ...Show All
Visual Studio Team System How to modify email template sent via Project Alerts
I want to be able to modify the email template that states that a build was successful or not that is sent via Project Alerts Specifically, I want to be able to add a link to a report that is run via the daily. Can I do this Where can I find the template and how do I modify it Thanks, Staffan This worked me : I added this to : BuildCompletionEvent.xsl found in C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\v1.0\Transforms Code added: <tr> <td>Daily Changes Report:</td> <td> <a href=" file://\\dalweb01\MSS_DROP\Reports">Change Sets</a> </t ...Show All
.NET Development c# sending records to webpage using Inet??
this function should help me sending records to webpage and waiting for response from it .. the response from web page write to me number and this number tell me the situation if the records is sent successfully or there is some validation error >>> this is the code for the function private void Send_Record( string id, string name, string age, string gender, string number, string dob) { string URL = "http://localhost/web/WebForm1.aspx username=123&password=123"; string Result; try { URL = (URL + ("&id=" + (id + ("&name=" + (name + ("&age=" + (age + ("&gender=" + (gender + ("&number=" + (number + ("&dob=" +dob))))))))) ...Show All
SQL Server Cross Domain Windows Endpoint Authentication?
Hi There I have service broker working 100% with an initiator - forwarder - target, all in the same domain using windows authentication on the endpoints, for all instances' the sql server service run under the same domain account, which in turn is granted connect on the various endpoints. This all works 100% However i have a scenario where the initiator will be in a different trusted domain. I need to know if i am correct in thinking that the initiator sql server servcie account can run under DomainA\sqlservice, the target instance sql server servcie can run under DomainB\sqlservice, then on the forwarder i simply grant connect on the forwarder endpoint to both DomainA\sqlservice and DomainB\sqlservice. Is this correct, will th ...Show All
SQL Server SQL Server 2005 Book Recommendations?
Hi, I am trying to determine a couple of books that will help me understand SQL Server 2005 from a few of perspectives: Optimizing databases, specifically from SQL 2000 - I have a recommended book Pro SQL Server 2005 Database Design and Optimization Developing SQL Server 2005 based applications using VIsual Studio 2005 and .NET 2.0 - I have been unable to narrow down to a specific book here. I learn best by example, so I was hoping for a book that basically goes through implementing a "real world" project from scratch to finish. I am going to be using the full-blown enterprise edition of SQL 2005, not the Express Edition; but a book that uses the Express Edition trumps any other book, I would be open to it. Any suggestion ...Show All
SQL Server Replication Timeout Issue
Greetings! I am running into this error when running Replication: The response message was received from 'https://replia.websitename.net/replia/replisapi.dll' and is being processed. (f) The process could not connect to Distributor 'OURDATABASE-DB'. (f) The process could not connect to Distributor 'OURDATABASE-DB'. (f) Unable to complete login process due to delay in opening server connection ******************************************************* 01/11/2007 18:26:09 - Error during FINAL DB Replication. The process could not connect to Distributor 'OURDATABASE-DB'. I am running Replication on a Windows XP Pro laptop, with 1 GB of RAM, 1.83 GHz CPU. Any ideas, suggestions and/or help would be appreci ...Show All
