|
Hi,
I want to change the back color of a row when i click on it (untill here i succeed),
but when i re-order by some row (after i've changed the row's color)
i want the same row will show the color (by value and not by row's number).
10x alot...
|
|
|
|
|
How are you setting the back color? I guess through indices.
Try using CurrentRow property instead to set the back color.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Why am I getting this exception here?
if (Session["privilegios"] == null)
Isn't this the way its supposed to check for null?
Best regards
Fratelli
|
|
|
|
|
Looks like Session itself is null
Suggestion:
if (Session == null || Session["privilegios"] == null)
|
|
|
|
|
Yes, I already know what the problem is. For further reference: I had something like this
[WebMethod(EnableSession = true)]
public int method_1()
{
...
}
[WebMethod]
public int method_2()
{
}
The thing is: If I call method_2, apperently, "Session" will still be null in method_1. I already have a previous post asking how to access "Session" variables in a non-WebMethod method.
Regards
Fratelli
|
|
|
|
|
Ok
Now I know less than I thought I did, I don't know anything about web methods (until now I didn't even know they existed)
|
|
|
|
|
Hi
In my windows application i want to compare two videos For example X and Y are the two video clips X is the original video and Y has merge the X video with Some video clips like below
input
X=abcd
Y=mnoabcde
output
Z =abcd
if the video has same content the Application shld
indicate the similar Clips
I dont know how to compare the Video files
please guide me
Thanks in Advance
modified on Saturday, September 19, 2009 8:42 AM
|
|
|
|
|
Mads115 wrote: Thanks in Advance
For what? You didn't ask a question, you just uttered a wish
Do the video's contain tags that describe them? Or do you want to compare it based on other properties, such as sound-volume and hue?
I are Troll
|
|
|
|
|
I want to know how compare the Video files
|
|
|
|
|
What do you want to compare exactly? The size, the filename, the number of colors used, the content?
I are Troll
|
|
|
|
|
if the two videos has similar clip it shld indicate it
|
|
|
|
|
Define "similar". Are two video's similar if they feature the same people, or are they similar if two different people do the same thing?
All fun aside; a computer cannot "guess" what is happening in a video. You can compare properties, like length and sound. You can evaluate differences between individual frames, or even try to interpret a single frame (face recognition, OCR etc).
But no, there is no easy way to compare the content of two video's that I'm aware of.
I are Troll
|
|
|
|
|
Dear All,
I have got 6 projects in one solution, I can create Msi package for that solution.
any ideas how to make a single setup for whole solution using click once deployment.
Note: projects within the solutions are not related to each other (2 of 6 projects)
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Problem
WPF Project (VS 2008)
I'm using a ListView (with GridView) bound to an ObservableCollection. The collection includes a DateTime field.
When I populate the collection, the DateNR field is often null, but then the ListView displays a date of "01-Jan-01"!!
How do I stop this as I don't want the user to see a date when there shouldn't be one. I need the DateNR field in the collection to be a DateTime value not a string because this column is used for sorting.
Any ideas would be welcome. thanks
<code>
public class RecordData
{
public int ID { get; set; }
public DateTime DateNR { get; set; }
}
Adding GridView Column
GridViewColumnHeader gvch = new GridViewColumnHeader();<br />
GridViewColumn gvc = new GridViewColumn();<br />
Binding bind = new Binding("DateNR");<br />
bind.Converter = new FormattingConverter();<br />
bind.ConverterParameter = @"{0:dd-MMM-yy}";<br />
gvc.Width = 80;<br />
gvc.DisplayMemberBinding = bind;<br />
gvch.Content = "NR Date";<br />
gvc.Header = gvch;<br />
myGridView.Columns.Add(gvc);
Populate Collection
SqlConnection sqlConn = new SqlConnection(myConnectionString);<br />
SqlCommand sqlComm = new SqlCommand("...", sqlConn);<br />
SqlDataReader sqlDR = sqlComm.ExecuteReader();<br />
RecordData rd = new RecordData();<br />
rd.ID = sqlDR.GetInt32(0);<br />
if (sqlDR.IsDBNull(1) == false)<br />
rd.DateNR = sqlDR.GetDateTime(1);<br />
_MyCollection.Add(rd);
|
|
|
|
|
b4ip wrote: WPF Project (VS 2008)
We have a dedicated WPF Forum [^]at CP.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
My form has two tree views.
If select treenode from first tree with UpArrow or DownArrow button from keyboard, i want the treenode from the second treeview to be selected automatically.
These treeviews have the same treenode.
Thanks
axiom.kid
|
|
|
|
|
Is there not a selection changed event on the tree control ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
There is no selection changed event in treeview.
|
|
|
|
|
You are right. There are two. BeforeSelect, and AfterSelect. So, use whichever one you prefer, and as the selection changes, select the right node in the other control.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Well, if the control is broken, if the events that should fire, do not, then your only other option as far as I can see, is to use a timer to check when one is changed, and then change the other, or use the keyboard events to detect when a keypress occurs on the control, and then from there, check if the selection has changed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Your code sucks. I just wrote a sample project and it works just fine. Press a key to change selection and the beforeselect and afterselect events fire, with a keyup event in the middle.
If you want help here, it helps to post your code, so we can tell you where it is broken, although in this case, it's very simple. Hook up the event, and it will fire.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks a lot for replying me.
My two trees worked with the following code.
private void sourcetree_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up)
{
if(destinationtree.SelectedNode.PrevVisibleNode != null)
destinationtree.SelectedNode = destinationtree.SelectedNode.PrevVisibleNode;
}
else
{
if(destinationtree.SelectedNode.NextVisibleNode != null)
destinationtree.SelectedNode = destinationtree.SelectedNode.NextVisibleNode;
}
}
|
|
|
|
|
Christian Graus wrote: Your code sucks
I've not been around for about 8 months - first post I read shows not much as changed around here!! Superb.
Knowledge is hereditary, it will find its way up or down.
Luc Pattyn
and since what every time when i want to add button to this control one add two times
posted in C# forum
|
|
|
|
|
Christian Graus wrote: Your code sucks.
Hey, you're back.
|
|
|
|