Topics
-
-
- Leaders
- 5 replies
- 9.8k views
Okay - this is what my code is trying to accomplish (in relative pseudo-code): SetStatusBar("Start Operation 1"); SetLabel("Start Operation 1"); Thread th1 = new Thread (new ThreadStart(Operation1)); th1.Start(); // WAIT FOR th1 to finish without loosing focus on the UI SetStatusBar("Operation 1 Finished"); SetLabel("Operation 1 Finished"); SetStatusBar("Start Operation 2"); SetLabel("Start Operation 2"); Thread th2 = new Thread (new ThreadStart(Operation2)); th2.Start(); // WAIT FOR th2 to finish without loosing focus on the UI SetStatusBar("Operation 2 Finished"); SetLabel("Operation 2 Finished"); SetStatusBar("Start Operation 3"); SetLabel("Start Operation 3"); …
Last reply by jccorner, -
-
- 1 reply
- 6.4k views
I am launching a process from which I need to capture the Output (typically what you would see if run at the command line) - so I did some digging and found that you can redirect standard output to a stream (which is exactly what I needed). The some problems arose, specifically I need to ensure the process is hidden (I don't want a command shell opening on top or showing at all, to ensure the ensure can not kill the process by hitting X and for estetics) but it seems to use RedirectStandardOutput I need to ensure that UseShellExecute=false and somehow this now makes the command window appear on screen (as it didn't before I started to try and get my output to redirect.…
Last reply by mskeel, -
- 4 replies
- 1k views
Hello, Im working on a site that requires me to divide the page(Main events page) into 3 parts. One part being a calender, a part to login and a part to show the events on the date selected. The login and calender are done. The user wants the events part to be displayed in a frame, just like this box im typing in with a scoller. I've put an IFrame object but what I cant do is add the events objects(usercontrols) to the page that the IFrame will display(events page) a different page from the Main events page. I want to be able to add the usercontrols into the events page dynamically so that the IFrame will show the events page. How can this be done?? Thanks alot.
Last reply by MrPaul, -
-
- Leaders
- 1 reply
- 1.3k views
This is going to be fun to explain... I am using the LISTBOX (lbOutput) as a way to output information to the user (via the lbOutput.items.add(sInfo);) - when the listbox itself gets full the scrollbars appear except that the focus remains at the top of the listbox. As lines keep getting added the user has to scroll DOWN to see the information. I need the opposite, I need to ensure the Listbox will always show the LAST ITEM ADDED at all times, if the user wants to see what happened before he can easily scroll up using the scroll bars. Kind of like how the command prompt works. I went through the ListBox properties and was unable to find anything to that effect - a…
Last reply by snarfblam, -
-
- 1 reply
- 2.7k views
Hello, Do you know how can I check the size of free space on remote disk using FTP client written in C#? Thanks for Help Wojtek
Last reply by Wing, -
- 2 replies
- 825 views
Hi I am passing a dataset to my crystal report which has two tables, "dstMembers" and "DuesData". Both tables are linked by a Member_ID with the dstMembers containing the primary key. I have created a dataset in my project and have added the Relation between both tables, and in Crystal reports when I view the "Links" tab in the Database expert dialog the link has already been set up. When I go and produce my report and publish it to a .pdf format, my report firstly prints only one record from the "DuesData" at a time i.e. my members name is John Doe, and he has 3 records in the "DuesData" table. That means that The name John Doe is printed out 3 times. Also my r…
Last reply by pendragon, -
- 1 reply
- 591 views
While installing VS.NET 2005 there is a component named "Dotfuscator Community Edition" Its description indicates that "Obfuscates .NET assemblies to hinder attempts to decompile orreverse engineer .NET applications" I can understand from its description that what it is doing. But however, I don't know how should I use it while compiling my executable programs? Anyone knows? Thanks.
Last reply by MrPaul, -
- 3 replies
- 1k views
i"m trying to upgrade my site index and i found here: http://support.microsoft.com/default.aspx?scid=kb;en-us;820105 the article show how to use microsoft indexing system. but the exmple run on txt files, and i want to index my site page (.aspx & .ascx pages that have id's, let's say i have articles.aspx page that end with id- articles.apsx?id=1, ... id=2 and so on), how can index my entire site, with different id's, pages names, forums threads and so on? can anyone direct me to article on the subject?
Last reply by MrPaul, -
-
- Administrators
- Leaders
- 4 replies
- 2.2k views
Hi well i made my first try to make a file browser but its SLOW it might be the logic im using... is there any faster better way to make this work? would be greatfull for any help!!! here is the code i wrote: private void Form1_Load(object sender, EventArgs e) { AddDrivers(DrivertreeView); } private void AddDrivers(TreeView TreeViewControl) { DriveInfo[] DriverInfos = DriveInfo.GetDrives(); foreach (DriveInfo Driveinfo in DriverInfos) { if (Driveinfo.Name != @"A:\") { Icon i = ShellIcon.GetSmallIcon(Driveinfo.Name); SmallIc…
Last reply by Wing, -
-
- 5 replies
- 1.5k views
I have a thread that I want to act as a clock. It read a hardware counter and keeps track of the counts that occur. This clock thread will also have a public method of receiving time durations from other threads to signal those threads when the duration is done. My problem is the interface between the clock thread and the worker threads. My idea would be to have the worker thread give the clock thread an time duration and address to a function to callback. So when the time duration had elasped then the clock thread calls/invokes the function given to it from the worker thread. Is there a way to pass this callback from worker thread to the clock thread? Or is there a…
Last reply by Pickle, -
-
- Leaders
- 1 reply
- 715 views
Hopefully quick & simple question - I start a thread that launches a process and gets the ExitCode of that process and I need to somehow return that information (the integer exit code of the process) back to the UI which spawned the thread (and this can happen when the thread ends/terminates, no need to send it immediatly seeing as each thread is only responsible for launching a process they will end gracefully after getting the exit code anyways). So - is there a nice way to return the exit code of a process launched from a thread to the UI (that spawned the thread)? Some way to return a value like we would do with a function for example? I got it to work one w…
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 701 views
I am trying to accomplish something like this: { string sType ="Update"; Thread th1 = new Thread (new ThreadStart(Operation1(sType))); th1.Start(); } private void Operaton1(string sType) { if (sType == "Update") { } else { } } Obviouslly this doesn't work and returns and error message as follows: Method name expected It works fine if my "Operation1" has no parameters but I somehow need to pass the information from "sType" into the Thread itself... How could I accomplish passing a STRING into a THREAD I am about to start? Any help would be greatly appreciated. Thanks,
Last reply by snarfblam, -
-
- 2 replies
- 787 views
My goal is to have a FORM always displayed the to user (even though you he can't do anything with it) that contains a listbox that will display information to his - this form (frmMain) will launch "something" like 5 times in a row (one after the other) and inbetween each launch (when the job is complete) I want to display the information in frmMain for the user to see the progress... Pretty simple... Pseudo-code Display ("Starting Processing"); Display ("Starting Task #1"); StartTask(1); Display ("Finished Task #1"); Display ("Starting Task #2"); StartTask(2); ... etc ... ... etc ... (where "Display" updates the listbox and "StartTask" launches the task and waits …
Last reply by Shaitan00, -
-
- Administrators
- 3 replies
- 955 views
Hi, I am playing around with an existing intranet application. This web application is a query tool that does many different types of queries depending on the selections made by the user. At present what ever type of query the user selects will cause the page to redirect to the relevant page for that query. It is ok and there are no issues. It's just looks a bit naff having the page refresh and flicker everytime the query type changes. Also get more unmaintainable as time goes on. I have added a user control for the user selection and used some ajax in it and it looks much smoother. What I am now trying to do is have just one web page and dynamically add the appropr…
Last reply by davearia, -
-
-
- Leaders
- 2 replies
- 1.6k views
I have two FILETIME (using System.Runtime.InteropServices;) variables that contain File Times and I need to compare the two to find out who is never. In the past (VC++6) I would simply use [-1 == CompareFileTime (&mrft, &ft)] but this doesn't seem to exist in C# [2002] nor am I able to find its replacement. So how does one go about performing a CompareFileTime of two FileTime variables in C#? FILETIME ft, ftMostRecent; ftMostRecent.dwLowDateTime = 0; ftMostRecent.dwHighDateTime = 0; GetFileTime(&ft); if (-1 == CompareFileTime (&ftMostRecent, &ft)) { // ... do something ... // } Specifically I need to know if "ft" is more recent then "…
Last reply by dynamic_sysop, -
-
- 17 replies
- 3.7k views
I'm converting code from VC++6 to VC#2002 and have encountered my first roadblock with respect to using "RegEnumKeyEx" to compare the time stamps of registry keys (when they were created to find the newest one). Currently I do the following in VC++6 to determine which key is the newest: FILETIME ft, mrft; // mr = most recent mrft.dwLowDateTime = 0; mrft.dwHighDateTime = 0; while (ERROR_SUCCESS == (rc = RegEnumKeyEx( hkBase, Index++, Name, &Length, NULL, NULL, …
Last reply by MrPaul, -
-
- Leaders
- 6 replies
- 3.4k views
I was wondering if there was a way to CENTER text in a ListBox - specifically I have a listbox (lbInformation) to which I add items [lbInformation.Items.Add(sItem);] and I would like this to be displayed in the listbox as CENTERED text (not default left-justified) however I can't seem to find any settings or properties that allows me to set the text positioning - is there a simple way to achieve this? Any help would be much appreciated. Thanks,
Last reply by MrPaul, -
-
- 2 replies
- 1.5k views
A colleague and are attempting to add python scripting support to a win forms application developed in .Net 2.0. The initial prototyping went well but the new scripting components stopped working once we integrated it into the main application. We think we've isolated the problem to either a problem with Python.Net, the python implementation we are using, or how we invoke the python scripts from within the background worker thread. Here is a simplified code snippet that recreates the issue we are seeing: PyObject pyPlugin; string pathToScript; private void button1_Click(object sender, EventArgs e) { //*************** START SECTION 1 ********************…
Last reply by mskeel, -
- 1 reply
- 1.8k views
I need to create a standard menu item HELP->ABOUT and can't seem to find the corresponding about form template in Visual Studios 2002 (C#) - does anyone know where it can be found or do I really need to create my own customized ABOUT form? I vaguely remeber there being a template for such a generic required form. Any help would be much appreciated... Thanks,
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 1.3k views
I am using crystal reports and using the push method to provide the data to the crystal report from a dataset. Everything is working correctly, in that I am getting back the data and displaying it in my report. The one think that I am having problems with is the sql image type. How can I represent this in an vb.net dataset table, i.e. what is the corresponding datatype System.X? Mike55.
Last reply by mike55, -
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online