Rajanish Trivedi's Q&A profile
Visual Studio Using Properties and Call like NAnt
NAnt has a nice feature where you can use a combination of properties and the call task to repeat operations. For example: <target name="target_one"> <property name="A" value="Value1" /> <property name="B" value="Value2" /> <property name="C" value="Value3" /> <call target="ALongProcessWithManySteps" /> </target> <target name="target_two"> <property name="A" value="Value4" /> <property name="B" value="Value5" /> <property name="C" value="Value6" /> <call target="ALongProcessWithManySteps" /> </target> The target ALongProcessWithManySteps would then use ...Show All
Software Development for Windows Vista UIA and WinForms 2.0
UIA team - According to a post on Channel9 , you are working on some guidance on how to implement a UIA provider in managed code for WinForms... are you still within a week or so of it We are trying to make a decision on how we are going to implement UI testing in the next few months. thanks! -rory Rory, please email me at thomaslo@microsoft.com The videos should be online soon but I can help you out in the meantime. Thomas ...Show All
Visual C++ Calls to Form from outside
Hi, Could someone please tell me how I would go about setting a value in a windows form from the "outside". For example, if I want to use some function that is outside of the form, do some processing, and then display the result in the form. I do not want to call the function within the form code. Many thanks in advance! Ljubica Hi, if you want to set a property in the form you can do something like this in the form: public: property bool Running { bool get() { return m_running; } void set(bool value) { m_running = value; } } and then in your other function do: form->R ...Show All
SQL Server How to parse field
I have a table that has a "Problem" field with the following data Customer Service...Jam...Jam 5...Planned Technical Support...WinOnCD...WinOnCD6PowerEdition...Request...Reporting New Drive Sale Made I need to separate this "Problem" field into separate fields the issue1, issue2, issue3, issue4 and issue5 . What would be the easiest way to do so within the SELECT statement I am not sure how the fields are separated. You can use a combination of CHARINDEX, SUBSTRING to get the individual field values. But a better design would be to normalize the data and store each issue as a sep ...Show All
.NET Development Deserialization bugs in C# .NET 2.0 beta 2?
I upgraded from .net 2.0 beta 1 and when I tried to launch the app I was working on I get this error as it tried to deserialize it's settings System.InvalidCastException occurred at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at System.Runtime.Serialization.FormatterConverter.Convert(Object value, Type type) at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) at System.Collections.Generic.Dictionary`2.OnDeserialization(Object sender) at System.Runtime.Serialization.DeserializationEventHandler.Invoke(Obje ...Show All
SQL Server Triggers and Stored Procedures
Help, I have a stored procedure that creates a table, but I also need to have the stored procedure create a trigger on the table. What is the best way to do this Regards, Sean Gahan <nitpick>Well, I have to say that the best way to do this is probably to not do it, though since I don't know what you are doing exactly, I cannot really say. It is usually a bad idea to build tables on the fly, and if it is a permanent table with a trigger, that is even worse. But I digress...</nitpick> Are you doing this as the dbo If so just use dynamic SQL: declare @query varchar ...Show All
Windows Forms I need to run an exe as part of the install
I need to run an exe that installs an ODBC driver for an odd database. How can I get ClickOnce to see this as a prerequisite and run it if the driver isn't installed Something seems to have gone wrong on the web site. I ran into the same problem last Friday and was hoping it would self-correct. I'll be contacting the web site admins today to try to get it resolved. ...Show All
Microsoft ISV Community Center Forums code execution transfer
Hi All, Can any one please tell me how to tranfer statement(code) execution from the present sub-procedure i am in (which is in another form) to the form I open using the DoCmd.Open() Hence i want to transfer code execution to the form i open and when i then finish with that form, i can then transfer execution back to the calling form and carry on executing the rest of the code. when i step through my current form in debug mode it gets to the DoCmd.Open() opens the form and carries on execution in the current form instead of tranfering code execution to the newly opened form! intReply = MsgBox("Please enter a ...Show All
Visual Studio Team System Which versions are compatible with which versions??
As far as I know tfs beta 2 is only compatible with sql 2005 abril ctp is it compatible with sql 2005 beta2 or any different ctp The latest version of tfs which one is July CTP which versions of sql2005 is it compatible with. As long as I know this version has not single server deployment. Is this true For Team Foundation Server Beta 2, use SQL Server 2005 (Dev or Enterprise) April CTP. Single and dual-server installation. For Team Foundation Server July CTP, use SQL Server 2005 (Dev or Enterprise) June CTP. Dual-server installation only. ...Show All
Visual C++ Invoke Intel C++ compiler from VS2005 Pro
I need to compile the Release configuration of DVDx (SourceForge) from VS2005Pro with teh Intel C++ compiler (either 8 or 9 version). The Intel C++ 9 installer is supposed to proceed VS .Net 2003 integration which doesn't work for VS2005. How can I do this integration manually In the latest Intel C++ 9.0.029 a Readme file says that VS2005 will be supported when officially released by Microsoft. So I guess the support should be added soon in a new build from Intel. For now, I reinstalled MS VC++ 6.0 which is supported by Intel 9. I had to hack the dsound.h in DX9 SDK 12/2005 to add (line #301) ...Show All
Visual Studio 2008 (Pre-release) SSPI fails without userPrincipalName, why?
I'm using a netTcpBinding with a self-hosted service running as my own user, with a client of ASP.NET hosted by IIS running as Network Service on another machine. I'm a bit confused on the service/client identity and how it relates to authentication. I find that if I don't specify anything in the <identity> for my client <endpoint> things fail: Error: System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The target principal n ...Show All
Visual Basic VBasic .Net Standard version and Win XP Home Edition
Hi everyone, I am begin to programmer in VBasic .Net 2003 standard version and my laptop with windows xp home edition, there are any difficult or troubles with this configuration I am going to develop application and ODBC to FoxPro database please help me to know if I need to upgrade somthing Thank you Jesus Hi, Yes you can install VS even without the presence of IIS. But if you want to develop Web-apps then you should connect to a webserver since you use WinXP Home ed.... cheers, Paul June A. Domag ...Show All
Visual Basic How to change a pic??
i put like this Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Image = "1.JPEG" Label1.Text = "what text" End Sub when i clck this button, the text "what text" will appear. but the picture stil can;t be display. the error showed is " value of type string cannot be converted to 'System.Drawing.Image'" May i know what happen> If you are using vs2003, try this PictureBox1.Image = Image.FromFile(&qu ...Show All
Visual Studio Express Editions TextBox (multiple line) & Databinding
In an attempt to do a project recently, I've bumped into a problem with textbox and databinding. I have a multiple line textbox and wish to display the address of a company. However the full address of the company is stored in multiple columns inside my database. When implemented, I can only display the street address onto my textbox. I'm currently databinding the textbox to the address field in my customer table. Is there a way to display more than one database column onto a textbox Perhaps bind more than one piece of data to the textbox Thanks hi, there are many ways to do that , the best way in my ...Show All
Visual C++ Form Closes without this->close() being called
I have a form and when I click a button, the form closes even though I never call the close() function. The code is below: if(group) { tree->Nodes->Add(textBox1->Text); } else { tree->Nodes[gIndex]->Nodes->Add(textBox1->Text); } textBox1->Clear(); textBox1->Focus(); that is all my button_click even does yet my form closes after the execution...why You're not checking that gIndex is a valid index, could that be the problem I'm thinking perhaps it's blowing up. Have you tried setting a break point and stepping through to ...Show All
