DonRajah's Q&A profile
SQL Server SQL Server does not exist or access denied
Hi, I have developed a small application using VB6 on Windows XP. Following is the code snapshot. I have added Microsoft ActiveX Data Objects 2.1 Library through Project Reference for ADODB Connection. Public con As New ADODB.Connection Public Sub Main() Set con = Nothing With con .CursorLocation = adUseClient .ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=SCMSUG;Data Source=Admin\local" .Open End With End ...Show All
Smart Device Development Compact Framework 2.0 & Windows Mobile 5.0 NotSupportedException
I have recently starting developing with VS2005, Windows Mobile 5.0 and the CF 2.0. I have noticed that recently I am receiving a NotSupportedException whilst trying to change the text of a textbox from a background thread. I used to get a detailed exception telling me not to update the textbox from a background thread. The only difference these days is that I am developing for Windows Mobile. Is there something I am doing wrong My App seems to hang when debugging instead of giving me a proper exception. I hope I have explained this well enough. Thanks Yes, you have explained it well and thi ...Show All
Visual C# How to know because of which control event postback happens?
Hi Everybody, I want to know how to know because of which control event postback happends How can I know............................. e.g. One Button Name btnAdd is there and its postback property is true. When I click on that button postback happens and pageload will get called,now I want to get that button's id in pageload function....... First of all, you can't. Event handlers fire AFTER page load, and before page prerender. You probably need to move some code from the load event to the prerender event. However, asp.net questions are off topic here. If that doesn't solve your question, or if you have more, you sho ...Show All
Game Technologies: DirectX, XNA, XACT, etc. [GDI+] ColorMatrixEffect
I am not sure where a GDI+ question is supposed to be posted, so feel free to move it if it should be somewhere else. But I read up on ColorMatrixEffect, and it says it is suppsed to do "Affine Transformations". http://msdn.microsoft.com/library/default.asp url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/classes/colormatrixeffect.asp Does that mean translating 3D points, or are they talking about some translation of colors An other thing. Isn't it possible to use this function in C#, only C++ Wow, that was seriously good looking. As he have done, we have also turned to some unsafe code. Not too much ...Show All
Windows Forms Create Database Connection & Fill combo box
I created a windows form that has a combo box that is supposed to be filled via fields from a database stored procedure. How do i di this 1. Create the db connection 2. Fill the combo box from the SP 3. Do i create the connection in the combo box event handler Please help me. I am new to this and would appreciate any guidance... This& ...Show All
Visual Studio 2008 (Pre-release) InfoCard UI fails to start
This is in my event log. you should reference System.ServiceModel and System.IdentityModel.Selectors. You don't need a reference to Microsoft.InfoCard assembly. Cheers, DonRajah ...Show All
Visual C++ using a textbox from a 2nd Windows form
I've got a Windows Forms .NEt application that uses 2 forms. I've got Form2 which is created from Form1 : (inside a Form1 button click event handler) : namespace::Form2 *myForm2 = new namespace::Form2; myForm2->Show(); This Form2 works well, & I now have the need to write text to it's textBox1. So I create one in Form2[Design]. I need to do this textbox population inside a function X that is defined within namespace but outside the definition of Form2. Function X is called from another button click event handler of Form2. How should I do this I've tried : (inside the function X definition) : namespace::Form2::textBox1->set_Tex ...Show All
Visual Studio Reference to UserControl with CreateToolWindow2
Does any one know how to get a reference to the Hosted UserControl when creating a tool window If not is there a way to pass the DTE2 object used to create the tool window to the Hosted UserControl Problem Solved. My user control was in a different assembly. When I moved it into the same assembly as the Addin it worked. I am not sure why it doesn't work the other way since I had referenced the assembly with the user control in it. Since I have no particular need for a seperate assembly for the user control your solution works fine. Thanks Erick H. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where are there some .X animotion file ?
I have write a game ,now need .X animotion Where is it The gamedev.net art forum has an FAQ which lists lots of places to get models http://www.gamedev.net/community/forums/topic.asp topic_id=257345 ...Show All
Visual Studio Team System Unable to get CoverageInfo from a .coverage file
Hi, I'm trying to get the CoverageInfo from a .coverage file. But when I use CoverageInfoManager .CreateInfoFromFile(filename), I get a ErrorLoading symbols error (error as shown below). Can someone help ! Cheers, Jp Error description - ****************************************************** Microsoft.VisualStudio.CodeCoverage.CoverageCreateException was unhandled Message="Error when creating coverage info: Error loading symbols" Source="Microsoft.VisualStudio.Coverage.Analysis" ErrorType="cc.err.symbolload" StackTrace: at Microsoft.VisualStudio.CodeCoverage.CoverageInfoManage ...Show All
SQL Server Starting job on remote server
I've read that you can run a job on another server as long as you have a link server from the source to the destination server. I've search for hours online and read nearly everything in SQL Server Books Online pertaining to the sp_start_job function without success. I can't find one example on how to accomplish this. I want to run a job called Job1 on Server1 from Server2 with a link server on Server2 to Server1 called ServerConn. The link server works fine grabbing data from Server1; so I know the link server works. I am having problems on the server part of the sp_start_job function. use msdb exec sp_start_job @job_name = ' ...Show All
.NET Development .NET 2.0: Setting WebServiceBindingAttribute.Location leads to a NullReferenceException
Hello, I currently try the contract-first approach when making Web Services on the .NET 2.0. Trying to set the WebServiceBindingAttribute.Location to point on my hand-made wsdl file leads to a NullReferenceException. Does anybody have an idea about what's wrong here Here is the stacktrace: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object . Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: ...Show All
Software Development for Windows Vista taskbar tooltips - please fix!
In Windows XP, if you put the taskbar at the top of your screen, as I do, the taskbar button tooltips appear on the taskbar and obscure the buttons - very annoying! Of course, if the taskbar is at the bottom of the screen you don't have this problem, the tooltips appear above the bar, no matter where the exact position of the pointer is. The fix is to always display the tooltip below the taskbar if the bar is at the top of the screen. I like the feel of Windows XP, and I'll probably like Windows Vista too, but this minor point about taskbar tooltips is actually quite important because it affects my experience constantly. Thank you! ...Show All
Visual Studio Unable to Install Visual Basic 2005 Express
I am trying to install Visual Basic 2005 Express and continually get the error that Microsoft Service Pack 2 must be installed before it can continue. Sounds simple, but when updating everything that Microsoft will allow for my system, it still will not Update to XP SP2. I've tried time after time to no avail. How can SP2 be installed if it will not recognize that the computer needs it XP is verified and registered. It is WinXP Home Edition Version 2002 SP1. Please Help... Thanks for the link, I will order the CD and try it and post my results if I can get it to work. Thanks, EcnS ...Show All
Windows Forms Commercial apps w/ WinForms
Have any commercial apps been written using the .NET framework and WinForms I'm thinking about writing an application using WinForms, but I'm not sure whether users are ready to swallow the .NET framework as part of the install. I'm also not sure whether WinForms is ready for "prime time". Thanks. Darrin Smith We already have developed ...Show All
