LogicalGeekBoy's Q&A profile
Windows Forms barcharts pie charts
Hi, How can I create simple barcharts, pie charts and line charts using C# with dataset as data source Thanks Crystal Reports, third party controls, or Excel automation are probably the easiest. Short of that, I'd say to make a "Chart Control", possibly from something as simple as a label, and do the drawing yourself. ...Show All
.NET Development Impersonate to different windows accounts based on credentials
Hi, I know that if one needs to be able to authorize access to resources based on the caller's identity, one should set up the server to perform Windows authentication with impersonation. But how can I do this when I grant access to my webserver to, let's say 2 different organizations over the internet that authenticate themselves using certificates. They are not using the windows platform, so I can't do anything with trusted domains. Is it possible to based on there certificate or URL impersonate them to 2 different windows account You're imput is highly appreciated, Regards, Henk Glad to be of help ...Show All
Windows Forms Filtering data in a datagrid
I have a master-detail (used data form wizard) grid setup. The master table (grid1) is a list of employees, and the detail table (grid2) is the various pay rates that apply to that employee. I now want to allow the user to choose if they want to display active or inactive employees or both. This is determined by one field in the grid1 ta ...Show All
Visual C# import file from a remote machine to local machine
Can we import a csv file from a remote machine to our local machine and after import delete the file from the remote machine in C# Kiran Hi Yes, you have to copy the csv file to your local machine and when you finished then delete the file. If I may ask, is the network drive mapped to the local machine of the remote machine if the above answer is true this snippet can be used ...Show All
SQL Server Seems like permissions issue with OLE DB connections
Hello, I've created quite few packages using OLE DB connections with dataflow destination as SQL Server Destination. The OLE DB connections using a windows login works fine when connecting to SQL Server Destination table(data flow destination) . The OLE DB connections using "sa" fails when connecting to the exact same table to "SQL Server Destination" but it works fine with "OLE DB Desination" even though it is the exact same underlining table. Why is the "sa" login not working with SQL Server Destination table (data flow destination) in my OLE DB connection Thank you ...Show All
Visual Studio Team System Documentation
Hi, 1. Is there any documentation or user guide for VSTS 2. I wanted to know how VSTS maintains the objects. Is there anything like GUI map or repository Can we edit the properties of these objects 3. Can we modify the recorded steps without generating the code E.g. If I had to add a wait for 10 sec, how should I add that Thanks, Amit. The web test allows you to parameterize portions of an http request but does not have the capability of manipulating the objects on the page. For instance, you mentioned a Login edit box. A web test would allow you to set the form post parameter value for the l ...Show All
Visual Studio Express Editions Problem to compile directX and openGL very basic examples
I've problems to compile all files I've goggled about 'no GLUT' openGL and DirectX using Visual C++ 2005 Express Edition I'm trying all in last 6 hours. I've correctly configured the environment, (I think it's ok because I've compiled easily some other applications that use GLUT). But no one pure openGL project work. Of course, I've downloaded (and registered) microsoft SDK. In example I can't compile the famous lesson01 from nehe openGL tutorial: I've downloaded source (for visual C++) of the famous lesson01 from NEHE: http://nehe.gamedev.net/data/lessons/lesson.asp lesson=01 loadin ...Show All
Visual Studio Express Editions error C3861: 'printf': identifier not found
I think I already know the answer to this but I'll ask the question anyway. When I attempt to compile the following code: #include <stdio.h> #include <stdafx.h> int count; int main() { //Print the numbers 1 through 20 for (count = 1; count <= 20; count++) printf( "%d\n" , count); return 0; } I get the message: error C3861: 'printf': identifier not found Does this message have to do with the changes made to Visual C++ Am I missing something obvious Try this: #include <stdafx.h> #include <stdio.h> Or turn o ...Show All
Windows Forms ASCII Control Characters in a TextBox
I have an application where I need to be able to scan a barcode into a text box. The barcode scanner is setup to act like a keyboard, so any characters in the barcode are "typed" into the text box. The problem that I am having is that the barcode embeds the ASCII control characters RS, GS, and EOT (ASCII codes 30, 29, and 4, respectively), and these characters MUST be preserved. Once in the textbox I want to perform a simple replace on them to replace them with the strings "<RS>", "<GS>", or "<EOT>". Unfortunately, somewhere between the keyboard and the .Text property the control char ...Show All
Visual Basic Word Automation Error 462
I am having an interesting error. I am using VB to Automate a Word document, and having some trouble. If the user closes the Word Window opend by the program, on their own, then uses the process which opens it again, I get an error: ErrorNumber: 462 Error Message: The remote server machine does not exist or is unavailable Originally I got this error anytime I manipulated the word document object, so I reinitialized the Word Application Object and the Document Object. Now I can send text to the selection object, add images, etc, but if I try to access the PageSetup property (to set the margins, for example), I get the same error aga ...Show All
Smart Device Development Keeping Smartphone Internet Connection
When a Windows Mobile phone is attached to the computer, the Internet/data Connection on the phone will drop automatically. Is there any way we can change this behavior manually or programmaticall so that the phone will keep the data connection while connected to the PC cyx wrote: When a Windows Mobile phone is attached to the computer, the Internet/data Connection on the phone will drop automatically. Is there any way we can change this behavior manually or programmaticall so that the phone will keep the data connection while connected to the PC check your advanced power/con ...Show All
Visual Studio Express Editions Problems removing VS.net for VB Express
Last year installed VS .net on workstation. Never found the time to do the learning curve. Was pleased to see VB Express and SQL Express as most of my projects fit the parameters of these programs. VB Express installed with no problems on IBM laptop with no prior VS or VB programs, so went to install VB Express on desktop. All warnings pertained to VB express prior beta installs and so went ahead and dl / install VB Express. First thing I noted was that no toolbox shows up, and second when setting up new project there are no templates. Took a snapshot of that but cannot paste into the forum. Tried to delete VS .net via control panel and plac ...Show All
Visual C# Localizing Application (User) settings
I am running C# 2005 beta 2. I need to persist several strings in app.config using Properties.Settings. I will programmaticly set a label's text property with the string. Everything works great, except I can't figure out how to localize them! Localizing the form won't work as the label's text will change with the application's current state. I get the string I want using something like this: string temp = S ettings .Default.myStringName; // where the current state determines which string I retrieve. MyLabel.Text = temp; // temp is different for different states eg. "Working", "Done", "Hung ou ...Show All
Windows Forms getting active form for application
I want my messageboxes to center over the active window, not the centerscreen. I see the owner parameter and this works when I pass a form. Sometimes, I want to display a messagebox from a class though and have no reference to the calling form. I thought I could use Form.ActiveForm, but it always seems to return null. How would I go about this Thanks There’s good news and bad news. The good news is that the .NET Framework’s MessageBox class internally uses the GetActiveWindow API function to retrieve the handle of the active window attached to the calling thread, so assuming you’re trying to disp ...Show All
Visual Basic IDisposable problem
I'm progressing through Wrox: Professional VB 2005 we're now to the section on IDisposable. Public MustInherit Class Person Implements IDisposable .... Private mPhones As New Hashtable My problem is that the message under IDisposable is class 'Person' must implement 'Sub Dispose' for interface 'System.Idisposable' However I have that Private Overloads Sub Dispose( ByVal disposing As Boolean ) If Not Me .disposed Then If disposing Then ' TODO: put code to dispose managed resources mPhones = Nothing End If ' TODO: put code to free unmanaged resources here E ...Show All
