TBUCKET's Q&A profile
.NET Development DataSet and DataReader in Visual C#
Hello. I'm new to .Net Platform, and I have to do an Windows application in Visual C# who access a database from Microsoft SQL Server 2000. Can you present me a quick tutorial who shows me how to access a database through DataSet and DataReader classes It's wellcome a graphical tutorial. Thanks' very much. The best I found so far: http://www.LearnVisualstudio.NET ...Show All
SQL Server How to reference different databases on different servers in one query
http://blogs.msdn.com/sql_protocols/archive/2005/10/22/483684.aspx HTH ...Show All
Visual C++ how to package .NET Framework?
Hello, With great help from people here I have gor my app working! Now, how do I package it so that when installed on a user's PC it will check to see if .NET Framework is installed (v2 needed for Visual C++ 2005 Express Beta 2 ) and if not, will install the correct version for Windows 98, 2000 and XP Cheers Geoff Ayman, Thanks for the info and links. Cheers Geoff ...Show All
Visual C++ Program runs slower when compiled with Visual Studio 2005 (in Release with optimization)
Hey, I have a performance problem with the new Visual Studio 2005. My code (which is a genetic algorithm) is 3 times slower when compiled under Visual Studio 2005 compared to when I was compiling it under Visual Studio 2003. With Visual Studio 2003, it used to run in 3.0639 seconds, and now it runs in 9.0031 seconds. I run both code in Release. I tried every optimization option, and adding the /D_SECURE_SCL=0 compiler command to the project options with only minor differences. Is there any other way to get back to the speed Visual Studio 2003 It is a bit absurd to upgrade to a new compiler and get lesser performances. Thanks a lot!!! Antoine ...Show All
.NET Development Remoting Server and multiple clients
Hi, I have implemented a remoting server application that host a remote object that is refernced by multiple client applications.(SAO, singleton). Windows applications. Thus, it is straightforward that client applications use the proxy object hosted by the server to invoke methods directly. This is a straightforward request-reply mechanism. However, in order for the server to notify multiple clients, the client applications have also hosted a remote object. The server can then create a proxy object hosted by a client application and invoke methods directly. (such as notify() ); However since there are multiple clients, and each cli ...Show All
Windows Forms Focus on Panel Contained Controls
I'm using panels to "Switch" several sets of textboxes. I want to set the focus on the First Textbox of the 1st panel, but I'm having no luck. In the initialization of the form I've got the code txtPlateNum.Focus() However, the textbox is not receiving focus. I think that is has something to do with the fact  ...Show All
.NET Development Dispose and Application Lifetime Objects
Hello, I have a Windows Forms application. When the app first runs (Form_Load) I create some disposable objects that will be used throughout the lifetime of the applicaiton (eg. a GDI Brush, SqlConnection etc). Do I really need to call Dispose() on all of these objects when the application closes, or will Dispose be called automatically for such objects when the app closes In other words, can I instantiate a disposable object when my app first runs, and not worry about disposing it when the app closes What about if my application terminates due to an exception Many thanks for your advice. Ben Ben, As Pete ...Show All
SQL Server SQL Server 2005 CTP Release Candidate Sept - unexpected failure during setup wizard
I always get the following message during the install - the setup fails - no error message found in the log file (summary.txt) TITLE: Microsoft SQL Server 2005 CTP Setup ------------------------------ There was an unexpected failure during the setup wizard. You may review the setup logs and/or click the help button for more information. ************************************************************************************************************** For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1314.06&EvtSrc=setup.rll&EvtID=50000&am ...Show All
Visual Studio hotfix for visual studio .net 2003
Sure. I just purchased the academic software last week for a night school course. I installed it without errors. Problem 1) When I go to the tools > upgrade it cannot find the page of the upgrade. Problem 2) For the library problem. I decided to have a look around and read the help files. I had already installed the mdsn libraries. However, when I try to start up the help files, it opens what looks like a browser, and then says server not found. It looks like the browser that is inside the tool does not work. I have attempted to use the same pages on my internet explorer and they work fine. ...Show All
SQL Server SSIS Configuration
Hi, My requirement is to have the connection strings for the source and destination to be a parameter for the packages that way they can be changed from the sql job scheduler. Please let me know how to go about it. Any help will be highly appreciated. Thanks Vijaykishan See dtexec.exe command line reference, in particular /Set parameter: http://msdn2.microsoft.com/en-us/library/ms162810.aspx ...Show All
Windows Forms Limitations to FlowLayoutPanel
I am using a flowlayoutpanel control to display a list of controls and it seems to only show the first 149 properly. Then it seems to chop the 150th in half and not show the rest. (My test case involves adding 395 buttons to a flowlayoutpanel). I was wondering if there was an express limit on the number of controls I can add to the panel or if it's a memory concern. Also, can I change the number of items allowed Any help would be appreciated. Thanks, Liam Hi Liam, Based on my test, there is no known issue for this limitation. This may be caused by many possibility. e.g. Memory, GDI h ...Show All
SQL Server LinkTarget not working
I have tried from every angle to get rc:LinkTarget=_blank to work, but it won't. Is there something I'm missing Here is a sample of what I'm doing. http://[server]/ReportServer /[reportname]&rs:Command=Render&rc:Format=HTML4.0&rc:LinkTarget=_blank After going to this URL, as I understand it, the LinkTarget should cause all hyperlinks in the report to open in a new window. Unfortunately, it continues to open all links in the same browser window. Any help is appreciated. LinkTarget only works for hyperlink links. I can see how the description on http://msdn2.microsoft.com/en-us/library/m ...Show All
SQL Server error of Initializing SQL Server Reconciler has failed using SQL Server CE 2.0
hi, i'm using SQL Server CE 2.0 in my application. When i try to synchronize my database by calling replicator.Synchronize(); errors : Initializing SQL Server Reconciler has failed. process could not connect to Distributor SQL Server does not exists and access denied. what i did right now is i try to register regsvr32 "C:\Program Files\Microsoft SQL Server CE 2.0\Server\sscerp20.dll" regsvr32 "C:\Labs\NorthwindTempFiles\sscesa20.dll" both of the DLL files were succeed register. However, when i try to re-do the synchronization. The same error still happened!!! I do not know what's going wrong..=( Who can help m ...Show All
Visual C# adding fontstyles together
I have added font styles together in vb.net and it worked and this was the code: 'vb code Dim strCurrentFont As System.Drawing.Font = frmMain.rtfMainText.SelectionFont Dim strNewFontStyle As System.Drawing.FontStyle strNewFontStyle = FontStyle.Bold + strCurrentFont.Style so the above vb code worked but I do similar code in c# it doesnt work, code tried below: //c# code FontStyle styFontStyle; Font CurrentFont = rtf.SelectionFont; styFontStyle = FontStyle .Bold + CurrentFont.Style; the error that occured with the above code was: Error 1 Operator '+' cannot be applied to operands of type 'Syst ...Show All
.NET Development underlying connection was closed:an unexpected error occurred on receive
hi, webservices installed on windows 2003 is trying to access another server behind firewall. And getting this system.net exception. please let me know whts the fix for this. thanks gouda Maybe firewall doesn't permit packets from your network, or forbids connection to the port you're trying to access. BTW what port you're trying to use Can you specify the Exception text or perhaps InnerException ...Show All
