|
Hello everyone,
Anyone knows how to insert a chart in a windows form??
Many thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You have two options
1 - buy/download a charting control
2 - write the code to draw a chart
Once you have your chart, on a bitmap, you can either draw it in your paint event, or use a picture box
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you Graus, please tell me where I can find a free download.
Many thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
hi,
i have a problem with datagridview sort methode.
i doono whether i can sort datagridview by 2 Columns. there's example
username--------actionType--------filename
user1-----------download----------picture1.tiff
----------------upload------------picture2.jpg
----------------upload------------picture3.tiff
user3-----------download----------file1.txt
----------------download----------file2.txt
admin1----------upload -----------config.cfg
----------------download----------db1.mdb
so there i wanna sort the table by 'filename' and 'username', i mean the order of username Column should not change but the order of 'filename' and the association of 'username' and 'filename' should not change neither.
just like the effect in slq 'order by username, filename'
has anyone a idea?
regards
faye
-- modified at 4:54 Monday 15th January, 2007
|
|
|
|
|
Use a BindingSource to bind your table to the DataGridView, then use the BindingSource's Sort property to specify the columns and directions to sort. E.g.:
bindingSource.Sort = "username, filename";
You can also specify the direction of the sort, e.g.:
bindingSource.Sort = "username ASC, filename DESC";
|
|
|
|
|
Hello!
I just learned concepts of OOP and I want some problems to work ... and the answers of the problems to correct me about the results.Know anyone where I can find some kind of problems. The answer is not really necessary.
Thanks
-- modified at 4:15 Monday 15th January, 2007
|
|
|
|
|
a good reference will be YourTeacher.com
|
|
|
|
|
I saw this site ... but is with math.
I need Object Oriented Programming problems
|
|
|
|
|
mihksoft wrote: Know anyone where I can find some kind of problems
You came to the right place.
On these forums you'll find some of the weirdest, rarest, and most funniest programming problems you'll ever meet in your life. Many are high level, but still many are from beginners. Just wait till a question is posted, then try t o think of an answer. Make a dummy project to try out your solutions. When someone does answer and it works compare your solution to his. After sometime you'll know the guys who provide what is usually a "Best Practice" answers from the guys who just screw up thing like me. Stick to them, they will help a lot.
BTW:
If you think your answer is quite good enough why not posting it if no one did? Maybe you'd get sarcasm in the beginning, but don't let that depress you. You'll get a grasp on it soon.
Regards
|
|
|
|
|
How can I open a windows service when the service starts.
I tried to open it, it's opened but the controls don't appear and then immediately it becomes "not responding".(Interactive with desktop is checked)
|
|
|
|
|
You can't just double click on the service's exe file for it to run. Either use he Services applet from the Administrative tools, or in your code use the ServiceController class.
Regards
|
|
|
|
|
Dear All,
I am using XFS API to send commands to ATMs. For example If I want to get the information of Receipt Printer, I am calling the following function..
public class XFS
{
[DllImport(@"msxfs.dll")]
public static extern int WFSGetInfo(ushort SPIHandle, uint Category, IntPtr QueryDetails, uint TimeOut, ref IntPtr result);
}
I want to know that what value of SPIHandle I have to pass.
|
|
|
|
|
you should call WFSOPEN at first
hi,everybody
|
|
|
|
|
i need code for :
to write into embedded xml file of assembly
HELP EACH OTHER TO GROW TOGETHER.
|
|
|
|
|
Can anyone help.
I am writing a graphics intensive app and I need to know more about Regions, Clipping regions and all that pertain to the sublject.
I have Chands book Graphics Programming with GDI+ but he doesn't go into Regions as in depth as I need or I'm just not understanding.
Anyway could anyone point me in the right direction??
Thanks for your help.
If you keep doin what ya been doin you'll keep gettin what ya been gettin
|
|
|
|
|
Really need help guys!! Am just a newby in .Net programming, i am using visual studio 2005 and studying C# programming language. I am building a utility software that would need to be opened by clicking or double-clicking the file built by my application using its own file extensions, much like zip files in windows explorer loading on WinZip etc... Really need help... Please anyone..Sample C# 2005 codes would be very much appreciated. Thank you!!!
.............
|
|
|
|
|
[STAThread]<br />
static void Main(string[] args) {<br />
<br />
Application.EnableVisualStyles();<br />
Application.SetCompatibleTextRenderingDefault(false);<br />
if(args == null || args.Length == 0)<br />
Application.Run(new Form1());<br />
else<br />
Application.Run(new Form1(args[0]));<br />
}
args is the parameter list. if you open app through file the first parameter is the file name.. then you can do whatever you want with it..
life is study!!!
|
|
|
|
|
"args is the parameter list. if you open app through file the first parameter is the file name.. then you can do whatever you want with it.. "
-what do you mean, i'm sorry i don't get it..in vs 2005 these lines are included in the Program.cs file, isn't it? These are my codes in my main form using the Form_Load Event.
RegistryKey rk = Registry.ClassesRoot.CreateSubKey(".sis",RegistryKeyPermissionCheck.ReadWriteSubTree);
rk.SetValue("Content Type", "application/x-sis");
rk.SetValue("PerceivedType", "file collections");
rk.SetValue("", "SIS");
rk.CreateSubKey("OpenWithList");
RegistryKey rk2 = Registry.ClassesRoot.CreateSubKey("SIS", RegistryKeyPermissionCheck.ReadWriteSubTree);
rk2.SetValue("", "SIS File");
rk2.CreateSubKey("DefaultIcon",RegistryKeyPermissionCheck.ReadWriteSubTree);
try
{
RegistryKey rk3 = Registry.ClassesRoot.OpenSubKey("SIS", true).OpenSubKey("DefaultIcon", true);
rk3.SetValue("", "C:/sis.ico");
RegistryKey rk4 = Registry.ClassesRoot.OpenSubKey("SIS", true);
rk4.CreateSubKey("shell", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rk5 = Registry.ClassesRoot.OpenSubKey("SIS", true).OpenSubKey("shell", true);
rk5.CreateSubKey("open", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rk51 = Registry.ClassesRoot.OpenSubKey("SIS", true).OpenSubKey("shell", true).OpenSubKey("open", true);
rk51.SetValue("", "Open with &SIS");
RegistryKey rk6 = Registry.ClassesRoot.OpenSubKey("SIS", true).OpenSubKey("shell", true).OpenSubKey("open",true);
rk6.CreateSubKey("command", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rk66 = Registry.ClassesRoot.OpenSubKey("SIS", true).OpenSubKey("shell", true).OpenSubKey("open", true).OpenSubKey("command", true);
rk66.SetValue("", "C:/SIS.exe");
RegistryKey rkapp = Registry.ClassesRoot.OpenSubKey("Applications", true);
rkapp.CreateSubKey("SIS.exe", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rkapp2 = Registry.ClassesRoot.OpenSubKey("Applications", true).OpenSubKey("SIS.exe", true);
rkapp2.CreateSubKey("shell", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rkapp3 = Registry.ClassesRoot.OpenSubKey("Applications", true).OpenSubKey("SIS.exe", true).OpenSubKey("shell",true);
rkapp3.CreateSubKey("open", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rkapp31 = Registry.ClassesRoot.OpenSubKey("Applications", true).OpenSubKey("SIS.exe", true).OpenSubKey("shell", true).OpenSubKey("open", true);
rkapp31.SetValue("", "Open with &SIS");
RegistryKey rkapp4 = Registry.ClassesRoot.OpenSubKey("Applications", true).OpenSubKey("SIS.exe", true).OpenSubKey("shell", true).OpenSubKey("open",true);
rkapp4.CreateSubKey("command", RegistryKeyPermissionCheck.ReadWriteSubTree);
RegistryKey rkapp41 = Registry.ClassesRoot.OpenSubKey("Applications", true).OpenSubKey("SIS.exe", true).OpenSubKey("shell", true).OpenSubKey("open", true).OpenSubKey("command",true);
rkapp41.SetValue("", "C:/SIS.exe");
-what these lines of code do are adding entries in the Windows Registry such as default icons, type of file, etc. I can't seem to connect them to be default to run on my application as it prompts access denied message and worst, i don't know how i would activate my application and loading the clicked or double-clicked file onto it.... PLEASE HELP ME, WHAT WOULD I DO???
|
|
|
|
|
I kinda followed your message last time, quite got it eventually.... Thanx sooo much for the help...
XS: Yes, Life is study...
|
|
|
|
|
|
I've posted my block of codes, please try to look deep into it, im gettin the access denied upon clicking or right clicking and choosing "Open with SIS", the registered file with my own file extensions still have unknown applications on its properties.... I need a way on these without deployment yet. Is there any other way? PLEASE....
|
|
|
|
|
|
Thank you so much anyway..., but favor please, if you'd have d idea on how to manage these problems written in C#, please do "message me here"..Tnx.
|
|
|
|
|
Seems you are already on the right track. Remember your application must open the file using the arg[0](path to your file) parameter from the Main method.
static void Main(strings[] args)
{
if (args.Length <> 0)
Open(args[0]);//implement Open
else
Application.Run(new Form1());
}
I would do the following:
1) For testing purposes use the setup project (Set Open as default etc) and confirm the registry entries created by your setup project. Confirm double-click works.
2) Use C# to update the registry - compare with setup project entries to confirm what entries you may be missing.
Best of luck!!
|
|
|
|
|
|