|
By world time i mean a time of a server or anything, NOT THE COMPUTER'S TIME, it could be the Greenwich time or anything but i want it to be the same in any computer i log in.
thanks.
|
|
|
|
|
There are webservices around that do this. You're going to end up with the time on SOME computer, somewhere. But, one would assume it was going to be correct.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
How does that help ? He wants to sychronise time between PCs, DateTime.Now is not going to do that, no matter what time zone he converts it to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Mr Christian Graus
OK Cool
don't worry, yahoo offer a url for time sync.
we can get time in long , after we want to add that with our datetime object.
thanks for ur help.
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
I have an autocomplete textbox. When i press a certain key , it lists out several items.
But i have to scroll down the list to see all the items.What i want to know is that how can we increase the height of the listing?
Any idea guys?
|
|
|
|
|
try combobox
Becoming Programmer...
|
|
|
|
|
Hello every body, I want to do a library wich has to conect throw rs232 port, but I need to made it conection with code, because as I said, is a library, and i can´t use any component.I know is posible using delegate methods and events, but I have no idea of how i can do it. If somebody can help me with some code I will be very gratefull.
|
|
|
|
|
Delegate methods really have little to do with RS232, do you know what delegates are ?
I googled C# RS232 and got tons of information, including articles here on CP. VS2005 has a serial port class as far as I know. Perhaps it uses delegates to hook up to events on the port.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: VS2005 has a serial port class as far as I know.
Yes it's there. just drag-and-drop serialPort from toolbox to a form and start playing with it...
|
|
|
|
|
hi there,
i m trying to add a CMS in listview component class,
steps i did:
1. add a class and inherit listview
2. add CMS and add a menu item in it
3. add this line in InitializeComponent()
this.ContextMenuStrip = contextMenuStrip1;
4. add this listview in form
5. run but nothing appear when right clicked on listview
anyone know how to solve it?
thanks
Becoming Programmer...
|
|
|
|
|
xmen,
Does contextMenuStrip1 have any items?
Regards,
Gareth.
|
|
|
|
|
yup!!!
Becoming Programmer...
|
|
|
|
|
xmen,
You could try listening to the ContextMenuStrip.Opening event and then you'll find out if its actually being opened.
Regards,
Gareth.
|
|
|
|
|
nothing happend
Becoming Programmer...
|
|
|
|
|
i have done it
Becoming Programmer...
|
|
|
|
|
Hello,
I'm making a GUI for an image capture program. When the user captures an image a new form is created which displays the image. Once the user has captured several images they can then look through the image-forms and decide which to save. I have a main form which contains the main controls and a large panel which takes up about half it's area.
I would like:
1 the image-forms to appear within this panel and to be confined to its boundaries.
2 the image-forms to always be on top of the panel and hence always be visible.
3 the image-forms should not take control(focus) away from the main application window.
Is it possible to do this ?
Thanks
|
|
|
|
|
Hello,
Apart from that I don't see why you want to use Forms to show images (waste of performance):
Ylno wrote: 1 the image-forms to appear within this panel and to be confined to its boundaries
If you want to add a Form in the Controls Container of a Panel, you have to set the TopLevel[^] property of the Form to "false".
Ylno wrote: 2 the image-forms to always be on top of the panel and hence always be
If you add it inside the panels container, it is automaticaly in front of the panel.
Ylno wrote: 3 the image-forms should not take control(focus) away from the main application window
Maybe Enabled[^] does what you want.
But again, you should think of other solutions, like painting the images directely on the MainForm or the panel.
Therefor you need:
OnPaint
DrawImage[^]
All the best,
Martin
|
|
|
|
|
The scenario you're describing is MDI. In fact, it's EXACTLY what MDI was invented for. If you have a sub form, for example, that contains a PictureBox set to Dock = Fill, you can then set the MdiParent of each form to your main form before showing it.
Make sure to set the IsMdiContainer to true for the main form.
The MDI area of the main form will occupy whatever leftover space is left in the main form. That is, if you have controls that you dock right, top, left, etc., the MDI area will only take up the space that is left. This means you don't need to worry about where the MDI forms will show up.
It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein
|
|
|
|
|
is there any runtime environment required to open a crystal report in a c# application
|
|
|
|
|
Hi shabonaa
Are u try to opendevelopment PC or deployment PC?
thanks
Cheers,Earn and Enjoy
RRave
MCTS,MCPD
|
|
|
|
|
all I want to do is to transfer the application and reports to the user machine.
the application itself is running but when try to open the report it gives an error
|
|
|
|
|
Hi Shabonaa
Can you give post full error details in this post?
when you deploy ur report in suer PC u must install report comp.
pelase give a more details regard errors.
|
|
|
|
|
Hey guys and girls...
I'm having trouble making a chart in excel through c# that uses information from 2 different worksheets . I can't seem to find a way to specify 2 ranges for one chart. Any help would be greatly appreciated...
|
|
|
|