Answer Questions
Arjun B Remove DVD from BindingList(Of DVD)
Hello, I cannot figure out why this code does not work. It is supposed to remove the selected DVD from the BindingList. The code compiles it just does not function properly. Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click Dim selected As DVD = CType(CollectionBindingSource.Current, DVD) Dim collection As BindingList(Of DVD) = LoadCollection() collection.Remove(selected) CollectionBindingSource.DataSource = collection End Sub Upon running a collection.Contains(selected) it says the item is not in the collection which I know to be false because it is not only being displayed in the DataGridView it is also selected and accessa ...Show All
Ltl Hawk How to avoid that a component can be dragged or moved
Hello to all, I have a big trouble in my designer host application. I need that a component (in this case an object that represent a Magnetic Tape object) not allows be moved or dragged into the deseigner host because a magnetic tape allways is present in an specific position. Someone knows how to do to avoid to move a component . Thank you Assuming this is a UserControl, try this: Public Class MagneticTape Public Sub New() InitializeComponent() Me.Location = New Point(5, 5) End Sub Private Sub MagneticTape_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LocationChanged Me.Location = New Point(5, 5) End Sub End Class ...Show All
HSBF Lewe Try catch standards
Hi friends.. In a single button click, I am calling two services which will return two different exceptions. for this i need to implement the 'Try Catch block". do i have to implement two try blocks for each service calls and two catch blocks for handling those exception or i have to implement a single try block for both the service calls and two catch blocks for handling the two different exceptions Is there any difference between this approches.. which is the standard one Thanks in advance, Ram Babu It is more than a standart, these two ways change the behavior of your program. If you implement one try and two catch blocks and if the first call causes an exception than ...Show All
gauls Help on DtagridGridComboboxColumn
I have combobox column in datagridview i assigned displaymember & Valuemember for the comboboxcolumn, at runtim i want to access value of valuemembers. how to achive this functionality. Thanks & Regards comboboxcolumn.Valuemember should return you the value of valuemember ...Show All
Polina159216 Open a PopUp window from another PopUp window
Hi, I want open a PopUp window from another PopUp window. I.m developing code in VB.Net. Is it possible Thanks Create the new form you want to show and use the ShowDialog() method. Within the new form you can do the same and you have to PopUp windows on top of each other. PS: I do think that you're in the wrong forum. This one is for the data framework ...Show All
AlexBB maximize application up to taskbar
Hi I have a windows form app which I maximize on startup. The bottom of the form however seems to dissapear behind the taskbar giving an unfinished affect. How can I set the form to fill the screen up to the taskbar Matt This didn't help but while making the change I thought I'd try setting topmost to true. This has corrected the display so that it fills to the taskbar. Slightly irritating in that I now have to specifically minimize the app if I want to work with something else but I can live with that. Might try turning this off programmatically after its been maximized. Thanks all for the help. Matt Does it behave correctly if you use the maximize button on the top I ...Show All
fishy_swa IIS: Server Application Unavailable for aspx
I get this error message every time I try and run a local and personal aspx page on my local IIS server (IIS v6, .net2.0), server that i have just installed on my XP pro box. Any idea what the cause could be thanks in advance for your help and happy new year! ERROR: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. IIS LOG: #Software: Microsoft I ...Show All
Dave987654321 display msi path
Hi, I want to display msi path from where it is running. For example my msi is in "c:\msifolder\test.msi".and when i click on msi.after initial dialogs,it should display "c:\msifolder\test.msi". Thanks No it won't. But why do you need that path during a repair or an uninstall If you did something during an install (like access a file at the MSI location, or copy it or something) I'm wondering why you need to do that during a repair or an uninstall. After the product has been installed, the SOURCELIST property returns a list of the locations where the original MSI can be accessed - maybe that's what you need. Hi phil, Yes, this is answer to my question.i wanted the path ...Show All
MaryAnn80 VB 2005 Express:Creating a Dataset with the Dataset Designer-Can't Connect a Database in SQL Server Management Studio Express?
Hi all, I have Visual Basic 2005 Express and SQL Server 2005 Management Studio Express programs in my Windows XP Pro PC. Northwind Database is installed in the SQL Server Management Studio Express. I tried to follow the instructions listed in the "Walkthrough: Creating a Dataset with the Dataset Designer" [http: msdn2.microsoft.com/en-us/library/ms171897(vs80).aspx] to get the DatasetDesignerWalkthrough project and the NorthwindDataset dataset in my PC. I reached the Section "To create a connection to the Northwind database" of the Walkthrough: For information on creating a connection to SQL Server, see How to: Connection to SQL Server Database [msdn2.microsoft.com/en-us/library/s4yys16a(VS.80).aspx]. In the Add Con ...Show All
Michael Sabbag Radiobutton can't get checked??
hi, i have a problem, in my app i have a groupbox control and inside it 2 radiobuttons (not array) , they worked nice, but i just trying to learn more attributes of them,so i chaged the AutoCheck property to True, i saw how it worked and it was ok, so i changed it back to False, but now i can't check any radiobuttons!, what did i do or is an error , i just simply can't use them, but if i add another radiobutton inside the groupbox i can use that as if nothing happens. Any help will be appreciated :) Thanks. ok, jeje, i fix the problem i think, i just set the AutoCheck property True on both radiobuttons, and it seems to work ok, but now there's another question: The 2 radiobuttons must have an initi ...Show All
olap_user Radiobutton in Datagridview control
Hi, I am new to winform apps. Can anyone give direction/inputs or sample code to display radiobutton in datagridview control.I appreciate ur help. sk Check this link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/winf_radiobutton.asp ...Show All
Orellang Fade
How can I make a label "fade in" and "fade out" Preferably with a timer Thanks, as far as I can see, the Label does not have an opacity! However if it were, you can still use 1 timer to do both, fade in and then back out by checking the opacity values. For this you could use a bool value to indicate if its going to fade in or out and depending on it, fade in or out. You can use 2 timers if you wish but this is a developer preference thing. The opacity would've been a better option. Warning: lots of code ahead. To fade a label, you would just have to smoothly change from the foreground color to the background color. Doing that smoothly is not easily done by changing the RGB components of the col ...Show All
Abraham Varghese Images do not appear in listview
Hi all, I am using a listview and have images being shown in the first column, however these images do not show up every time. Every now and then, there is no set pattern, the images do not show and there is an empty space instead. If anyone can help me it would be greatly appreciated. Thanks in advance I'm out of ideas. If you email me your project, I'll take a stab at it. |Monkeytail|=@ Are you using some sort of double-buffering As far as i can tell no, there is always images in the image list and when the images do not show up, there is no images in the program at all. However, the next time the program loads the images appear. There is no constan ...Show All
VioxX Buffering Images HELP
Im not sure if this is the right place for this post, if not I apologize in advance this is my first time on the forum. My question is - I am trying to write an Image Viewer program that reads the file paths from the file system and stores them in a list. Then it loads the first 25 images into an Image list(the 25 can be set to whatever I want.). That all works fine. The problem is when you get to the end of the 25 and its time to add more images. It works but is EXTREMELY slow. I cant seem to figure this out and have been playing with it for a while now. Any insight would be appriciated. Heres my code for adding to the buffer - public void vScrollBar1_Scroll( object sender, ScrollEventArgs e) { Thread addThread; i ...Show All
RamiEmad Keyboard cues problem
Hello , Background: I've got a WinForms app written in C# using .Net 2.0. In this app I have a custom button class: public class ThinButton : Button The reason for having the class is to override the default painting. Specifically I want to draw a thin border and have a narrower margin between the button edge and the button text. This allows me to have a smaller button (to fit into tight places) that still looks good. The Problem: I have noticed that when I press the alt key on the keyboard (when running the app) the accelerator key mnemonics are shown underlined, as they should, for all controls, including my ThinButtons. When I press the alt key again, the mnemonics dissappear, as they should, for some control ...Show All
