Aaron Sulwer's Q&A profile
Visual Studio Is it possible to change chart type at runtime?
I have a bar chart in Crystal Reports for Visual Studio 2005. Is it possible to change the chart type to Line at runtime. I'm writing the code in VB.Net but I can read C# code as well. Thank you in advance Bill ...Show All
Visual C++ C++/CLI /CLR Managed Support in Native Library
Hi, I have a C++ project, a .dll project in Visual Studio 2005, which uses all native C++. I was able to compile the project with the /clr option (just /clr for common language runtime support). I am able to add the a reference to the dll with another C++ project, which is also compiled with the /clr option, and the entire application runs fine. The problem comes when I try adding the .dll project reference to a test C# project and add a "using MyCPPNamespace" to my C# class. I don't see the new C++ project namespace anywhere within my intellisense in the C Sharp project and I can't just add it as a using. I thought compiling my native C++ project with the /clr option allowed us to add references to these projects in other manage ...Show All
.NET Development Socket.SendFile and Progress
I need to transfer a large file via Socket.SendFile. Is where any way to trace progress while file is transfering ...Show All
SQL Server SQL stored procs
can anyone help me out.... i need to compare a date that was retrieved from the database and the system date then it must be coded in the stored procs of the database.. help!!!! help!!! now im able to filter the records that has the similar date.... the table in my database is named kDeadlines the field names are emailadd and date....how can i acquire all the emailadd records now coding it to vb.net 2005 please help... ...Show All
SQL Server Does the SS Engine cache clr proc execution plans?
Hi. When I checked the execute plan for a clr proc I wrote: Exec MyCLRProc All it had was one item "T-SQL Exec Proc".... How does Sql 2005 store the execution plan for all the sql, etc. contained in the clr proc itself Does it create a new execution plan every time a clr proc is excecuted Wondering, Thanks, Steve W. It's the same as any other ad hoc/dynamic SQL. If the plan is parameterized it can be reused for multiple parameter values. Otherwise, it will only be reused if the same parameter values are used. -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- < ...Show All
Visual Studio 2008 (Pre-release) How can I make a mouseOver also cause a focus event?
For example, say I have a button. How do I make it so everytime I mouse over the button, it gives focus to it as well I got this to work in C# code behind but I'm wondering how to do this in XAML using a trigger Thanks. Hm, well, I just tried ripping out the entire IsFocused trigger to see if that was causing a problem and my program still crashes with the FocusManager code. I'm going to try and isolate the problem by pulling out more code. ...Show All
Visual Studio Team System Refresh MS project file upon open
Hello everybody, Has somebody written a macro which asks to refresh the MS project file upon open If I forget to and click later on publish, the actual values in msvs (eg the completed work) will be overwritten with the values given in the MS project file. Or even a better solution: Refresh a list of MS project files by selecting them within a folder, right click and refresh. That would be best ;) Kind regards, Henk Hi, Thanks for the replys. Yes I am interested in that macro. A macro that prompts a dialog box on opening a project file would be best. So you can choose to refresh or not, but cannot forget! My problem is to publish changes in the plan without refres ...Show All
Smart Device Development bluetooth vs wired
This is wierd. Whenever I create a smart device project, it can connect to the PC via bluetooth or wired (when I create a Server/Client app) This is all fine. The whole point on my application for the smart device is to be able to connect to the Server without wires, ActiveSync becoming our connection. I tested my application for a while now, and the last 2 hours constantly with wired connection (USB). images show fine. as soon as I connect via bluetooth and view an image (being transferred from Server) I hit problems - images will not be recieved/written properly. as soon as I connect back to USB - bam, everything is great. bluetooth - it ain't having it. Wifi: mixed (usb and blu ...Show All
Visual Studio 2008 (Pre-release) WCF Channels
Hi, I have the following scenario: IDmmyContract dummy = ChannelFactory<IDmmyContract>.CreateChannel("binding") i would like to know whether i can cache dummy for sometime and use it from more than one thread, so does the contract instance holds context information that are not thread-safe What;s the cost of creating a new contract instance per method call Thanks In general, any channel call can throw, so if you are writing reliable code then your communication may need to wrap the general I/O area in try/catch (CommunicationException). Faulted event will fire as soon as a channel "faults". This is intentionally vague since there are a number of domain-speci ...Show All
Visual C++ using the NtFrsApiEnumBackupRestoreSets
I am trying to a Locating SYSVOL by using the NtFrsApiEnumBackupRestoreSets function but I can’t find the header that NtFrsApiEnumBackupRestoreSets declared in, to include it in my project, also I can’t find the function parameter declaration for this function. I send to ask how I can use this function and in which OS this function supported and where I can get the Function header and DLL I am trying to backup the Sysvol using the VSS (volume shadow-copied ), this link show the steps for backup the Sysvol , and to do that i have to Locating SYSVOL by using the NtFrsApiEnumBackupRestoreSets in case of replicated user. http://windowssdk.msdn.microsoft.com/en-us/library/ms728854.asp ...Show All
Visual Basic Convert text file data to Hex file data.
Hello, I have a hex listing in a text file that is 14 bytes long... 40 00 78 7B 7A These are characters. The hex values are... 34 30 20 30 30 20 37 38 20 37 42 20 37 61 How do I go about converting this to a file containing only hex values The resulting file should contain only 5 bytes... 4000787B7A Thank you in advance, ED Hello, Thanks for the sample. I was having a problem with your code when getting to a value that contained a letter (e.g.: 7B). I modified your sample, and using brute force, I was able to get it working using two select/case blocks. Here is the code I put together. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e A ...Show All
SQL Server Newbie - sa password error after ACT! install - Need pro's help!!!
Hello, I am admittedly new to this, especially sql server and am in need of a pro's assistance.. I installed Microsoft Small Business accounting, which in turn installed and configured a sql server. When I installed ACT! 2005 (v7.0) and tried to create a database, it states that it cannot find the master file.... so I tried to install sql server from Microsofts site - downloaded all the packages, unzipped them and ran them... the error I get is that the sql server needs to have an sa password and to use some switch to change it... for the life of me I am lost here. I can't use ACT! at this point and I have not ideas of how to remove, reinstall or repair the sql server.... Any help you can provide would be greatly appreicated! The defa ...Show All
Visual Studio 2008 (Pre-release) Retrieving DependencyProperty
Hello, How can I retrieve the depdencyProperties for a give depednecyObject Thanks Houman Thanks, I'm already using reflection...I thought there maybe a way to get the information from DepdencyProperty, since it is used to register all depdencyProperties. Thanks Houman ...Show All
Visual Basic IDE Commands documentation
Is there any documentation that explains what each command, available in the IDE, does I haven't had any luck finding any. Thanks, Allen I'm not asking about documentation for controls. I'm asking about documentation about the commands that can be added to the IDE toolbar or menu. Within the IDE go to Tools/Customize/Command tab. Those are the commands I'm asking about. Thanks, Allen ...Show All
.NET Development C# Interop with Windows API Messages
I am trying to intercept a forms sizing by overiding wndproc and handling the WM_WINDOWPOSCHANGING message. This message has a pointer to a WINDOWPOS structure in lparam. To intercept this message, the MSDN documentation says to handle this message and change any values required in the WINDOWPOS structure. So I have this code to add the NOSIZE value to the flags value or to change the cx and cy values in the WINDOWPOS structure. protected override void WndProc( ref Message m) { if (m.Msg == Constants .WM_WINDOWPOSCHANGING) { WindowPos mwp; mwp = ( WindowPos ) Marshal .PtrToStructure(m.LParam, typeof ( WindowPos )); mwp.flags=mwp.flags|1; // 1 is the NOSIZE flag // or mwp.cx=100; m.Resu ...Show All
