|
Thanks for your prompt reply but
when I edit Gridview columns I can't find this property.
|
|
|
|
|
Hi,
My response works in a .Net 2.0 Windows Forms application not is an ASP.NET Project.
So...
- Edit the gridview columns
- Select ure column
- Select the property DefaultCellStyle and click the button in the right.
- You will find the Format property in a new opened property form
- Set the property to c
HTH.
Hayder Marzouk
|
|
|
|
|
Thanks a lot for your help
I am using an ASP.NET web site.
|
|
|
|
|
Hi,
I have developed an application (i.e. a rss news reader) it reads news from any rss source.
Now the problem is that i have selected its position just over the taskbar and always on TOP ; issue is that my news reader overlaps all the applictions.
I want my RSS News Reader to appear as task bar appears (i.e. all application launched should be above as in the case of windows task bar)
Thank you!
"Mess with the Best, Die like the rest"
|
|
|
|
|
Always on top means your application will always be on top :P the only applications that can appear over it are others that have set always on top 
|
|
|
|
|
Thx for the reply,
But clearly it seems like you haven't read the complete question.
Let me clarify it in simple words "I have developed an application, now i want my application behave in the exact manner as windows taskbar"
Thank you!
Nauman
"Mess with the Best, Die like the rest"
|
|
|
|
|
Ok, well the taskbar has a range of functionality that is modifyable. With this in mind I have to reply to the information you provided.
"I want my RSS News Reader to appear as task bar appears (i.e. all application launched should be above as in the case of windows task bar)"
It seems you had missunderstood what AlwaysOnTop does. Since your asking for your application to not be on top and you have set AlwaysOnTop the answer is to turn this off. By giving an explination of what AlwaysOnTop does I was hoping you'd take the hint that you might want to turn it off.
So I'll clarify this in simple words, set AlwaysOnTop to false and other applications will be able to appear over the top of it.
If this isn't the answer you want maybe you should ask a better question.
|
|
|
|
|
Well still missing the point, the war isn't about AlwaysOnTop = true|false, wht ever it is dosen't matter.
I am pretty surprised that even being a window user you are having difficulty understating the very scenario that I am in.
Let me again describe you in more easier words
1-Lets say I want to develop an appliction that will run just above windows taskbar ( i have achived this)
2- When my application loads it works fine and is AlwaysOnTop when i set it true and not always on top when i set it false,
3- I wish my application to always be visible to users (like windows task bar)
4- When i do so by using the AlwaysOnTop property it work but with one problem
(i.e.) As you may have noticed that many of the app. give status on the bottom of their respective screens, problem is that if my application runs in that area people aren't able to view that status bar.
5- Now i have seen many software that run exactly over the task bar and when applications are launched they launch above them (just like task bar i.e. no application runs on or below task bar)
Thank you!
"Mess with the Best, Die like the rest"
|
|
|
|
|
I think you're both on different wavelengths here, or on a different axis.
Allow me to try and assist.
The word 'above' and 'on top' are very ambiguous in this context. One of you is talking about the Z-position of windows, while the other is talking about the Y-position.
So what he wants to achieve is his program acting like f.e. the task-bar does (as he specified in his post).
When you have the taskbar on your screen, you can set the AlwaysOnTop property, and it behaves accordingly, this is not the issue. What also happens is that when you fullscreen an application, it counts screensize MINUS size of taskbar. So the window doesn't overlap with the taskbar.
What he wants is a way to make his program have this behavior too, thus allowing him to place and his program to the sides of the screen, and make other windows not over- or underlap with this when they are maximized.
I hope I got it right :p
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
That is certainly my interpretation
|
|
|
|
|
Mine too. I've seen this done in a c++ app before, but it was a 3rd party product so I can't look at code to see how it worked.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
Yup I think your spot on 
|
|
|
|
|
Have a look at this. It's in C++ but should get you on your way.
|
|
|
|
|
Thats the exactly wht I wanted to know.
so any solutions for me ... ???
"Mess with the Best, Die like the rest"
|
|
|
|
|
Read the article source and see how it's done?
I would suggest reading up on SHAppBarMessage as that is what docks the app window like the taskbar.
|
|
|
|
|
Hello every body
I am developing an application where i am using DataGridview it has following data
Table : Roles
--_---------------------------
| Role | Primary | Secondary |
------------------------------
Role is string type column
Primary and Secondary are Boolean type columns (So they appear with a check box)
<big>
i want to record the change of value of "Primary" and "Secondary" columns.</big>
That is I want to know if user checked or unchecked the value in any row in the last two columns
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
hi,
Don't think datagrid, think datasource.
So ure solution is in the the datatable.
use the ColumnChanged or ColumnChanging event of ure datatabl. Here an example :
mydataTable.ColumnChanged += new DataColumnChangeEventHandler(mydataTable_ColumnChanged);
void mydataTable_ColumnChanged(object sender, DataColumnChangeEventArgs e)
{
if (e.Column.ColumnName == "Primary" ||e.Column.ColumnName == "Secondary")
{
if (e.PropsedValue == true )
{
//............. do something
}
}
}
HTH.
Hayder Marzouk
|
|
|
|
|
That would only work if the datagridview was databound I think. If there is no underlying datasource/table you have to access the DGV directly.
You can also use the datagridview.Click event to capture whether a checkbox was clicked, and get it's new value in the way I described below.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Are you just trying to retrieve the data from the datagridview columns? or are you trying to capture them into events.
if it's the former, then you can simply do this:
dataGridView1.Columns.Add("foo", "foo");
DataGridViewCheckBoxColumn cbc = new DataGridViewCheckBoxColumn();
cbc.Name = "bar";
dataGridView1.Columns.Add(cbc);
dataGridView1.Rows.Add("xyzzy", true);
dataGridView1.Rows.Add("yzzyx", false);
Console.WriteLine((bool)((dataGridView1.Rows[0].Cells[1]).Value));
Console.WriteLine((bool)((dataGridView1.Rows[1].Cells[1]).Value));
Cast the value of the cell you need into a bool, and you have the Checked value.
ps: please don't randomly place layout tags over text in your post, makes it hard to read.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Hi,
I want to use a flow layout panel to establish the order of several times in a graphic way.
Is it possible?
Its just drag and drop manipulation, right?
Thx,
Nuno
|
|
|
|
|
Hi,
We have a program, made with C#: that's why I am here .
In order to check for a drive existence, we use System.IO.Directory.Exists, giving the drive letter and root folder as parameters (i. e., "C:\\").
Under Windows XP it runs just fine, but under Windows Vista, the call always return false, even against C:\.
Could anybody give us any advice about it...? It's driving us nuts!!
Fidel Leon - EA3LF
|
|
|
|
|
Im sorry, I downgraded back to Vista (because it wasn't worth it imo on a <3000$ laptop) but I can confirm that it works on XP.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Well, being Windows Vista, you probably need to set the IO security rights before it will let you read/check/validate or anything else ...
Have a look-see at this topic: FileIOPermission[^]
|
|
|
|
|
Can anybody give me the code of c#.net in which i can send the different icons (i.e. smiley,cry,etc..)
Thanks in Advance.
Dipan Patel
Dipan Patel.
|
|
|
|
|
C# has nothing to do with it. The program on the other end needs to read HTML mail, and then the images need to be linked to in the email.
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 )
|
|
|
|