|
How can we possibly answer your question unless we know how you came to this conclusion?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
thanks for your reply.
I just plot the same line chart with Zedgraph and MS chart control (i.e., the same x and y list values), then the time taken by MS chart control is much longer than Zedgrah.
|
|
|
|
|
Are we talking minutes, seconds, days? You gotta provide more info.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well, two things
1 - are you sure it's faster for ALL graphs, or just the type you're testing
2 - why do you care ? Just use the control that works best for you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Your testing, or results, is very incomplete.
Besides, the MSChart control is older than dirt itself, wasn't designed with the .NET Framework in mind (interop overhead, and pre-dates even the idea of the .NET Framework). Then there's ZedGraph, which was designed entirely under .NET. Is it really such a surprise??
|
|
|
|
|
Hi
i want share my exe app in network and users can run it via network, but i need grant full trust permisson to my assemblies, but i don't know how to do that.
Note 1 : i don't want to do this by caspol.exe, i want to do this by code or setting properties(within my app).
Note 2 : i found this url[^] for grant permisson to assemblies (Using the Trust Assemblies Location Property), but it is for VSTO and i want to do this for Visual Studio 2005.
can anybody help me ?
Thanks
|
|
|
|
|
I'm not sure a) you can do that programatically, or that b) it's a good idea. Security is put into place for a reason, and any application that attempts to circumvent it should be untrusted.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Saturday, January 3, 2009 5:58 AM
|
|
|
|
|
Hi John
if you follow that link, it's possible to do that programatically.
|
|
|
|
|
Yes it is possible to do it programatically. Obviously your application will need to be full trust to do it.
Think it though! What would be the point of having this security if an application can just grant themselves the permissions they don't have without any checks?
|
|
|
|
|
Thanks Mark
I don't have any security policy, i want only test it and do that which how to set app full trust programatically ?
Thanks
|
|
|
|
|
Hi
I have a very strange problem. I am using Visual Studio 2005 and C# to develop a Windows application. My database is a MS Access 2003 database.
On my Form I have a DataGridView that is bound to a table in the database. There are also a few DataGridViewComboBoxColumns that are bound to different lookup tables in the database. I specify the BindingSources for all of these using the designer. When I run the app the DataGridView is populated as expected. The DataGridViewComboBoxes also work fine and I can change the values. The database is also updated correctly. So everything seemed fine.
Then I added a Button control to the form by dragging a Button control from the Toolbox onto the Form. Before I added any further code I ran the app again to check something. This time I encountered a problem. After I clicked the Close button in the Controlbox (Top right on the form) the DataGridView gets cleared of data row by row and when all the rows have been cleared the following message appears: "Index 0 does not have a value.".
I just cannot see the relationship between just adding a Button to the form and this error message.
I am stumped and any advice will be appreciated.
Regards.
Kobus
|
|
|
|
|
It seems pretty obvious that you're trying to delete one more row than the grid has.
Try using the debugger - I know, that might seem too much like being a programmer, but after the first few times, you'll find the debugger to be pretty damn useful.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for the reply.
What baffles me is that I have not made any changes. I have not added new records, or modified records. or deleted any rows.
I run the app and immediately closes it and the error comes up.
Kobus
|
|
|
|
|
Hi,
How can I save web page in IE by c# such that it just like one clicking the "Save" button in IE and the web pages will be save in one html plus a folder of its associated images ?
Thanks
|
|
|
|
|
Kim0618 wrote: How can I save web page in IE by c#
AFAIK, you can't do that. For saving web pages, work with "WebClient" class. It has got methods to download a file or data from a webpage. Then use regular expressions to see what are the other resources (images,styles etc) used and send separate request for these to download.
There should be an article on this here in CP. Try searching.
|
|
|
|
|
Will this[^] article help?
/ravi
|
|
|
|
|
Hello!
My application has a DataGridView , which contains a DataGridViewComboBoxCell . Is there any way to make the combo box drop down its list on the first mouse click?
Currently, the first mouse click activates the cell, the second one creates the hosted combo box, and the third click finally drops down the combo box list. I'd like the combo box drop down immediately on one click instead of 3.
Thanks and best regards
Dominik
|
|
|
|
|
Hi
I am not sure if you can set it for individual cells. If you set the EditMode of the DataGridView itself to EditOnEnter then the comboboxes drop down at the first click. Unless another DataGridViewComboBoxCell was in open position. Then the first click will first close the open one and the second click will open the selected DataGridViewComboBoxCell.
All the other cells in the DataGridViewRow will also now be editable as soon as they get focus.
Regards.
Kobus
|
|
|
|
|
That's exactly what I was looking for. Works perfectly, thank you very much!!
Best regards
Dominik
|
|
|
|
|
My pleasure. I am glad I could help. There are so many things that I am still struggling with in DataGridViews. So I gladly help where I can.
Best regards.
Kobus
|
|
|
|
|
hi
i'm having troubles debugging an BHO with IE7 and VS 2008
i'm using the BHO from http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx[^]
the application is working fine for me
I searched to how to debug BHO. this is what I found:
"Set your IE home page set to about:blank . That way you can start up the browser as fast as possible and go where you need to. So, start up the first IE window. Then, from VS.NET use the Attach to Process item in the Debug menu to attach to iexplore.exe. Set breakpoints in your BHO. To break within the constructor, just open a second IE window."
I did that but it didnt work for me
it's just ignoring my breakpoints
do you know otherway to debug?
or maybe I'm missing something?
thanks
|
|
|
|
|
Hi,
i wanna do a macro program for a game.But there is a problem with sending keys to only game application (game window).I am using keybd_event API for sending keys to game window.But i only want to send keys to game window not to explorer or any opened window while my macro program running.When i changed window its still sending keys.I tried to use Interaction.App with giving Visual Basic.dll referance.But Interaction.App is only Focus the game window.I couldnt find anything about my problem.Can anyone help me ?
Thanx
modified on Friday, January 2, 2009 8:18 AM
|
|
|
|
|
|
If there's an article on CP, you should ask the author your questions. And if you use a free library, don't expect it to work as completely as a commercial one.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for your suggestion,
If u have any sol'n, pls... Let me know
Thanks
|
|
|
|