|
If you are doing the same thing for every picturebox then you don't need but if it depends on which picturebox it is then you will need to examine tag. In this question I think only highlighting is needed and in that case you don't need but he also asked how to find out which picturebox was clicked. So if he is interested in which picturebox is the sender then he will need.
|
|
|
|
|
this problem is the ocx control must used in multiForm(LoginForm,MainForm...). But these forms must Call only one that the ocx instance .
Please give me a good scheme for solving this Problem with C#.
Thanks.
|
|
|
|
|
I have a problem, hope someone can help me:
I have 2 computer conected by LAN. I want run a program(ex: Notepad) on Computer B from computer A.But I can't find any function to do that.
Anyone can solve that problem, help me please!
Thank a lots!
|
|
|
|
|
I really don't know what this question
is doing in a programming discussion board.
However, use this programm.
http://www.realvnc.com/
Greetings
pdluke
|
|
|
|
|
I think he wants to do it through code, as this is a programming discussion board...
I made a program that does this sort of thing. What I did is made a windows service for my clients, although a client application would work too. Then I made a server application that would tell the client what program to start.
The client windows service would invoke the start of the program.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Oh thanks for the reply.
I didn't even think to use a service for so a "trivial" thing.
I often use WCF-Services by my self, but these are for some bigger projects.
sorry, that misunderstood the question
|
|
|
|
|
Well I needed to use a service because the computers I needed the service on were headless servers. They needed to be able to always be waiting for the queue to run the passed program.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Sorry, double post
|
|
|
|
|
"urgent" what are you expecting?? a full functioning code??
try reading through socket programming articles, that will be a good start.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi
I am using Visual Studio 2005 and C# to develop a windows application. I have a UserControl that various input forms (textboxes). On my windows form I have a Panel with AutoScroll = true.
I add the UserControls at runtime. They are all added under each other and I determine the Y position on the Panel and then add the next UserControl to Panel as follows:
private int verticalGap = 5;<br />
private int yLocation = 1;<br />
<br />
yLocation += userControl1.Size.Height + userControl1.Location.Y + verticalGap;<br />
userControl1.Location = new Point(1, yLocation );<br />
panelEntries.Controls.Add(userControl1);
The UserControls are all added to Panel and all display as required under each other. However once I have scrolled down to see the UserControls at the bottom of the Panel, and I add more UserControls they do not seem to adhere to the verticalGap value I use in my formula because the gap between the last UserControl and the previous one is now suddenly much more than it should be.
When I add the new UserControl using the Point coordinates, does it use only the visible part of the Panel to determine the position rather than using the full sizes of the Panel?
Any ideas of how I can remedy this?
Kobus
|
|
|
|
|
Maybe you can reset the whole control and add all the controls again, then move back to the position the user was, although that doesn't seem like the right way...
I would see if the methods you are using are using relative or fixed point locations. Meaning when you scroll down do the points move up or just refer to a different 'spot', if that makes sense.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
hi,
i had the same problem a year back where i had to add controls that displayed pictures to a scrollable panel. it seems that it uses the visible part, so, when i scrolled while the controls were being added by a background thread, y-coordinate seemed to change.
one way i got around it was to disable the panel when the controls were being added and enabling it when the adding was complete.
regards
|
|
|
|
|
In Vs 2003 is embeded crystal report version 9
But I installed Crystall report version 11 in my computer
So dll file for Crystal report for Vs2003 is changed and affected my project occured error.
Please give me advice.
How can I recovery crystal report version 9 to Vs2003 and not affected to Crystal report version 11.
|
|
|
|
|
My project is Windows base.
So It's difficult to update newer version system because I have to install every computers of customer's site ( Some computer located on third floor, second floor and ground floor )
So I wish to make installer which set-up pass through network.
Please give me any idea or advice for complete this Idea....
|
|
|
|
|
If you have access to servers and are allowed to modify and install services on those servers you can use RIS.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
My report size is A3. When I export to .rtf or .doc it can't display correct. Can I set paper size before export?
Code:
...
ExportOptions crExportOptions = crReportDocument.ExportOptions;
crExportOptions.ExportFormatType = ExportFormatType.RichText;
crReportDocument.Export();
QuynhTD
-- modified at 23:31 Monday 21st May, 2007
|
|
|
|
|
You just have to right click on report format --> Design --> Page Setup --> Page option --> Select The format of your choice.
|
|
|
|
|
Hello everyone,
I have a DataGridView which I am populating it with a data from a remote database. One of the columns in the DataGridView is holding images. I would like to know if it is possible to display the image in the DataGridView in a ImageBox using the index of the row?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
You can add ImageColumn to a datagridview.
google for "DataGridView ImageColumn".
|
|
|
|
|
I am trying to make a program in C# that will find the average of all prime numbers 1 to 100 and print the output to the screen. I am very lost in this, as I am new to the whole programming world. I have been unable to come up with any code that works so any help with this would be greatly appreciated. Thanks!
here is what I have so far:
The general layout of the code will possibly look like:
assign a var for isPrime as bool (which is used as a flag that will be changed if the program does a calc that has no remainder. )
assign a var that keeps track of number of primes it gets
ex double totalPrimes
assign a var that adds up the number when decides if prime of not
ex double runningTotal
assign number you will check
assign number you will use to divide by
then
while (numberToCheck <=100)
{
-set isPrime to true again(always start with it as true)
-set the divideBy var back to value 2
while (divideBy < numberToCheck)
{
-then you do if statement to check if the calc has remainder or not
-and if it doesn't then change isPrime false (since no remainder means it is not prime)
-then increment divideBy number and try the next number
-if after all calculations are done and isPrime is still true, then the nubmer is prime
-then provide an if statement to check if number is prime or not
if so then add the number to the runningTotal and chalk up another for the total of primes,
-if not prime then increment that number and run through the first loop
-- modified at 21:08 Monday 21st May, 2007
|
|
|
|
|
OK, sounds like a first homework assignment to me. How do you define a prime number ? How does that definition help you to work out if a number is a prime number ? Once you know it's a prime, what do you need to do with it, if you want to calculate an average ?
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 )
|
|
|
|
|
Sorry but "Lurker" usually means "Home work poster" here
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Dear all,
The following code returns an error :
ToolStripMenuItem mv = new ToolStripMenuItem(w.Name, new System.EventHandler(OnChange));
Error :
The best overloaded method match 'System.Windows.Forms.ToolStripMenuItem.ToolStripMenuItem(string, System.Drawing.Image)' has some invalid arguments.
While the following code compiles just fine :
ToolStripMenuItem mv = new ToolStripMenuItem(w.Name);
What am I doing wrong ?
Cheers,
|
|
|
|
|
Dear all,
After some fiddling I found the following workaround :
Image image = null;<br />
ToolStripMenuItem mv = new ToolStripMenuItem(w.Name,image, new System.EventHandler(OnChange));
This did the trick. If there is anyone with a better solutions, please let me know.
Cheers
|
|
|
|
|
The way you are doing it now is not a bad way to do it. The problem you had before has to do with the parameters you were passing. It was looking for a string and an image and you were passing a string and a delegate.
The only thing that I would change is don't make an image object for no reason, just set it to null:
ToolStripMenuItem mv = new ToolStripMenuItem(w.Name, null, new System.EventHandler(OnChange));
That will save a little time and memory.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|