|
No, not at all.
Then ado.net.
No remote needed.
String con = "connstring for machine 2";
....
And just send data from client to server using standard insterts/queries statements.
All the best,
Dan
|
|
|
|
|
thnx for your valuable input
|
|
|
|
|
glad I could help
All the best,
Dan
|
|
|
|
|
overloaded Name wrote: This application is definitely on the same domain (most probably on LAN). -
Number of clients will be no more than 5.
Oh... then who cares? pretty much anything can handle 5 clients. I'm surprised you got jerky refreshes with a polling implementation with only 5 clients.
|
|
|
|
|
i would go for remote access for the sake of simplicity if you re not transfering any huge data.
Δημιουργία websites, web εφαρμογών και εφαρμογών ηλεκτρονικού υπολογιστή. http://www.remiakstudio.gr
|
|
|
|
|
I am doing some project which has interactions with an existing excel file. i have successfully connected with the excel file and i have already retrieved data from it to a DataGridview. But i am having one big problem. when the data from the excel sheet is displayed on the DataGridView, the format is changed and it is just a scrambled data.... i can only see the perfect tabular data if it is with out merged cells,charts or pictures.
can anyone help me how to import data from the excel sheet to the DataGridView with the same look as it is in the Excel sheet?.... Thank u in advance!
|
|
|
|
|
The DataGridView doesn't support anything other than cellular data. So what you're asking is impossible.
If you want a fully functioning Excel, why not just embed Excel?
|
|
|
|
|
Thanks for the quick reply BobJanova!
Ok, but besides importing charts or pictures, I just want to import cell formats of the excel sheet. as i said yesterday, most of the cells in the excel sheets are merged to make the data organized in some structure. so while i import it to the DataGridView with out any other pictures or charts, it does not have the same look as it is in the excel sheet. any suggestion please? and if datagridview doesn't allow the pictures thing what else shall i use other than the datagridview? Thank u again!
|
|
|
|
|
JoeManche wrote: what else shall i use other than the datagridview? Bob Janova's answer nailed it for you; the only other alternative would be to pay big buck$ for a 3rd. party .NET control that can duplicate all of Excel's (innumerable ?) presentation options ... and good luck with that !
best, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
|
|
|
|
|
Is there anyway to create a executable file that support mac ?
I know there are few third party softwares that can help running exe files on mac. But is there any direct way?
Thanks
|
|
|
|
|
Do you count Mono? That's the only way to get C#/.Net applications to run on Unix variants (which includes Mac OS).
|
|
|
|
|
|
mono though does not cover all the things that .net does. So bare in mind you might have to do some things on your own whereas at .net its already been done.
Δημιουργία websites, web εφαρμογών και εφαρμογών ηλεκτρονικού υπολογιστή. http://www.remiakstudio.gr
|
|
|
|
|
Mono covers pretty much anything you'd actually want to use. (See here[^].) The only major omissions are WPF and Entity Framework.
|
|
|
|
|
hi
i have this code:
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.Value != null)
{
string l_value = e.Value.ToString();
char[] l_array = l_value.ToCharArray();
Array.Reverse(l_array);
e.Value = new string(l_array);
}
}
it reverse all of the datagridview
i need only column 2 that be reverse
how to change this code ?
thanks in advance
|
|
|
|
|
This because you are doing it in a function that would be called for every cell and hence the reversal on all values for all columns
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
Hi,
I want to display(on a Form) a 32bit bitmap with Alpha channel transparency, so thet the transparency is honoured.
I have tried a Picture control but it ignores the Alpha channel.
Any ideas?
Thanks - John
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
What format is the image? As far as I'm aware a bitmap doesn't support the alpha channel in Windows, but you would rather manage it using a chroma key (that's where you choose one colour as being transparent). If it is a bitmap, then you might want to try out the code sample here[^]
If you are using a PNG (for instance), then just set the appropriate PixelFormat , i.e. PixelFormat.Format32bppArgb;
|
|
|
|
|
|
|
Image.PixelFormat
Has no Set method it can only be read.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Just FYI, 32bit BMP is almost universally unsupported. Even by image manipulation programs.
|
|
|
|
|
Yeh, I see what you mean.
You would think by now that there would be a standard way of handling transparency, but ther isn't. its all over the place, Alpha channels, transparency masks of every posible value ever known, what a can of worms it is.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Transparency is a lot easier in WPF than in Windows Forms, would it be possible to convert the program to WPF?
|
|
|
|
|
__John_ wrote: You would think by now that there would be a standard way of handling transparency I'm glad to see there are optimists still afloat !
imho, using PNG's with transparency has become a standard: they work in .NET, they work on the web.
best, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
|
|
|
|