i need a function that:
when i enter a date , function checks that format
if that format is correct return 1 and if not correct return 0;
and type of date field in database is not "date" its "varchar".
and my date is solar it's not of the Christian era.
thanks for your help
Hi guys, I asked about this yesterday, but the only suggestion I got did not help.
I tried to write a service in C++ using the template provided in Visual studio 2005. The service seemed to compile and install fine, but, it does not appear in the service listings. Does anyone have any suggestions?
I am new to Managed C++ (VS2005). I am currently in the process of drawing lines onto images, which are loaded from HDD. I can add a line onto the image, however whenever I try to draw another line over the image, the previous line object dissapears. Is there a way of keeping all the lines on the image???
It depends on what you're doing. If you're drawing the line onto the screen in WM_PAINT, then you're not drawing on the image at all. You'd need to keep track of all lines, and draw them. If you're drawing onto a graphics object that contains the bitmap, then the lines should persist, unless you're reloading from disk for some reason, then you'd need to save first. It really depends on what the code looks like.
If you're drawing to a bitmap, you should use Graphics.FromBitmap at the point that you want to draw, you should not store a graphics object. Then, I have no idea if drawing onto a bitmap in a picturecontrol forces the control to update itself. You'd do better to just have a Bitmap in memory, draw it in your paint handler, then draw your lines and call Invalidate(), or keep the details of the lines in an array and draw them over the image in your paint handler.