The problem with Windows ContainerControls and trying to create your own alternative for "seamless" AutoScrolling is that setting 'AutoScroll to 'true means Scrollbars will be shown.
But, the bigger problem is that Win Forms is not designed for smooth animation ... at least not from programming regular C# with no API calls ... If you have a FlowLayoutPanel with lots of fancy Controls in it, moving it yourself within its ContainerControl will probably lead to a "herky-jerky" kind of effect. And, what the user sees is probably going to be influenced by the power of their CPU, GPU, etc.
To do animation of Controls, Windows, etc., why not consider WPF rather than WinForms: it's designed to support such advanced graphic features.
Please, as Dave suggested, format your code example.
Try and state your goal here very clearly: is it to make a FlowLayoutTable Control inside a Panel automatically move right or left ... an animation ... when the mouse is within certain areas ?
The solution I would use would not involve using 'AutoScroll at all: I'd use a 'Timer, and two Panels outside the Panel that contains the FlowLayoutTable.
Be happy to help you discover how to achieve this, but I want to see more work on your part, first, and I strongly suggest you think about whether a lot of work here might lead to a disappointing visual result.
« I had therefore to remove knowledge, in order to make room for belief » Immanuel Kant
i just copied and follow their code to implement same in winform but mine is not working. i guess i am missing or making a small mistake for which my scrolling is not working.
so please first see image preview link and if u have trust then download the apps from one drive and run at your end.
you will see writing a very minimum line of code how a nice automatic scrolling can be done. looking for your help. if possible please investigate my code and tell me what mine is not scrolling. thanks
I am writing an application with Windows forms which has to enable user to select a webcam connected to his computer via USB and print the video stream in the window. I need to get some of the frames (let say every 5th frame, but it depends on fps I get) and search it for an graphic object that was defined earlier by the user.
As I am new to c# and Visual Studio I was searching for an example of an application similar to what I want to do. I found a few examples on AForgery, but I would like to print original video with just added a few markers on it and AForgery gives me processed frames. Also, when I aded simple processing in the receving new frame event, the performace was pretty bad. I tried the WIA and what I get is an error when I try to call device selection dialog.
Device dev = dialog.ShowSelectDevice(WiaDeviceType.CameraDeviceType,true,false);
What I get is HRESULT exception with error code 0x80210015. I am not sure if WIA is exactly what I need, but because of this error I can't check it.
I need help with selecting the best video stream fiting that kind of application and the more I search, the more I am confused. I do not need to send video over IP or save it. I just need to present the video stream from the camera and sometimes get a frame (the best would be RGB) for processing. I would appreciate any suggestions on stream selecting or linking documentations/examples.
i have been doing all of procedure like this tutorial..
when program running..no error happend..
when i try run my program that i made, error happend
error program is = "axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
this is a full program
public partial class Form1 : Form
i am still not understand..
why this coding error
"axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
in video tutorial, error is not happening???
Convert.ToDouble(textBox1.Text)); error in this section....
and your coding
if (double.TryParse(txtBox1.Text, out coordinate)
axMathworks_Strip1.AddXY(0, a, coordinate);
i add "a++" when i run, the program successfully executed....can u give me short explanation...sorry for my english..
The reason my version works and yours didn't is because of what TryParse does. Basically, if it cannot parse the value into a double then it will not execute the Add section. Using Convert.ToDouble will throw an exception if it cannot convert the value.
I'm assuming it be due to the textbox value. Some countries use a dot as decimal seperator, others use a comma. In the background of the code this is not so. (always dot). To make sure that your textbox value parses to a double correctly look into the double.TryParse function.
in that case you better start by picking a C# book and start reading from the start. This is very basic stuff.
A textbox gives the user's input as a piece of text, a string. a double is a certain type of number. Your computer is a machine and it only know 0 and 1. In this case the function expects a double, which is represented as a different series of 0 and 1's than a string, hence it doesn't understand the input. To make the input change from text to double you need to "parse" it. (parsing is like converting, you change the text value 1.123 into a double number 1.123 which is represented differently), but the "parsing" function makes some "assumptions" on the text it is given. (decimal operator is a . or , eg).
int, bool, double, float, string, char, ... they're all represented differently in the machine.
hope this clarifies things, but take the first sentence as advice, please.
This is best accomplished by syndicating dot-com portals and embracing real-time platforms in order to deploy turn-key e-commerce solutions. Assuming iterated e-business convergence, morphing enterprise solutions to generate clicks-and-mortar e-services will likely result in envisioneer B2C experiences. I recommend you innovate WAP Enabled e-markets in order to synthesize end-to-end content. Relevant B2C web-readiness models connected to disintermediate global infomediaries will allow you to exploit geo-processing services.
Further, if you mesh real-time monitoring niches and empower distributed partnerships, you will be in a position to seize B2C solutions. Growing out-of-the-box L-markets and enhanced scalable supply-chains are another way to reinvent value-added channels. I recommend streamlining asset tracking bandwidth and strategizing dynamic functionalities so that you can extend proactive mindshare. In my experience, transitioning next-generation infrastructures and maximizing integrated Related Interoperability are valuable endeavours.
IMHO, it's important to seek Bird-Dog visionary convergence and drive best-of-breed architectures to leverage frictionless methodologies. I also recommend you utilize killer channels, synergize e-business programs and reinvent impactful experiences. Scaling mobile programs and vision-oriented, well-modulated superstructures will enable an integrated heuristic application.
Hii thanks for reply but i have already developed service who process this thing but i want to create multiple instance of the service to load balance the queue of messages but its takes too much memory size and dbo operation which slow down my server speed and work and affects other services and site some time it shutdown whole server if queue is high i mean in billions so what will be the best way to accomplish this things.
Thar really depends on what you're using for your queuing, but you really should look at distributing the queue across multiple redundant balanced nodes. You might want to consider Azure or Service Bus Queues. This[^] should get you started.
The code really depends on which route you go, but you're concentrating on the wrong part. The issue is how you lay out the architecture - you need to decide that long before you even touch the code. You need to be aware of such things as do you want to support polling? How is the redundancy going to be handled? Do you need transactional support on your messages? These, and many more things, are the things you have to sort out first.