Hi guys,
I have an ancient mess I'm trying to shovel into tiers using subsonic. Trouble is, I have this scenario:
When Hal logs in, his login uses database X for lookup data, database Y for his accounts and database Z for his contacts.
When Barry logs in, his login uses database X for lookupdata, database Q for his accounts and databa...
I have a method that returns a value, and I want this value to be the new location of a label in a windows form application. but I'm being told that a label's location is not a variable. objectA is the name of the label.
objectA.Location.X = (int)A.position;
objectA.Refresh();
how do I do this?
...
C#: How do you check if the mouse click position was only inside an item in Column[0] in a listview under virtualmode?
I can get the the Item object the mouse just clicked using ListView.GetItemAt, but after that, how could I check if it was clicked within column[0]?
...
I cannot find a control for implementing Status bar. How to do it manually?
...
I have a WinForms application where I'm doing drag and drop between 2 TreeViews.
At some point, I want to reject the action in the underlying business implementation, so I throw an Exception. I can see the Exception in the Output window but the problem is that I can't see it in the UI and it doesn't crashes.
Where did the Exception g...
I've got a Windows Forms Button on a Form which submits a web request. I want to be able to disable the button when it is first clicked and then re-enable it when I get a response. I don't have much control over the code that is being called and how it is being called so all I can play around with are Button events or I can create my own...
I've done this with and asp.net grid view and header templates and I need to port this same concept over to my winform application. I'm trying to find a way to have a cell or label span the width of several sub-headers. There are third party controls that do this but buying one is not an option at this time.
Here is an example of the w...
I tried
MdiClientObject.BackColor = Color.Transparent;
but got this error message "Control does not support transparent background colors."? Does anyone know how to make the background transparent?
...
I'm developing an ActiveX control which (these days) is used mostly in WinForms apps.
The ActiveX control has a 'property page' dialog, which can be shown programmatically using the ShowPropertyPages method on the AxHost class. This is the custom UI that can be brought up in Visual Studio to edit a control's properties.
This property p...
I have a label in a WinForm.in the app, I create a thread for
setting the Text property of the label.
since the code responsible for setting the Text property of the
label is another thread, I wrote it like this :
private void SetLabel8Text(string text)
{
try
{
if (this.label8.InvokeRequired)
...
I'm looking for some insight from those who have taken either of the Pro MCPD Windows Developer exams (70-548 for 2.0, 70-563 for 3.5). I've got the prereqs out of the way to take the 563 and picked up the 548 training kit (since there isn't a 563 one).
Any advice you can offer? Insights into the approach of the exam; suggested study ...
this code was just working! but for some reason it stopped to work now. when i run this project the following code is supposed to execute but it does not! please help.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim xmldoc As New System.Xml.XmlDocument()
'Load from file...
I've been struggling with this for quite a while:
I have a function designed to add control to a panel with cross-thread handling, the problem is that though the panel and the control are in "InvokeRequired=false" - I get an exception telling me that one of the controls inner controls are accessed from a thread other than the thread it w...
C#: How to detect who is the caller of a context menu's menu item when linked to two different objects?
I have two labels, lblOn and lblOff. I am linking 'one' contextmenu to both labels to discard having to make two of the same.
How would I go upon finding out which label object called the contextmenu.menuitem? That way the clicked o...
Hi,
In my program I have a form that uses localized labels (from resx file). Unfortunately whenever I add a new control - designer is refreshing all the labels to their default values.
Does anyone know how to prevent that from happening?
Is there a better way of localizing forms or is creating a method that will replace all the labels...
I have a form I set to Maximize, but for some reason it's ignoring the taskbar and maximizing to the entire screen. Is that typical? Is there a work around?
I'm running windows XP with a dual monitor setup (taskbar in the first/primary window).
...
Is there a way to tell what x/y coordinates were clicked in a FORMS application?
...
How can I select an entire row of a ListView control in Details view-mode?
Or alternatively, how can I select a row in a ListView by clicking on any subItem?
...
I have a VB.Net Winforms app which displays an MDI parent form and allows multiple child forms to be displayed on it. If the child forms extend beyond the screen height, a vertical scrollbar is automatically displayed on the right side of the MDI Parent & I can use this scrollbar to scroll the child forms into view.
But, the mousewheel...
I have a WebBrowser control on a Form that is loading a single page with a flash control on it. Since upgrading to IE8 it no longer works. Every time I open my form I get a prompt to install Flash. No matter what I choose to do from there Flash will not start, so my page is busted. Any clues on how to get Flash to work in IE when it ...