SamsamSam's Q&A profile
.NET Development How to refresh a dataset and return to the same row you are on?
OK, I have an application where I open dialogs to edit,delete,add records in a separate dialog from the main db display. The problem is that I need to refresh the data in my main display and return to the original record, new record, or a nearby record depending on the action (add,edit,delete). I can use the find method to give me the current row data I need, but how do I go to that particular row Do I have to step through each row or i ...Show All
Visual Studio 2008 (Pre-release) secure vs. unsecure
Hey! I was wondering what's the reason for slower performance of secure bindings (for example: comparison between bindings like basicHttpBinding, netTcpBinding, wsHttpBinding) Thanks in advance. [melack] It's also important to note that many of the security configuraiton options create a sophisticated messaging choreography between the sender and receiver. For example, choosing Message security in certai ...Show All
.NET Development TextBlocks to Streams
Alright, yet another problem, how can i save the content of RichTextBox to a variable, so i can put it in my own object. Cant find anything about it on the web, only how to save it to a file and how to store it in a SQL database You can get/set the contents of a RichTextBox control via its Rtf property like this: string rtfContents = myRichTextBox.Rtf; // Muck around with the raw RTF myRichTextBox.Rtf = modi ...Show All
Software Development for Windows Vista msi.lib not found
I have a project that needs link with msi.lib and I got the following linking error: LINK : fatal error LNK1181: cannot open input file 'msi.lib' I have the following paths in the library directories: $(VCInstallDir)lib $(VCInstallDir)atlmfc\lib $(VCInstallDir)atlmfc\lib\i386 $(VCInstallDir)PlatformSDK\lib $(VCInstallDir)PlatformSDK\common\lib $(FrameworkSDKDir)lib I only found the msi.lib in $(VCInstallDir)PlatformSDK\lib\IA64 and $(VCInstall ...Show All
Visual Studio ReportViewer.LocalReport.SetParameters casues VisualBasic.dll to be loaded?
I am currently struggling with some performance issues with the ReportViewer control. A big component of the performance issues I'm seeing is due to the loading of the VisualBasic.dll assembly (takes about 1 second). I've isolated it down to this: The VisualBasic.dll load occurs with a ReportViewer.LocalReport.SetParameters() call. I am passing in a List<ReportParameter> object to this call. PLEASE tell me that when it's all said an done, ...Show All
Software Development for Windows Vista Question for Workflow Monitor
Hi, All, I get a problem to run the Workflow Monitor sample to monitor UserTrackPoints. I know "All workflow and activity types should be gacced or placed in the same directory as the sample executable". For tracking sample UserTrackPoints, there are only two files in the bin/debug directory, UserTrackPoints.exe and UserTrackPoints.pdb. I put both of files into same directory as WorkflowMonitor.exe, but I still get the error messag ...Show All
Visual C# static/const/readonly variable...
I must be missing something simple... I want to have a small struct... I want 3 of the 5 variables to be constant for all instances and the other two to be variable. However, the 3 that are constant come from an xml file.. which must be read in...not an actual string in code... so I've tried things like struct samplestruct { public string constVar1 = xmlval1; //won't compile because you can't instantiate in struct so i tri ...Show All
Windows Forms What do I need for Avalon?
Hi, could anyone tell me what I need to start using Avalon I have XP with VS 2005 Beta2 installed. Do I then just need the 'Indigo and Avalon Beta1 RC' download or do I also need the WinFX SDK, or is it the longhorn SDK Thanks for your help Graham Hi, In order to locate the templates, start VS2005 IDE and expand the language say C#, you will find a separate entry for Avalon. and separate Avalon Projects listed ...Show All
Visual Basic Communicating using tcpclient and tcplistener with a database data
hi, I need help from any one, My problem is, I am writing a client/server program and want to send some info. from client database to the server database vis versa using TCPlistner and TCPClient . And I don't want to use web service. Can anyone send to how to do that with a sqlserver 2000 thanks Email address : dell_adv100@hotmail.com First of all don't write your e-mail address in your posts, except if you want to get spam in y ...Show All
Windows Forms Masked Text Box
Hi, I'm using a masked text box. I'm allowing only a two digit number. The thing is the cursor doesn't automatically align it's self to the left when it's put unto the text box. I think I tried every property available. Is there something I'm missing Thanks in advance...Eric I've found it's better to do it myself for that sort of stuff. I just handle the KeyPressed event and set Handl ...Show All
.NET Development Create connection between WinForm and WebAppli
Hi, how can I create a connection between a WebAppli to a WinForm with a web service And if I have the connection, can I send a object to the WinForm Appli Sorry I’m beginner in web services Or how can I connect to a exchange server thx you can not directly send data from a web app to a win form via web services. think of web services are essentially methods that exist on the web and can be call from both wep ...Show All
SQL Server commenting hyperlinks in query editor window
Is there a character or character sequence to annotate hyperlinks in your query windows so that it will conform to valid TSQL code and simply ignore the hyperlink, yet still allow the hyperlink to function in the editor For example... Create Proc dbo.Hyperlink as begin --below link is the sql server homepage for MSFT http://www.microsoft.com/sql --commenting it out disables the link in the editor end ...Show All
SQL Server MSDTC - The Transaction Manager is not available
I am trying to do something simple to test TransactionOption. I have a ScriptTask (out of the box), which runs fine. To test TransactionOption, I set the Package Properties TransactionOption = Required. Straight away the package fails with the following message Error: The SSIS Runtime has failed to start the distributed transaction due to error 0x8004D01B "The Transaction Manager is not available.". The DTC transaction failed to start. This c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Include images and sprite inside exe or not?
Hi guys :) Currently, my so called "game" is using 2D sprites, and every image is outside the exe, not inside. My question is, should I include the images into the exe or should I keep them as seperate files I am mostly talking about performance if there would be a great loss of performance in this or what... Sincerely: I assume you mean the use of resource files to get ...Show All
Smart Device Development Response files and referenced assemblies
Hello all, I have a simple to reproduce but serious problem using response files to build designtime cf.net assemblies. In my vs.net solution, I have a very simple cf.net class library which looks like this: public class CF_TEST : Control { public CF_TEST() {} protected override void OnPaint(PaintEventArgs e) { e.Graphics.FillRectangle(new SolidBrush(Color.Red), this.ClientRectangle); } &n ...Show All
