I'm building an add-in that reacts when the user selects a control in the designer window. I can get the selected control name and type from the Win Forms designer but the WPF designer seems to be a different animal all together.
How can I access the currently selected control on the WPF...
I've got a couple APS.NET RequiredFieldValidators on my web page. I also have some custom javascript that raises a confirm message box that prompts for OK/Cancel based on what the user entered. This confirm message box is triggered when the user hits "Save".
My problem is that the confirm...
I've got a couple APS.NET RequiredFieldValidators on my web page. I also have some custom javascript that raises a confirm message box that prompts for OK/Cancel based on what the user entered. This confirm message box is triggered when the user hits "Save".
My problem is that the confirm...
I have an MDI app with several child forms. The MDI form has a MainMenu control on it. My child forms also have MainMenu controls. By Windows defaults when a child form is opened in the MDI, the childs MainMenu is added to the MDI parents MainMenu.
How can I prevent this? I want the MDI...
I've got this code in my MDI form:
Dim strHandle As String
Dim frmTest As New Form
frmTest.MdiParent = Me
frmTest.Visible = False
strHandle = frmTest.Handle.ToString
The problem is that frmTest displays itself when I read the Handle information. The...
Hi All,
We have a need to use Active Directory to store settings for our program on the client’s site. I've run across several MS documents describing how to read these values in code. However, I have yet to find a document explaining how to create them in code. Does anyone have any...
I'm writing a custom charting control that has a long redraw time. When the form my control is on has been minimized or maximized I need to know when the operation is complete so that I can tell my control to redraw only once. Does anyone know if there is a Windows message that signals when...
Hi All,
I'm working on a program that creates PDF documents. Currently to view these documents we save them to disk and then open them by shelling out to Acrobat Reader.
I would like to cut the saving step out and just have Acrobat open the PDFs from an IO steam. From there the user could...
Yo,
I'm inheriting a base form we have written that mostly handles button arrangements. Every time I disable/enable the derived form it gets moved behind any other windows that are currently open. There is no code in either form that should be causing this behavior. We are not overriding or...
Hi,
I've got a stored procedure where I need to convert values to an int. If the data can't be converted, SQL is throwing an error that I can't catch in the stored procedure. Here is some example code:
DECLARE @ID int
DECLARE @err int
SET @ID = 12
SET @ID = cast('CauseError' as int)...
I'm building a user control that contains label controls. I have a mouseup event for this user control on my form. My problem is that I can't get the mouseup events from the labels to raise the mouseup event for the user control on the form.
In the usercontrol I have this code:
Private Sub...
I need to have my page reload to the position it left after the user hits a button. I'm having trouble figuring out how to get the button click to also make the call to go to my bookmark. I'm starting with this code:
<a name="C4">Area 1</a>
<asp:button id="btn8" runat="server" Width="24px"...
I'm loading the image in the picturebox using the image.fromfile command. Later I need to read the path back to know where the image came from. Is there any way in VB.net to get the path of an image displayed in a picturebox?
Thanks,
I'm overriding the wndproc sub to watch for Windows messages. Does anyone know where I can get a complete list of the messages that Windows can send?
Thanks.
I need to pull some javascript content into my website and put it in a html table. The problem is that when I do this the javascript completely distorts the table width. I can't change the code in the script I'm getting. How can I prevent the javascript from changing my table width?
Thanks.
How do i specify what page should be loaded first in my asp project? I have a directory structure:
/root/myproject/my.asp
I currently have a index.html page in the root directory that redirects to the my.asp when somebody browses to my site. How can I eliminate this step and have my.asp be...
I've been noticing that VB.NET is a huge memory pig.
Can anyone tell me why even a "Hello world" program consisting of 1 form and 1 label would need to take up 7 meg of ram?? That is after it has been compiled for release.
I am seeing sporadic results from a query. I'm using:
SELECT TOP 200 * from tblProfile order by IDNumber
Is this statement going to:
A. Sort by IDNumber then grab the top 200 from that list?
or
B. Grab the first 200 records it finds and then sort those by the IDNumber?
I'm trying to find a way to run a Excel macro when the .XLS is loaded in the webbrowser control.
My code looks like this:
WebBrowser1.Navigate "C:\MyDoc.xls"
WebBrowser1.Document.CommandBars(99).Controls(1).Text = "GO"
'Need to call macro here!
The spreadsheet displays...
I have my MTS components setup to run as a Server Application. All the books I've looked in say that doing this forces ObjectContext.IsSecurityEnabled to be true. However, it shows up as false anytime I check it. Anyone have any clues as to why this is not working? This is driving me nuts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.