Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kaare Tragethon

@Kaare Tragethon
About
Posts
27
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    jkirkerx wrote:

    I didn't know you were binding, that's different.

    Sorry for that, I should have provided more info in my initial post. Thanks for the excellent link, I'll sure read about it and may ask some questions here.... Thanks again for helping me out :-)

    ASP.NET csharp javascript asp-net beta-testing question

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    Found the "problem": I was using the Spline chart which takes a long time to calculate. Changed it to Fastline with the following results: 10000 points (10000 X-values and 10000 Y-values) Spline took appr. 27 seconds Fastline took appr. 0.5 seconds Thanks for the feedback, it helped me on the way...

    ASP.NET csharp javascript asp-net beta-testing question

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    I mean that it doesn't take long to do the following:

    //.....
    command.CommandText = "SELECT TimeStamp, " + siloNo + " FROM SilosGraphHistory";
    UxChartSiloHistory.DataSource = command.ExecuteReader();
    UxChartSiloHistory.Series["UxChartSeriesSilo"].XValueMember = "TimeStamp";
    UxChartSiloHistory.Series["UxChartSeriesSilo"].YValueMembers = siloNo;
    UxChartSiloHistory.DataBind();
    //.....

    It exits my method (that fetches data from the SQL server and binds them to the chart) in milliseconds. Then, after that, I'm unable to find out why it takes so long... Do you have any tricks to detect where the time goes?? The final size when saving it to my desktop is just 30kb. I am indeed a beginner in ASP.NET and C# so please have that in mind, and thank you very much for taking the time to answer my questions....

    ASP.NET csharp javascript asp-net beta-testing question

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    I've just tested, and when populating a small amount of data it runs fast, however when populating more data the process slows down. The SQL query runs fine, my x/y plotting runs fine. But after my methods are finished it slows down. It must be something with generating the picture.... FYI: I'm generating a chart based on a timeline with appr. 10000 rows with the X/Y values in two separate columns on each row. Any suggestions?

    ASP.NET csharp javascript asp-net beta-testing question

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    I'll check it out, thanks!

    ASP.NET csharp javascript asp-net beta-testing question

  • Estimate/Calculate time to load a chart in asp.net / C# / JavaScript
    K Kaare Tragethon

    I have some charts taking a long time to load (up to 15 seconds). I would like to calculate the time to load if possible. I already have a feedback to the user using javascript and ajax extensions, but I cannot find any kind of "feedback" from the chart control so that I can display a "6 seconds to finish". Is there any way to calculate/estimate this?

    ASP.NET csharp javascript asp-net beta-testing question

  • Calling .dll from a C# application (problem when outside VS2010)
    K Kaare Tragethon

    I see, thanks for the help!! :-)

    C# csharp visual-studio help

  • Calling .dll from a C# application (problem when outside VS2010)
    K Kaare Tragethon

    You are correct, it is VirtualPC. I've "extracted" a .dll from the vpc.exe file (using tlbimp vpc.exe /out vpc.dll). I've tried searching google A LOT, but there's very little (or no) documentation on this that I can find.... The only thing I could find was the above "extract" method.... Thanks!

    C# csharp visual-studio help

  • Calling .dll from a C# application (problem when outside VS2010)
    K Kaare Tragethon

    Hi, I have tried to register the .dll but I get an error message like "DllRegister" was not found, not a valid DLL or OCX file.... Not sure what this means but I've tried this both on the development machine and on the client machine.

    C# csharp visual-studio help

  • Calling .dll from a C# application (problem when outside VS2010)
    K Kaare Tragethon

    Hi all, I have a C# application that uses vpc.dll. The application works without problems when running in VS. I have added a reference to the vpc.dll which reisdes in the project location (the same path as the .exe). However, when I install the application on a client machine (using SetupProject in VS where I have included the vpc.dll to the application folder) the call to vpc.dll fails. Basically it will not run at all. I'm fairly new to computer programming, but I find it strange that it works inside VS, but not when installed on client machine. Thanks for any pointers!

    C# csharp visual-studio help

  • Accessing other projects "user.config" file
    K Kaare Tragethon

    Hi all! I have another post about this issue, but I will try to explain myself a bit better this time (sorry for posting 2 times) since the previous post did not get any attention! Here's the situation: I have a WinForms project called WinFormsProj1. I have several settings in this project which are saved in a "user.config" file (which lies in "C:\Users\Kåre Tragethon\AppData\Local\WinFormsProj1\WinFormsProj1.exe_Url_********\VersionNo\user.config"). From my main application (WinFormsProj1) I can find the path of the "user.config" by:

    Configuration _usrConfigLoc = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);

    And then

    string _filePath = _userConfigLoc.FilePath;

    In the same solution I also have another project called WinFormsProj2. I want to access the user.config file to WinFormsProj1 from my WinFormsProj2 project. How can I find the file path? I must point out that the path I am looking for is NOT the "C:\Program Files\WinFormsProj1......"!! I am looking for the path of the user.config file which lies in "C:\Users\The User\AppData\Local\AppName\AppName.exe_Url_*********"

    C# question csharp winforms help workspace

  • Accessing the user.config file on a newly installed application from the installer itself
    K Kaare Tragethon

    Anyone else?

    C# help tutorial question workspace

  • Accessing the user.config file on a newly installed application from the installer itself
    K Kaare Tragethon

    Thanks again for the very quick replies, and for helping me out and sorry for my bad English and explanations. No I don't use clickonce. I will do some more explaining: I have a main project (main application) which can be installed on any computer. This application contains user settings (user.config) which lies in the following directory: C:\Users\Kåre Tragethon\AppData\Local\Tragethon_Teknikk\EasyNetTools.exe_Url_mxn53vo4iinbepot2fslrsybsd0vtoiz\0.8.4.9 This is the standard location of user settings file, however when the main application changes version a new folder is created, e.g.: C:\Users\Kåre Tragethon\AppData\Local\Tragethon_Teknikk\EasyNetTools.exe_Url_mxn53vo4iinbepot2fslrsybsd0vtoiz\10.8.4.9 I also have an installer application in my project (the standard VS built-in installer). When I un-install the application I want to access the user.config file and get all the settings from this file (and I will save all the settings in the TEMP directory) so that when I install the application again I am able to retrieve all the settings (access the user.config file and write all the previously saved settings). Most often the reason for uninstall->install is that I have made a new version of the software and therefor I cannot rely on a static path to the user.config file, I will have to get it programmaticly.

    C# help tutorial question workspace

  • Accessing the user.config file on a newly installed application from the installer itself
    K Kaare Tragethon

    Thanks again for the very quick replies, however my problem is that I want to find the main application path and not the installer path. If I call Application.UserAppDataPath inside the installer it gives me: C:\Users\Kåre Tragethon\AppData\Roaming\Microsoft Corporation\Windows Installer - Unicode\5.0.7600.16385 I want to be able to find the main application path: C:\Users\Kåre Tragethon\AppData\Local\Tragethon_Teknikk\EasyNetTools.exe_Url_mxn53vo4iinbepot2fslrsybsd0vtoiz\0.8.4.9 Let me know if anything is not clear and I will try to explain some more.....

    C# help tutorial question workspace

  • Accessing the user.config file on a newly installed application from the installer itself
    K Kaare Tragethon

    Thanks for the quick reply, however this doesn't work exactly as I want to.... When running this code I get the C:\Program Files\..... folder and the corresponding .config file. However I want to access the .config file which lies in: "Users\user\AppData\Local\CompanyName\AssName++++\VersionNo\user.config" Any ideas?

    C# help tutorial question workspace

  • Accessing the user.config file on a newly installed application from the installer itself
    K Kaare Tragethon

    Dear all. I want to access the user.config file from the installer itself, the problem is that I don't know how to get the path of the newly installed application. I know that the user.config file for my main application is somewhere in "'user'\AppData\Local\.... but I don't know how to access this area from the installer itself. In my main application it is very simple, I just call:

    Configuration _usrConfigLoc = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);

    Inside the installer I have tried:

    Configuration _usrConfigLoc = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);

    This returns the path of the config file of the installer (and not my main application) Does anybody have a way to find the freshly installed user.config file from the installer application?

    C# help tutorial question workspace

  • How to remove a registry key during un-install (with the VS Setup Project)
    K Kaare Tragethon

    Sorry for bothering you guys.

    C# visual-studio windows-admin tutorial question workspace

  • How to remove a registry key during un-install (with the VS Setup Project)
    K Kaare Tragethon

    Again, thanks for the quick reply! I guess I should have informed about the following: I'm a total newbie in computer programming in general. I have tried to search google (and codeproject) for solutions to my problem and I've indeed found many examples on how to create custom installations/un-installations..... My problem is that these examples are either too complicated for me to understand, or too general for me to be able to use for my specific problem. Maybe I'm a "lost case" since I cannot uderstand the existing examples on the internet, but if any of you have the time to help me with this I would really appreciate it (either with a specific example on how to resolve my problem, or a very (VERY) simple example on how to solve something similar). Again, what I want to do is to remove one registry entry during un-installation.

    C# visual-studio windows-admin tutorial question workspace

  • How to remove a registry key during un-install (with the VS Setup Project)
    K Kaare Tragethon

    Hi. Thanks for the quick reply. I have tried to create custom actions but without success (I'm not really sure how to do this). Would you please provide an example on how to do this? Sorry for the "extra work"....

    C# visual-studio windows-admin tutorial question workspace

  • How to remove a registry key during un-install (with the VS Setup Project)
    K Kaare Tragethon

    Hi all! I have an application which provides the user with an option to start my application automaticly at windows startup (using the registry HKEY_CURRENT_USER\Software.....\Run) and this works excellent; whenever a user wants to run the application at startup I simply create the registry entry and everything works fine. However if the user wishes to un-install my application the registry key will still be present in the registry..... Does anyone have a good idea how to remove the registry key during un-install? (I use the built-in VS Installer Project) Thanks!

    C# visual-studio windows-admin tutorial question workspace
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups