|
You can build your page class from any Control descendant; utilize any list<t> or Collection you want to manage your pages; anchor each page to a page region; and build a navigation system to negotiate the page population. You can do a simple job of it to see what you're getting into. Professional results and deep functionality will not be trivial.
|
|
|
|
|
Not to seem like a total 'tard and be all offensive, but I did say straight up that I am new to C# programming.. I didn't undersand a word of what you said. heh, the guy from Germany spoke better English...
|
|
|
|
|
Good afternoon, would like to know if it has some library that to convert a data base mdb for cdb and to have access the data of this cdb?
Thank,
Cleber Ramos
|
|
|
|
|
|
Hi, first thank for answering.
I am making a Desktop application that gets an archive mdb and converts for cdb. This cdb will be sending for PDA (Pocket PC) and had access there. Then would like to know as I can convert this archive of mdb for cdb using the C#?
Thank,
Cleber Ramos
|
|
|
|
|
Hi Did You Made that application to convert these files or not yet. Becoz i am also serching for this option. Please do reply as soon as possible i will be really thankful to you.
|
|
|
|
|
i am trying to split a jpg right down the center and the left fram splits ok but the right frame has the problem it is 2 time as big as it need to be and it has a huge black border to the right can somebody please help me here is my code
public void split(System.Drawing.Image oimage)
{
System.Drawing.Bitmap bmp = new Bitmap(oimage.Width/2, oimage.Height);
bmp.SetResolution(oimage.HorizontalResolution,oimage.VerticalResolution);
System.Drawing.Rectangle lrec = new System.Drawing.Rectangle(0, 0,oimage.Width/2,oimage.Height);
System.Drawing.Rectangle rrec = new System.Drawing.Rectangle(oimage.Width/2,0 ,oimage.Width/2, oimage.Height);
System.Drawing.Image[] frames = new Image[2];
frames[0] =(Image) bmp;
bmp = new Bitmap(oimage.Width, oimage.Height);
bmp.SetResolution(oimage.HorizontalResolution, oimage.VerticalResolution);
frames[1] =(Image) bmp;
System.Drawing.Graphics gr = System.Drawing.Graphics.FromImage(frames[0]);
gr.DrawImage(oimage, new Rectangle(0, 0,oimage.Width/2, oimage.Height),lrec, GraphicsUnit.Pixel);
frames[0].Save(@"c:\temp\frameLeft.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
gr = System.Drawing.Graphics.FromImage(frames[1]);
gr.DrawImage(oimage,new Rectangle(0, 0, oimage.Width/2, oimage.Height),rrec, GraphicsUnit.Pixel);
frames[1].Save(@"c:\temp\frameRight.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
}
Thanks,
Chad Aiena
|
|
|
|
|
cmarmr wrote: bmp = new Bitmap(oimage.Width, oimage.Height);
Well, it's the width of the original, because that's how you wrote it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks, minor oversight
Thanks,
Chad Aiena
|
|
|
|
|
Hi,
i have a xml file that i get from a website,
and i need to save the xml to the disk, but i need to add a namespace to the xml.
Im using XmlTextReader To read from a stream,
and after that im using xmlDocument.Load.
i want to set a namespace to the xml that i got,
and dont know how.
thanx,
shay
|
|
|
|
|
I am currently using FileSystemWatcher to monitor one directory for new files.
Can i use it to monitor two directories?
How would that be coded? Because when an event occurs(like a new file), the Event handler is the same. Would i have to create another event handler that does the same thing?
|
|
|
|
|
You can have two FileSystemWatchers and one event associated with both of them
|
|
|
|
|
So i take it that Windows will handle event syncronization. Cause if a new file gets dropped in both directories at the same time, would one event handler still be able to handle?
|
|
|
|
|
It would.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All,
I have to syncronise the system Date through c# code.
The scenerio is like whenever User sign In, I have to check the current system date,and compare with the date i have written in Registery, so that he can not use the appication beyond the trial period date.
The Problem is that the User can Manipulate his system date and can sign in n number of times.
If anyone have the code then Please help me out in my problem.
Thanx
Sandeep
|
|
|
|
|
Sychronize the system date/time with what?
|
|
|
|
|
In addition to the constraint you've applied, add another flag in the registry, which tells you if the product has expired or not. Initially, it should be false, but after the first time the user has used the product for more than X days, make it false. After this, even if the user manipulates the system time, the second condition will fail.
Possibly better way to do it:
I While installing, set lastUsedDate to the current date and usedDaysCount to 0 in the registry.
II Every subsequent execution
1. Compare current date with lastUsed date in registry.
2. If they are different
lastUsedDate = current date;
usedDaysCount++;
3. If usedDaysCount > 10
Display nag screen and exit
Else
Get on with the program.
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Is there a way to tell if an object, like a button, has been moved into a container like a group box or a panel. (this is the running app, not in the IDE)
The method of moving would be using the MouseMove event with the button object and I was looking to see if there was an easier way than to use the x,y of the object to see if something was in the container after dragging it.
"Details details. Things to do Things to get done. Don't bother me with details just tell me when they're done." James Price
|
|
|
|
|
Have you looked at the Parent property of the control? That should give you the container of the control.
|
|
|
|
|
When I look at the .Parent of the current moving control, it is still showing my form as the parent.
I am not implicitly setting a new parent but I would not be able to do that because i wouldnt know what to set it to and run into the same issue.
"Details details. Things to do Things to get done. Don't bother me with details just tell me when they're done." James Price
|
|
|
|
|
You set Parent by adding the control to the Controls collection of the parent. Parent will tell you if your control belongs to a different control's Controls collection.
|
|
|
|
|
But I would still have to know what the control was under neath the control I am dragging. I cannot use whats under my mouse because that would be what i was dragging.
Unless I am just missing the point you are making.
"Details details. Things to do Things to get done. Don't bother me with details just tell me when they're done." James Price
|
|
|
|
|
Of course. So, you are drawing on a surface (which requires a control), and you know what that surface is. If you detect/manage events applied to *that* surface, you are trapping the relevant events. So you have to build your class from Control, or one of its derivatives.
|
|
|
|
|
ahh, i see what you are saying.
Thanks, I will give that a try.
"Details details. Things to do Things to get done. Don't bother me with details just tell me when they're done." James Price
|
|
|
|
|