|
What part are you having trouble with?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I developed a silverlight2.0 application. In this I have to open a web page from a silver light page like we open a web page using a web browser control.
I tried with
Browser.HtmlPage.Navigate("http://www.microsoft.com")
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("urlString"));
HtmlPage.Window.Navigate(new Uri("http://localhost:1780/MusicAlbum.aspx"));
but didn't worked in my application
If any one have any idea on this please reply me.
Thanks in advance.
|
|
|
|
|
What didn't work?
These all work for me:
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://www.microsoft.com"));
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://www.microsoft.com"), "_blank", "toolbar=no,location=no,status=no,menubar=no,resizable=yes");
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://www.microsoft.com"), "_newWindow");
if (System.Windows.Browser.HtmlPage.IsPopupWindowAllowed)
{
System.Windows.Browser.HtmlPage.PopupWindow(new Uri("http://www.microsoft.com"), "_blank", null);
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello Guys, I thought I'll ask this question under the WPF forum since ObservableCollection is a WPF class.
I have a class Client of which I use to return a collection of clients from the database as an ObservableCollection:
ObservableCollection<Client> myClients = queries.GetClients();
where GetClients() is a method that returns a list of clients of type ObservableCollection<Client>
Now I use LINQ to run a search for clients as follows:
ObservableCollection<Client> filteredClients = null;
IEnumerable<Client> qry = from c in myClients
where c.Name.ToUpper().Contains(txtSearch.Text.ToUpper())
orderby c.Name
select c;
filteredClients = new ObservableCollection<Client>(qry);
Hence filteredClients is supposed to contain a subset of myClients of the same type ObservableCollection<Client>
My problem is that this works fine on my x64 vista/machine, but when I move it to my x86 vista/machine I get an error that:
Argument '1': cannot convert from 'System.Collections.Generic.IEnumerable<Client>' to 'System.Collections.Generic.List<Client>'
After poking around a bit, I discovered that in my Visual Studio (both machines run VS.NET 2008 on Framework 3.5) on the x64 machine,
the ObservableCollection<T> class has 3 overloads and one of them accepts an IEnumerable<T> , which is exactly what qry above is.
However, on my x86 as you can guess, there are only 2 constructors and IEnumerable<T> isn't one of the parameters. Just an empty overload and one that receives a List<T>
So then my question is why is there this disparity in the number of overloads on vista x64 platform and vista x86?
Does this mean that I would have to design an auxiliary class that'll return a List<T> from my backend rather than an ObservableCollection<T> for x86 platforms?
P.S:
That is just one of the compatibility problems I believe those of us building applications with WPF are facing. Another one I hit is that if I have a ListBox with a DataTemplate and I set its SelectedValuePath, it works fine on my x64 machine but appears null on my x86 machine.
My 2 pennies for other developers out there is that if you are building on x64 and it works great and looks good, please make sure you test on an x86 machine before hitting your customers
Thanks.
Live in fragments no longer. Only connect.
|
|
|
|
|
Do you have .Net 3.5 SP1 on the x86 machine ? The IEnumerable overload was added with .Net 3.5 SP1.
MSDN[^]
If you want your app to run on both x64 and x86 then you should set the targetted CPU to x86 (default is Any ). This will ensure it runs on both platform (although slower on x64 as it will run under WOW)
|
|
|
|
|
Ok. Will try that. Thanks
Live in fragments no longer. Only connect.
|
|
|
|
|
Hai iam new to silverlight and i want one application of weather report in silverlight.
can any body know pls help plssss
|
|
|
|
|
Hi,
I need to select elements inside my panel using only mouse (by using Drag) just like we do in Windows Explorer. I want to click on any blank part of the panel & while dragging the mouse it should select all the elements inside that selected area.
Does anyone know, how I can achieve this using WPF 3.5? Please help me ASAP...
Regards,
- K (http://kunal2383.blogspot.com)
|
|
|
|
|
Please specify what kind of panel you are using. Also, what are you using to show the elements, a ListBox?
Live in fragments no longer. Only connect.
|
|
|
|
|
No, I am not using any ListBox.
I am using Canvas with Usercontrols.
Regards,
- K (http://kunal2383.blogspot.com)
|
|
|
|
|
Hi,
How can I change the Isolated storage message/design windows when increasing the size of the isolated storage site?
Thanks,
Noam
|
|
|
|
|
Change the dialog that's presented to the user?
That's provided by the framework - you can't change it.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello Every One,
I want to develop a tetris game, if some could hep me that is going to be great, i did some ground work on the game and need help to develop it.
I dont know which control will help in achieving this, I already downloaded on article but unable to understand coz it. It is form codeproject and the link for that article is
Silverlight Tetris[^]
Please i need some help for this
or else you can directly mail me at ma_asimali@yahoo.co.in
waiting for your valuable reply
|
|
|
|
|
The source code for that game is down loadable via the link at the top of the article. DL it, read through it and learn. The article is pretty well written and should go a long way to helping you understand how it works.
If you have specific question about a part that you don't understand ask them, but a blanket 'I can't understand the article so please help...' is not really going to yield you much.
|
|
|
|
|
Thanks for reply
Do you mean the same link that i mentioned this my query.
if not please type the link.
The link that i mentioned is not well documented.
Because of which i am unable to follow the code.
waiting for your reply.
|
|
|
|
|
Hi
I have created a very nice treeview for my WPF app, but i would like it to auto hide when not in use so that i have more screen space to work with, then when i hover over it it should come into view. Can anyone help me out with this small issue?
|
|
|
|
|
|
Hi,
I have to develop Analog clock and Digital clock in WPF. These clocks should have an option to dynamically change the time format like IST,EST ect i.e., according to the location according to the user reqirement.
If any one have any idea on this please reply me.
Thanks in advance.
|
|
|
|
|
|
You're on form today!
Kevin
|
|
|
|
|
Hi,
I have a WPF application. In this i have to get the weather information of any place into my application. I came to know that by using webservices we can get the weathr information in to my application. By this I can display the weather information of any location.
If any one have any idea how to implement this please reply me soon.
Thanks in advance.
|
|
|
|
|
|
HI All, i wish begin to work about a feature new for me ,i'n my project i have a database( with SqlServer) and an application (developing in WPF) the purpose of this application is to manage/handle about Accountancy and others Departement,so i created a Passwords and Roles(for Users) to access in the application ,now i will create a system to knows how many Users are connected to the Application(via Database )and show that in a listBox(for example like a normal Chat Application i wish knows who is online and offline) but i don't know where i need begin to work out this feature ,i'm strange to this feature so if you have any suggestion,link and help i will appreciate so much your help.
Thanks so much.
P.S. if my question is not clear i will rewrite it...however sorry in anticipate
Best Regards
|
|
|
|
|
ascotravel wrote: i will create a system to knows how many Users are connected to the Application(via Database )
So you want to know the number of users connected to the database(SQL) ? Don't you think this post would be more appropriate in the Database[^] forum ?
See if this helps sp_who[^]
|
|
|
|
|
Hi aBitSmart,
i moved my post to the Database forum .
Thanks for your help.
|
|
|
|