ScubaRon's Q&A profile
.NET Development When to use TableAdapter.Update(DataTable) method?
I'd like to know how can I use the TableAdapter.Update method so that I can update the database that I use whenever a user adds, modifies or deletes a row in a datagridview control. I suppose that I should handle the CurrentItemChanged event of the BindingSource that the DataGridView uses but I'd like to see a full example. In other words I'd like to create a WinForms application with a DataGridView that has the same capabilities as the DataGrid form for the Sql Tables in the Sql Server Management Studio. I know that it's a lot to ask but nevertheless this is something that is missing from the .NET Framework examples and walkthroughs. ...Show All
Visual Studio 2008 (Pre-release) how to play sounds
Hi can anybody know how to play a sound (from external .wav file)when i click on a button Thanx Chinni here is a sample from the docs ms-help://MS.MSSDK.1033/MS.WinFXSDK.1033/wpf_conceptual/html/c4dbe632-6e7f-4d7f-9df5-98737a758bc3.htm ...Show All
SQL Server Get dataflow names from packages
HI, I know that we can get package informations from msdb.dbo.sysdtspackages90 once packages are published into SQL Server. Is it possible to retreive informations for dataflows also from msdb tables Thank you, Ccote Dataflow informations is stored in the package and can be retrieved only by loading the package. Thanks, Ovidiu Burlacu ...Show All
Windows Forms Verisign Certificate unavailable in Store
Greetings: I've purchased a Verisign Class 3 certificate for code signing. We've used it for deploying Win32 applications. If you right click on the installed certificate is states the following: Ensures software came from software publisher Protects software from alteration after publication 2.16.840.1.113733.1.7.23.3 I would like to use this certificate for deploying a VS2005 C# project. I understand that what I have is a PKCS7 and VS2005 requires a PKCS12 (a .pfx file). If you check out this thread ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=81494&SiteID=1 ) you can see he had the exact problem and us ...Show All
Visual Studio Tools for Office can I have a macro with VSTO?
Is it possible in VSTO to have a macro with a keypress event and then have that call a function to execute code For example, can I have a macro behind the 'w' key, and everytime it is pushed I execute code I've been searching around online for a while but can't find anything. I've looked at the VSTO book too and nothing is in there about it. I found this link: http://groups.google.com/group/microsoft.public.office.developer.vba/browse_thread/thread/277183545f501d9f/d3fe55d7a78e1f62 lnk=st&q=creating+a+macro+in+vba+code+vsto&rnum=3&hl=en#d3fe55d7a78e1f62 but is there a way to do it without VBA &n ...Show All
Visual Studio Viewing image from xml to CR
I need to load the image into a CR 9. Image(binary data) should be coming from an XML file. I've tried loading this image into a PictureBox and it works. It's just so odd I can't view this image in the report. Please help me. hi guys , i am still new in this field , and need little help Rinoa can you post the code that let you display the binary data from XML to picture box (Image) on win form. this is what iam looking for, or any body can do that help , thanks all. ...Show All
Visual Studio 2008 (Pre-release) C# Properties and WCF
Hi together, sorry for that question, but I am a newbie to WCF. I have read in the SDK about different contract types like ServiceContract, DataContract etc. Now I only want to expose a class which has one property to a client. How could I do that Do I have to generate a service contract or is there a more simpler way to handle this. For example I want to expose that class to a client: public class DataExchange { private in m_MyData; public int MyData { get{ return m_MyData; } set{ m_MyData = value; } } } So is it enough to write [DataContract] public class DataExchange { private in m_MyData; [Data ...Show All
SQL Server RS on the Internet - security issues
Hi there, We are looking at making RS over the web for a client. Is is safe to put RS on the web Is it possible to provide adequate security for complete peace of mind - ssl etc Or does another security layer have to be placed over it Advice, thoughts, and some pointers would be greatly appreciated!! Many thanks Chris It is relatively safe, to a point. Check out this article: http://msdn2.microsoft.com/en-us/library/ms157198.aspx for a summary of SSRS authentication options. Integrated Windows authentication is not sent in plain text, and it is controlled by IIS, not RS. But you ...Show All
Visual C# Namespace problem
Hi, This looks very simple, but somehow Iam not able to solve it. Take a look at the code. 1) File MyAssembly.cs namespace MyNamespace { [AttributeUsage(AttributeTargets.Class|AttributeTargets.Method,AllowMultiple=true,Inherited=false)] public class MyAttribute : Attribute { ...................... } } Now it is compiled into a .dll file MyAssembly.dll 2) File OtherAssembly.cs namespace MyNamespace { [MyAssembly.MyAttribute("some value")] publi ...Show All
Visual Studio Team System Rules of Engagement
Greetings, Now that I have got the CTP and can play around I need some information on the proper way to report "issues". Can any one respond with:- Where should I report what appear to be "bugs" in the program Where should I report problems with installation & setup Where should I request enhancements Where can I just whinge about what peeves me I've been waiting for some time for a tool like this and I appreciate the opportunity to get an early look at it. -- Regards, Neale NOON I've taken a look at Microsoft Connect which is the replacement for t ...Show All
Visual Studio Team System Labels and Owners....
Hi, Does anyone know if I can create a label that anyone can reapply (move) not just the owner We have a ReadyForRelease label that devs move about to indicate the latest releaseable version of code. But once the label has been created by someone, someone else cannot move it. -> Error The owner of a label cannot be changed. Ideas Thanks Andy I don't think we'll have time to fix this, sorry. The other workaround is to use the Find Label dialog. (File -> Source Control -> Labels -> Find) ...Show All
Visual C# tabcontrol
hi, how can i hide a tabpage2 in a tabcontrol when the form is loaded , and how can i show it again when the user click a button in the first tabpage if that is possible You can remove the tabpage from the TabPages collection of the TabControl, keep a reference to it in your class and add it back to TabPages when you need it. ...Show All
Visual C++ mbsrtowcs link errors
I'm using mbsrtowcs to convert a char[] to a wide, and I'm getting link errors I can't comprehend. The actual code is in a C++ library, which compiles OK, but when I use this library in a C or C++ exe I get unresolved external symbols __imp__mbsrtowcs and void __stdcall _com_issue_error(long)" ( _com_issue_error@@YGXJ@Z ). Can anyone explain what is happening here Thanks! Could you send a repro of the problem Feel free to send it to: kanggatl@microsoft.com. Thanks, Kang Su Gatlin Visual C++ Program Manager ...Show All
Visual Basic Executing Visual Basic code from a string
How do I execute visual basic code from a string Here is kind of a sample of what I am doing... Function _Function(ByVal As ) 'This is where it is supposed to execute a function .Execute() End Function So can someone please help me Doesn't anybody know There has to be a way to do it, last time I checked, Visual Basic .NET 2003 could do almost anything. I say almost remember. There has to be a way, because I saw a control on http://windowsforms.net that could allow you to execute VB code from a string. Please tell me an answer. ...Show All
Visual Studio Tools for Office Unable to create Excel Workbook Project
I just installed Visual Studio 2005 June CTP on a machine with no previous version of VS 2005. However, I get the following error when I attempt to create an Excel Workbook Project: The project cannot be created. I tried uninstalling and reinstalling both VSTO and VSNET. Then, I tried formatting and reinstalling Windows 2003. Next, I tried it on a Windows XP machine. However, all gave the same result. Note: I can create a Word Document Project without errors. Hi Installation order is quite important so would be useful if you can recall the exact order and if there was any reinstall of othe ...Show All
