I'm typically a Application guy but recently came across a need for a page to contain a "control" which supports word processing type capabilities.
Immediately my head went back to a time where I used the MS Office components to have instances of excel and word inside my application for easy...
Basically, I have a picture box which I would like to display "points" on it in one of two ways:
1. Prefered would be to draw an actual point on or on top of the picture box
2. Modify the image to change the pixel (do not want to do).
Also is there an easy way to get the scale factor of the...
Hi there. I'm building an application which spawns a number of threads to do a lot of different simple unit style tasks. While everything seems to be nearly exception free there is a case maybe every couple days of runtime that something throws an exception. The problem is that the...
Hi. We have an application that we (for performance reasons) would like to compile into native code at build inside of 1st run.
What is the best way to do this? I also understand the downside to this but we are certain we need this for immediate speed as the JIT compiling is too slow for...
I'm looking at moving away from our custom designed GDI graphics and toward DirectX for a simple display surface that does two things:
1. Display a bmp quickly
2. Display colored points on the bitmap
3. Display rectangles on the bitmap
Seems easy but I haven't had time to look into Managed...
We have a manufacturing machine with multiple threads that perform very repetitive work. We would like to keep a thread doing it's work until a function is done. In java I guess it's called "critical sections" (could be wrong) where you can force the function to finish before the processor...
Hi I have a service that is actively listening for a certain signal and on that signal will launch a regular C# .Net 2.0 Windows Application. I'm using the following code:
Process fwi = new Process();
fwi.StartInfo.FileName = "D:\\MYAPP.exe"...
Hi there. I'm using a binary serializer right now and it works great. I'm quite familiar with them and how to decide whether we should/can serialize certain objects out.
Currently we are serializing a collection which contains many core components. The problem we have is that as we serialize...
Hi there. I've been using GDI to display a bitmap that I update line by line for a certain application as the lines come in. The problem is that GDI is slow when the image gets big and of course GDI is becoming emulation in Vista.
I'm looking at Managed DirectX to do this. I have some...
Hi there. We are in Visual Studio 6.0 with C++ code.
We have a need for a single application to use more than 4GB of system memory.
I know the long term best method is to separate interests and isolate the portions of the code into separate processes but the short term need is to have a...
Hi there! I currently have a treeView setup to represent a series of objects that connect using subscriptions sort of willing nilling....aka not a sequencial.
I've looked at a number of built in .Net 2.0 Components including the FlowLayoutPanel. It seems to be at least a little bit of what I...
Hi, I have a standard .Net 2.0 queue on one thread that is being populated by another thread. We are in 64-bit and have 4 cores total.
We also have a mutex controlling access to the queue
Unfortunately when I break point in the queue's thread, I can watch the queue's count drop.
1...
Hi, I'm fairly new to overriding events on controls but so far I'm doing fairly well. The one I'm overriding right now is the double click event on a treeview. I grab the node and the associated data with it and when the user then clicks another node I "subscribe" the one node to the other...
Hi everyone. Not sure why this wasn't a problem before but we are in a multi thread application and multiple threads are calling into the same static class and method. Well as you can guess they are conflicting and while I can do fairly well on interface and general programming I'm a virgin...
Hi, I have a device that I can communicate through hyperterm but to start communication it requires the command (CTRL+A)1 sent to it. Very easy with the right settings in hyperterm but I can't seem to find the right way to send the same command to the SerialPort object in .Net 2.0 C#.
Also...
I have a treeview which represents a standard "Hyarchy" structure. The lowest nodes in the treeview can be connected together using events (some are outputs and inputs). We hired out a programmer a while back to create a sheel during heavy load and the guy did an okay job. Apparently in C#...
Hi guys. I have a motion controller which is nothing more than a serial port device. The dll is old and written in 32-bit. I have an "interface" dll which wraps and does a DLL import on the DLL itself (along with a few other motor controller dlls to make a common interface).
On a 64-bit PC...
Hi there. I have a List<List<Point>> (maybe this is a bad idea but i need 2D array with speed).
The problem I have is search for points inside this array. I know that I should use a Predicate but the only example I found (interestingly enough) is from Microsoft and they are using an Array[]...
I've searched the forum with no matches to treeview and drop or drop. My apollogies for all the posts recently.
I have a populated treeview on the left of a user control. The right is to be populated by draging a node from the left into the right.
I can't even seem to get dragging to work...
Is there a semi accurate method of calculating the approximate square root of a number?
We are using a distance formula on some shorts and would like to approximate the square root to save time.
Any ideas?
=====================
Insider
4 year 'on the fly' programmer
C, C++, C#, MFC, Basic...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.