 |

|
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|

|
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|

|
hello guys, I need help, I'll explain the problem ...
I am making a wpf project that pressing a buttom let me see the video of the IP camera, only to see that the string directly to the video does not work, so I use the string of the image that is updated every time, to do this use the thread, and to avoid exceptions, use the delegates, only that at some point I will generate this error:
An unhandled exception of type 'System.StackOverflowException' in WindowsBase.dll
The point at which I generate error is as follows:
Del Ert = new Del(setImage);
images.Dispatcher.Invoke (ert, new object [] {images, url});
the type
Del
is my delegate:
public delegate void Del (Image images, string url);
I hope you can help me, if you need some additional information I can post it
|
|
|
|

|
There's not really enough to go on here. You've only shown a couple of partial lines here. Saying that, a StackOverflow indicates that you are causing a recursive call here. Open the Stack Trace window and let your application run until it fails - when the exception is generated, take a look at what's in the stack trace.
|
|
|
|

|
hi, I put a break-point and I noticed that IF is the cycle that makes me run any code inifinite times, but only the first line in the IF.
public void setImage(Image images,string url)
{
if (images.Dispatcher.CheckAccess())
{
MessageBox.Show("ciao");
Del ert = new Del(setImage);
images.Dispatcher.Invoke(ert, new object[] { images, url });
BitmapImage img = new BitmapImage();
img.BeginInit();
img.UriSource = new Uri(url);
img.EndInit(); images.Source = img;
}
else
{
images.Dispatcher.BeginInvoke(new Del(setImage), DispatcherPriority.Normal,
new object[] { images, url });
}
}
public void StreamImg()
{
while (true)
{
var date = DateTime.Today.Hour;
setImage(image1, @"http://ipaddress/jpg/image.jpg" + "?" + date);
Thread.Sleep(1000);
}
}
|
|
|
|

|
Please don't post the same question in multiple forums. You already received help on this issue in the C# forum.
Use the best guess
|
|
|
|

|
Yes, i'm sorry.. how do I delete this question?
|
|
|
|

|
You can't; just leave it as it is.
Use the best guess
|
|
|
|

|
Hi Guys,
I am a bit new to wpf and was wondering if you guys could point me in the right direction. I am creating a database program. What I want to do is create a window with a datagrid to display my data and create another window where I can plot the data and create graphs. I want to go with two windows or more because most people here at work use dual monitor setups and it would be helpful not to have something like Visual studio's dockable layout. Eventually I will also want to select samples in the mainwindow datagrid and have the highlighted in the graphs and think that I would need to use the same dataset/table to accomplish that, is that correct?
My question is this, how do I access the dataset/table in the mainwindow from window2? The dataset/table is filled from excel/sqlCE.
All I could find so far was to create an inheritance but I couldn't find any mention of moving entire dataset/tables between windows, and I think filling a new dataset with the same data may eat up lots of resouces down the road.
Any help would be appreciated. Perhaps someone has come accross a similar problem in the past and has some insights.
Many thanks in advance.
|
|
|
|

|
Hello,
I defined the next data grid:
<toolkit:DataGrid
ItemsSource="{Binding LogList}">
</toolkit:DataGrid>
And when in my view model file i update the LogList the data in the data grid is also uopdated everything is fine.
But there is one problem the automaticly generated columns are not in the order that i would like them to be.
How can i fix it?
Thanks
|
|
|
|

|
How to create multi-category charts in silverlight.
I have 3 columns in my data Financial year , Quarter, amount paid.
based on one single id i fetch the records and then plot data for these 3 columns.
I want financial year and quarter on category axis.
|
|
|
|

|
Use charting in the Silverlight toolkit[^].
|
|
|
|

|
I have created a chart that displays multiple series using silverlight toolkit only, but i want a multi-category chart in silverlight.
|
|
|
|

|
If you want to switch between different charts you can always do so.
Otherwise, you can try and template / customize the chart that is closest to your requirement.
|
|
|
|

|
I want this for column series is it possible..
Can u please help me in doing this
modified 4 days ago.
|
|
|
|
|
|

|
Hello members,
I have tables (DBTable) in SQL 2008 that contains two columns that look like this:
Col1 Col2
0 1
0 1
1 1
1 1
0 1
I created a Silverlight application (BI -RIA and domain services) that populates the datagrid as follows
MyCarsDomainContext context = new MyCarsDomainContext();
dataGrid1.ItemsSource = context.DBTables;
context.Load(context.GetDBTablesCompareQuery());
I would like to change the row background color (just the text color will work fine too) based on the value of Col1. If 0 then row is red, if 1 then row is blue
Any help is greatly appreciated
|
|
|
|

|
Use DataGridTemplateColumn and use Textblock/Textbox controls. Use converter to set forecolor of textbox as per the binded value to Text property
-Abhijeet B
|
|
|
|

|
You can do this via the converter approach.
Call the converter during binding and set data fore color to the respective color in the converter.
A simple example here[^].
|
|
|
|

|
audio samples to wmv file using mediastreamsource
|
|
|
|

|
If you copy and paste those exact words into Google you will probably get some useful information.
Use the best guess
|
|
|
|

|
i want to get both samples audio and video using mediastreamsource .
|
|
|
|

|
Hi,
I have a silver light application. When I run it then its URL is like http://localhost/Myfirstapplication.aspx.
I have created another silver light application. Mostly code is copied from first application. But when I run it then its URL is like http://localhost/mysecondapplication.aspx#loginpage.xaml.
Actually I donot want to show .xaml path/name. Can any body tell me what setting should I made to hide .XAML or am I missing somthing ???
|
|
|
|

|
How can I run a store procedure (SQL 2008) from domain services?
default method is to simple
public IQueryable GetCars()
{
return this.ObjectContext.Cars;
}
It does not have to be a SP, I just thought it may be cleaner, basically what I need to run is something like this:
Select col1 from DBTables where ltrim(rtrim(col1)) not in (select ltrim(rtrim(col2)) from DBTables where col2 is not null)
order by 1
Select col2 from DBTables where ltrim(rtrim(col2)) not in (select ltrim(rtrim(col1)) from DBTables where col1 is not null)
order by 1
any help is greatly appreciated
|
|
|
|
 |