|
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
|
|
|
|
|
Pete O'Hanlon wrote: As far as I'm aware a bitmap doesn't support the alpha channel in Windows
Since when? Bitmaps (BMP) have supported the alpha channel for probably close to a decade or more.
|
|
|
|
|
Note the careful use of Windows here - it's not the problem with Bitmaps, it's a problem with Windows.
|
|
|
|
|
How to get value from Reorder List Ajax control?
I am using link Button to Bind and display ID field and wants to get that ID when I m going to click on link Button.
It doesn't give any response by clicking on it.
please help me.....
|
|
|
|
|
pls some body help.......
|
|
|
|
|
Hi,
I want code in c# language that start application on remote machine.
Please suggest me for c# not vbScript.
Thanks
Ashish
|
|
|
|
|
One way to do this is to use WMI, which involves adding a reference to System.Management. This is what your code might look like:
public void StartRemoteProcess(string address, string processName, string userName, string password)
{
object[] processes = { processName };
ConnectionOptions connection = new ConnectionOptions{ Username = userName, Password = password };
ManagementScope scope = new ManagementScope(string.Format(@"\\{0}\root\cimv2", address), connection);
using (ManagementClass mc = new ManagementClass(scope, new ManagementPath("Win32_Process"),
new ObjectGetOptions()))
{
mc.InvokeMethod("Create", processes);
}
}
|
|
|
|
|
You cannot launch an interactive process on a remote machine. This is for security reasons. Think about it.
The process will launch, IF you have admin rights to the target machine, but the user on the remote machine will not be able to see or use it.
|
|
|
|
|
I suspect he wanted to launch a video app to spy on the other end.
|
|
|
|