|
ok i got it, i tried in the way how u sugessted me..
now im having two bitmap object's, one containing scale & other one containing waveform. how to combine these 2 bitmap objects to plot it as one bitmap image on the screen..
|
|
|
|
|
i want to get the x,y cordination of the clicked point on the desktop by the user(not on the form)
actually i want to move the form to the where the user clicked,
|
|
|
|
|
|
Hi all,
I have a windows form that has on it 40ish buttons with images, 8 image box's, a couple of labels and that's it. However when ever it comes to redrawing it it takes forever! Any idea on what I can do to stream line it?
I'm using .net 2.0 could it be sped up by going to 3.0 or 3.5 and using WPF?
It's going to be running on a mini machine with 1GB Ram and 499Mhz processor.
Thanks For your help
Michael
|
|
|
|
|
I suspect you are doing something wrong. I've just setup a form with 50 buttons, all with different images, 10 pictureboxs all with different images and 10 labels and it runs perfectly smoothly.
How are you loading your images?
Check that you definitely aren't reloading them for every refresh.
Check that your images aren't massive and being scaled for the buttons.
That is a very low spec system though, your barely above the minimum cpu for windows XP. Even our industrial SFF pc's that we use out on the shop floor have specs way above that.
WPF/3.5 won't improve anything.
Simon
|
|
|
|
|
hopingToCode wrote: I have a windows form that has on it 40ish buttons with images, 8 image box's, a couple of labels and that's it.
First, this sounds like a UI design nightmare in progress.
hopingToCode wrote: It's going to be running on a mini machine with 1GB Ram and 499Mhz processor.
This is barely enough to run Windows XP. There are two ways to speed up drawing that form. The first is to upgrade the machine to something built in the last 4 years.
The second way is to reduce the number of controls on the form, probably by reorganizing your user interface.
Moving to .NET 3.5 and WPF will only make things worse because you'll have higher minimum system requirements than the machine you now have.
|
|
|
|
|
Hi folks,
does anybody have an idea how to implement a shared server document ?
Let me explain you my needs ...
I shall implement the ability to simultaneously edit and read a word - document by multiple users ?
is this possible ? and if so, do you folks have any snippets that could help me do my job ?
thx a lot
|
|
|
|
|
You can do this kind of thing with a share point server & word 2003/2007 I believe.
This would not be easy to write yourself. You would have to write a server, and transmit all changes made by each user to the server. The server would have to merge the changes, resolve any conflicts that occurred because of users making edits at the same time, and retransmit the results back out to each client.
Simon
|
|
|
|
|
Use MOSS 2007
Cheers!!
Brij
|
|
|
|
|
Hi all,
I have the following anonymous LINQ statement, how can I select the distinct file name, because foreach statement does not perform the desired action cause of the FullPath that differs for each file.
var distinctFiles = from f in Directory.GetFiles(@"C:\My Files").AsEnumerable()
select new
{
FileName = f.Split(new Char[] { '_' })[1],
FullPath = f
};
foreach (var file in distinctFiles.Distinct())
{
....
}
Many thanks in advance
Kind reagrds,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
You can't select the distinct file name, as you are not getting only the file name. First you have to decide how to determine which full path you want to keep for each distinct file name.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: You can't select the distinct file name, as you are not getting only the file name.
No exactly, I am using a split cause all of the files are named in a certain format, and making use of the split enables me to get hold of a certain piece of the name.
Guffa wrote: First you have to decide how to determine which full path you want to keep for each distinct file name.
I am doing this as mentioned above, but the thing is that the first part of the file name is a date and time and the second a number, now it can be that the number appears twice as the date and time differs from another file that might have been created a few seconds ago, but with the same number.
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
You can't just use distinct when there is more to what you are getting that just the part you want to be distinct.
You need to use the override of distinct that takes an equality comparer. Then in the comparer, you can provide an implementation of how to determine if the data is distinct or not.
However, you can't do this with anonymous types.
One way of doing it would be like this:
class Program
{
static void Main(string[] args)
{
String[] files = Directory.GetFiles(@"C:\My Files");
var distinctFiles = files.Distinct(new FileEqualityComparer());
foreach (var file in distinctFiles)
{
Console.WriteLine(file);
}
Console.ReadLine();
}
}
public class FileEqualityComparer : EqualityComparer<string>
{
public override bool Equals(string x, string y)
{
String FileNameX = x.Split(new Char[] { '_' })[1];
String FileNameY = y.Split(new Char[] { '_' })[1];
return FileNameX == FileNameY;
}
public override int GetHashCode(string obj)
{
String fileName = obj.Split(new Char[] { '_' })[1];
return fileName.GetHashCode();
}
}</string>
But that's not great because it will be doing the split code for every comparisom. A better way to do it would be to define a new class or struct to hold your 'file' data.
Simon
|
|
|
|
|
Many thanks for your input.
Regards
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
hello Friends,
i need simple accounting software source code in C# for learn more about accounting software projects . Please help me if possible
Thanx
|
|
|
|
|
|
From the sound of the project, I think he may already be familiar with Rent-A-Coder.
|
|
|
|
|
Dave Kreskowiak wrote: he may already be familiar with Rent-A-Coder
Sounds like it. Hmmm, a rent-a-coder going on to rent-a-coder to have another rent-a-coder to hire another rent-a-coder (and so on) ...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
You just replied to a 5 YEAR OLD post! Doing so is a complete waste of time.
|
|
|
|
|
FOUR forums with the same question?!?!?!
Blog link to be reinstated at a later date.
|
|
|
|
|
|
Good morning folks from germany.
My question is:
How can I show a pre-information like "Application starts.... please wait ...." (after a short startup/load-time) in a box or else to the user shortly after he had done the doubleclick on the application-icon on the desktop, while the main-application is starting in background. Its because the application is very big and takes a longer time to finalize the startup. The application is progammed in C# 2005 and .NET 2.0
Thanks for advance
|
|
|
|
|
What you need is called splash screen. There are several implementations here on codeproject so a simple search should return them
|
|
|
|
|
show Splash screen
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|