danholmes's Q&A profile
SQL Server Database Connection
Still new here, please be gentle. I created a database inside SQL. I made my tables,etc. When I try to connect to it from VBE I cannot open it! I get an error stating that I cannot connect to it. Am I doing the right thing If I create an SQL db from within VBE, I run into issues. I would rather not install the db's into my project since this will be a shared app. Could some give me a little advice or point me in the right direction, please. Davids Learning IF I HAD ONLY TOOK ABOUT 8 HOURS I COULD HAVE SOLVE MY OWN PROBLEM READ BLOGS MORE Davids Learning ...Show All
.NET Development Connection string betwen vs 2003 and sql 2005 , last 2 yrs with sql 2000 worked and now giving me error
i am using the folliowing connection string to pint to a server in my network(intranet) we were using sql server 2000 and worked well, and today upgraded to sql server 2005 and started giving the eroor: here is key which is used under web.config file. please help: <add key="QMain" value="Data Source=ServerName;initial catalog=pcsNet;persist security info=False;uid=user;pwd=password;"/> I am getting the error: saying sql server does not exist. Thank you very much for the information. I think TravelMan is on the right track. If the Data Source is valid, this would appear to be a configuration issue (assuming the database server is up and running). ...Show All
Smart Device Development Error: the operation could not be completed. the device is not connected
One weird thing happened to one of my application. When I want to do the debug and sync with my pocket pc device it gave me this error. I have check the device and it's already connected. I even debug other programs and they are fine. why only this one is giving me this problem I solved this by recreating my application. Either i messed up some setup or configuration or not but i notice that Visual Studio crashes several times or at least unable to rebuild a project. ...Show All
Visual Basic No Enough Storage Space is available
Almost every one hour, when I run the project , I get this error and i have close and open again. Any idea Regards Mani You've allocated too much memory. Flush the buffers, close connections, null variables, choose your datatypes wisely. Lastly, make sure only one instance of the application is running. Ctrl+Alt+Del Adamus ...Show All
Visual C# Copy/move files
------------------------------------------------------------------------------ Copy Method: public static void CopyDir2Dir(string sourceDir, string desDir, string searchPattern) { DirectoryInfo dirInfo = new DirectoryInfo(sourceDir); foreach (FileInfo file in dirInfo.GetFiles(searchPattern)) { file.CopyTo(desDir + "\\" + file.Name); } } Usage: CopyDir2Dir(@"C:\dir1", @"C:\dir2", "*.dll"); this will copy all dlls from dir1 to dir2. Stefan Prodan ------------------------------------------------------------------ Hi, I got this code above from Stefan Prodan, but I can't copy/move files from "Temporary Internet Files", but I can for other fold ...Show All
Visual Studio Express Editions How can I connect a form to a button?
Hi, I was wondering how I can make a button connect to a form so when I click on it it takes me to that form. i don't found ShowDialog. this is VB or C# i want coding for c # thx bfr ...Show All
Visual Studio Team System Launch SourceControl from a Form.
Hi! I am developing utility in which a user has to enter the path to a particular project. He can copy paster it manually. But, I would like to add a button which launches the Source Control Window in VSTF and accepts a project. When the user says ok the path has to be pasted into the form. So any ideas how to launch the Source Control Window Hi: Unfortunately, there is no way that you can launch Source Control Explorer or any of its dialogs and UI. Those classes and dialogs are all internal. I recommend that you use the Object Model to get the information and just build your own select team project UI. thanks, mario ...Show All
Windows Forms negative value of custom control property: strange behavior in designer
I have a custom control which contains a custom version of the ProgressBar. This control accepts double minimum and maximum values which define the range of the custom ProgressBar. If I set, for example, a min val of -10 the Progressbar is correctly drawn and the code runs without problem. Then, if I reload the designer, the min value is changed to 10 (positive) in the designer window, but in the code it is still -10. If then I build and run the project it behaves correctly. Then, if I modify something in the designer window forcing to reload the form code, min value is set to 10, according to the value in the designer window. Why does this happen Is it a parsing problem "Property accessors" are ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 1.) Lock/Unlock vs. SetData/GetData and 2.) predefined vertex formats
Two points spring currently to my mind. Is there any reason besides simplicity not to use the common Lock/Unlock mechanics I would prefer the addition of this to the API. GetData/SetData canthe simply be mapped onto this. I have a large terrain, that I tesselate into the locked buffer directly... With this new scheme I have to build a temporary array and then copy over via SetData, same with textures. On the other hand, if we have to live with this, why do we have the managed pool anymore, kind of pointless! The other thing are the predefined vertex formats... Any reason to not expose the members directly and use setters and getters instead I don't see the point here too, this just forces us to create one intermediate result and copy oper ...Show All
Visual Basic How do I attach an event handler ?
Hi, I'd like to know how to attach an event handler in VB, There is a C# sample code in this URL that I want to convert to VB (Figure 8) http://msdn.microsoft.com/msdnmag/issues/06/01/speechinWindowsVista/default.aspx loc=&fig=true#fig8 I have succesfully converted every lines to VB except those : //Attach an event handler pizzaGrammar.SpeechRecognized += new EventHandler<RecognitionEventArgs>( PizzaGrammar_SpeechRecognized); Every attempt I try to fix it, I'm told that I need to use AddressOf, but when I use it, It must have two arguments, and I'm unable to set the last. pizzaGrammar.SpeechRecognized = New EventHandler( AddressOf RecognitionEventArgs , pizzaGrammar_SpeechRecognized) ...Show All
Visual Basic Image On Mouse Over
How do I get an imgae to display & follow the mouse by having my mouse over another image I forgot that the image must follow the mousepointer, so this updated code for the Form1 class will do that: (Note: add the unchanged code for the xxToolTip class too, of course) ...Show All
SQL Server Proclarity and SQL Server 2005
Hi All, We are starting on a tool called Proclarity, which is used on top of Microsoft SQL Server Analysis Services. Having this as the basic idea, I’m not clear on some information as listed below: Any clarification would be very helpful. 1 Having SSRS (SQL Server Reporting Service) available to perform reports, what is Proclarity for Reporting Services. What it does by integrating with SSRS and its advantages. How is it different from Proclarity Web/Desktop professional. 2 Having Business Scorecard manager from Microsoft, what is the purpose of Proclarity KPI Designer, its advantages/disadvantages over BSM Still proclarity has one more add-on Proclarity for BSM (not sure why we need this) 3 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need help with game screenshots
I just created a demo of pong and i put it on threesixbox.com, but I want to have a screenshot of my game so people can see what it looks like before they download it. I really don't know how to do it, and I was wondering if anyone know. Thanks. A simple method is to just use the print screen button on your keyboard and then paste it into MS Paint, and then save as a file. Or, an XNA method is to do: Texture2D ss = new Texture2D (graphics.GraphicsDevice, graphics.GraphicsDevice.DisplayMode.Width, graphics.GraphicsDevice.DisplayMode.Height, 1, ResourceUsage .ResolveTarget, graphics.GraphicsDevice.DisplayMode.Format, ResourceManagementMode .Manual); graphics.GraphicsDevice.Resolve ...Show All
.NET Development inter-process communication in .NET - weird problem
Hi All, I'm using the approach outlined in http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconremotingexampledynamicpublication.asp , but with my own client and my own server. Everything works great for a while. My client .NET application can communicate just fine with the exposed proxy object. Then after six or seven minutes I get the following exception: Source: System.Runtime.Remoting Requested Service not found System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at MorganStanley.OmegaSuite.BusinessComponents.Base.RemoteCommunicator.InvokeRemoteAction(Object[] args) at MorganStanley.OmegaSuite.BusinessComponents.Base.DotNetServerLauncher.Invok ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting debug information....
How does one setup the XNA express IDE to receive debugging code. InvalidCallExceptions aren't very helpful in tracking down the problem. We don't have the DirectX sdk installed so we can't switch to debug drivers. How can we set this up TIA, lushdog The reason why you don’t see the messages is that messages from the unmanaged DirectX are not shown. The output window shows only messages from the managed part of the code. You can change this in the pro version but I am unsure if this switch is available in the express version. You could use an external Debug Monitor: http://www.sysinternals.com/Utilities/DebugView.html ...Show All
