Notifying The View Of A Change To An Element Within An ObservableCollection?
Jul 28, 2010
Calling OnPropertyChanged for an ObservableCollection only works when there has been some change to the properties of the collection, not the objects it contains (add, remove, clear, etc).
Is there any way to notify the View that there has been a change to an item within the collection?
View 1 Replies
ADVERTISEMENT
Mar 15, 2012
I have a CollectionChanged Handler Method:
Private Sub LayersChanged(sender As Object, e As Collections.Specialized.NotifyCollectionChangedEventArgs)
If e.ItemCollectionHasNewItems IsNot Nothing Then
[Code]....
I cant call SomethingRelatedToE.excecute because it effects e's collection which causes a runtime error.
However if the LayersChanged method has completed I can then call SomethingRelatedToE.execute from another method without effecting it.
Is there a way for me to directly move to another method after the LayersChanged method has finished, like a Goto function or another solution to this?
View 1 Replies
Feb 12, 2011
I am trying to view a picture from a web page and view it in a picture box or a message box.
Having trouble with getting the image to appear in box.
I am trying to get element by id and then picturebox . image in picturebox
WebBrowser1.Document.GetElementById("hash").GetAttribute("hash", PictureBox1.Image)
I get an error with too many arguement to Public Function Get Attribute.
I figured it would be the opposite getting an element by id and then passing a variable from a text box to the web textbox.
Doesn't seem to work this way.
View 5 Replies
Apr 8, 2009
I have panel1 and button1. what i want to do is setting a new location for the panel when pressing the button1.
View 3 Replies
Aug 12, 2009
[Code]...
I'm trying to find the easiest way to do the following. I want to change the sentence "Something you toss." to "Something you through."
View 2 Replies
Aug 30, 2011
I am trying to read a comma delimited text file to an array, then change just one element in the array and write it back to the text file. An example of what the text file would look like is:
data1,data2,data3
data1,data2,data3
data1,data2,data3
I want to change data in the last line at the last postion , data3, for example. I am reading the file in with no problem. I am stuck on how to change the data and write it back to the text file.
View 4 Replies
Jul 29, 2010
I have a rich text box that I want to show as un-editable and un-selectable text. If I set Read-Only to YES and Enabled to NO, then I get the desired effect...
...except disabling the control changes the background color to the washed out grey. I'd like to keep the background color white.
View 1 Replies
May 13, 2010
I have some xml that I read from an xml document, now I need to take that same xml and then change one field and then drop back to a file again. [Code] so then as you can see I tried to use a new open of the document from scratch and I get the same error. I read that its because I may have 2 imports that have the same method? I had 2 XML imports and made it only this, but still get the same error. [Code] how to fix my issue or a better way to read and change the one field I need to change?
View 3 Replies
Nov 5, 2010
I am new to 3D modelling. I want to create a simple model from a set of know quad elements (4 sided shape discriped by 4 x,y,z, coordinates). All I need to do is to display the model, rotate it and change the color of each element.
View 1 Replies
Jul 12, 2009
How do I Change the variable strLettersGuessed into a single-element array
View 4 Replies
Jun 8, 2012
I haven't managed to find it and it is driving me nuts! If I have a structure such as
[Code]...
If I want to change a single element of one of the elements of the array, for example the DayHi field of the 0th element, then the code ATRList(0).DayHi = 4 causes the error: Error3Expression is a value and therefore cannot be the target of an assignment. Now I could get round this by reading all the items out of the 0th element into newATR, changing the field I'm interested in and then doing a "ATRList(n) = newATR" but there must be an easier way?
View 17 Replies
May 8, 2011
I want to change the background color of an element when the mouseEnter event fires. How to make the color of the background darker?? I thought I can use an opacity mask, but it's a gradient, but I need it to be solid. Also it has to be in visual basic code, not in xaml.
View 2 Replies
Mar 3, 2010
Take a scenario where I have three forms - B and C. Each of these forms has a text box (could have more than one) There is another form X which has a button. The form X can be called from A, B or C. Now, when I call form X from, say A, form X gets displayed. When I click the button X, a value needs to be written on a textbox of the calling form, i.e. A. Similarly, if B calls X, then on click on the button in X, a value should be written in the textbox of B.
View 1 Replies
Feb 14, 2012
I have a number of rewrite rules for a lot of things that I did in IIS7, like removing trailing slashes, canonnical URLs, lowercase lettering, and such. IIS altered my web.config, and everything works fine on the website, like it should. But in the Visual Studio web.config, the opening < rewrite > statement is underlined in blue, and at the bottom of VS, it says that the element 'system.webServer' has invalid child element 'rewrite'. But this is how IIS made it. I didn't do this manually. Should I be concerned with this VS error, or should I just leave as be, since it's working how it should work? Here's an example of my web.config:
[Code]...
View 1 Replies
Apr 13, 2011
Is there a way to control the way a browser behaves such as if I click on this link it doesn't navigate to that link but instead show me the source code behind that button?
View 1 Replies
Mar 11, 2010
I need to randomly pick an element from an array and I can only use that element three times,I can randomly pick the element but how do I go about only using it three times.
View 4 Replies
Oct 13, 2009
I'm using the WebBrowser component to view specific directories on my hard drive, I was wondering if it would be possible to change the view of the files through the code (Thumbnails,details,list...). In addition, Is it possible to delete a file through the code that is currently selected in the webBrowser window? I know there are alternatives to using the webbrowser control as a file explorer but I really like being able to change the views of the folder contents, the alternatives I have seen so far only allow for list views.
View 2 Replies
Jan 12, 2010
I am working on a website web site where each user has a culture setting to allow control of resources displayed. The main page has two views, one the log on screen, the second the main menu.
When first loaded the page displays with the culture settings of the previous user (if any). If I then log on as a user with a different culture setting the view changes to the main menu without changing the culture. Go to another page and the user's correct culture settings are picked up, go back to the main menu, uses the correct culture etc.
This is logical but is there a way (without redesigning the site to have a separate log in page and main menu) to reset the culture to the new user's when switching view?
View 1 Replies
Sep 15, 2010
I needto change the icon of the selected list view item upon double clicking it and also is there a way to change the ablolute path to the
project folder where the icon is to relative path so that even when you install it to other pc it will work
View 4 Replies
Apr 20, 2009
i am using a webbrowser to view folder files. if it's possible, i'd like to add the view settings (thumbnails, tiles, icons, list, details) to button commands. if it's not possible for the webbrowser, i could still use the information for a folderbrowserdialog, or such.
also, a button to view folders or the windows listing on the left side of the windows browser. this is for a folder/file browser set in a tabcontrol to load all my favorite folders in one. nice project to have for a dev'ie.just a squirrel looking for my nut...
View 7 Replies
May 15, 2010
I have a spreadsheet that I am forced to keep 100 rows and 130 columns. For ease of use, I want to use a command button that will automatically pan from one cell to another specified cell location.
I am extremely rusty with VB, what kind of operators and code will I need to use so the command button automatically pan the view from cell A4 to cell Q3 for example?
View 2 Replies
Nov 11, 2009
'm working on a Windows form application using VS 2008. I'm starting to get more and more forms in my application. There are times when I would just like to view the form I'm working on. Is there a way to view a form without having to change the startup from to the form you want to view?
View 2 Replies
Feb 21, 2012
I have been doing well and also I am a noob I know it and you know it a lot has started making sense and I am evening figuring new things out without using Google but of course I have hit another snag in my program so here goes
I am waiting for an email to arrive (the page automatically refreshes) and then I want to click the link (I do not need to click to open the email or anything like that) I also have the code to click and navigate to the address reason being it was the only way I could figure out how to stop it opening in a new window on IE
So my only problem is I need a way to check every x seconds for the element and then if its there proceed with my code and if its not wait and then check again or however this is done in VB.If this is not the way its done please point me in the right direction the code I am using to find and then navigate to the link is
Dim emailpageelements As HtmlElementCollection = WebBrowser2.Document.GetElementsByTagName("a")
For Each emailver As HtmlElement In emailpageelements
If InStr(emailver.InnerHtml, "https://twitter.com/account/confirm_email/") Then
WebBrowser1.Navigate(emailver.InnerText)
[Code]...
View 1 Replies
Dec 11, 2010
i have 10 rows in datagrid view i use V S 2010 How can i change a backcolor of odd and even rows different.i try my best but i has one error that is Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
how can i make a single column backcolor after all rows backcolor is set
i write my code on form load event.my code is in vb.net(windows form) is as follows:
[Code]...
View 3 Replies
Mar 15, 2012
i am trying to make a search criteria based on last name.i have dragged and dropped customer dataset as details view on my form and booking as gridview(customer id is foreign key in bookings table so now when i scroll through customer i could see the relaive booking history in grid view.). now i have many customer so i have to scroll down to look for a particular customer.i want to create a textbox where i can enter customer's last name and it should change the data of details view from current customer to the customer which is searched and also should change the related data in gridview aswell which is customer booking data.really need help plz..provide code if u can..here is wat i have done but no luck.
Dim ds As DataSet
'** means:
'check for correct name of the table in dataset, you can still use index like [0] if this is 1st or only table in dataset
[code]....
View 3 Replies
Aug 5, 2009
I have a date format on my list view which is read from sql server , i.e., the date format is expressed as for example 12/08/2009 12:00:00
I dont want to show the 12:00:00 at the front end level. At runtime the user will only see for example 12/08/2009 ONLY. How can I achieve that with the details shown below. Just need to format the SubItems(2) as it contains the date.[code]...
View 5 Replies
Dec 24, 2009
Well I have a Tree View With 2 Main Nodes
Offline
Online
i have a for each statement that goes thru all the nodes in the tree and checks a value BUT heres ware the issues starts I when it gets the value if depending on the value i want to move it as a child to one of the 2 parent nodes
heres the code i have
vb
Dim sep As TreeNode
For Each sep In TreeView1.Nodes
Dim conn As MySqlConnection
[Code].....
View 1 Replies
Mar 18, 2012
I have a DropDownList in a MultiView2:View2, and if the selected index of the DropDown is 5, then the view should change to View3, but doesn't work, I have AutoPostBack property of the DropDown set to True, the two views both have UpdatePanels within them. I have this within an IF statement obviously, and everything else fires, besides the MultiView2.ActiveViewIndex = 1.
This is my code so far...
This is under the SelectedIndexChanged event
If drpDownSecurityQuestion.SelectedIndex = 0 Then
[code].....
View 1 Replies
Oct 8, 2009
I am using the listbox control. Now I know how to change all the items in the design view. But how can I change it through code so I can change what it says during run time. How can I get it to say have 5 options
1
2
3
4
5
Using code?
I know I need to use:
listbox1.items = XX
But I dont know what to put in the XX
Figured out I need to use listbox.items.add("String")
View 1 Replies
Oct 8, 2009
I'm doing an experiment on WPF and MVVM, and while coding the ViewModel on Vb.net I noticed this red wavy lines under my ObservableCollection(of T)s T_T
Anyway, the application is in WPF & VB.Net, under the .Net Framework 3.5 (I checked) and I have an 'Imports System.Collections.ObjectModel' on top of my class. Intellisense shows the other classes on System.Collections.ObjectModel except ObservableCollection.
Here's a screenshot.
So, why is ObservableCollection(of T) missing and how do I make it appear?
View 1 Replies