Click here to Skip to main content
15,898,979 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: developing webservice for windows form PinPopular
Dave Kreskowiak19-Oct-10 2:07
mveDave Kreskowiak19-Oct-10 2:07 
AnswerRe: developing webservice for windows form Pin
Dr.Walt Fair, PE3-Nov-10 5:48
professionalDr.Walt Fair, PE3-Nov-10 5:48 
QuestionA quick Excel Question Pin
Alan Burkhart14-Oct-10 3:48
Alan Burkhart14-Oct-10 3:48 
AnswerRe: A quick Excel Question Pin
DaveAuld18-Oct-10 19:34
professionalDaveAuld18-Oct-10 19:34 
GeneralRe: A quick Excel Question Pin
Alan Burkhart19-Oct-10 3:53
Alan Burkhart19-Oct-10 3:53 
AnswerRe: A quick Excel Question Pin
Ray Cassick19-Dec-10 4:56
Ray Cassick19-Dec-10 4:56 
GeneralRe: A quick Excel Question Pin
Alan Burkhart19-Dec-10 5:16
Alan Burkhart19-Dec-10 5:16 
QuestionRun Code/Fire Event After First Event Finishes Pin
Stinebaugh6-Oct-10 1:34
Stinebaugh6-Oct-10 1:34 
I have a form with an ActiveX control on it. When the disconnect event of the OCX runs, I want to close the form. The problem is, if I call the close command from within the disconnect event, I get an access violation as the form/control is disposed of when the OCX event finishes up.

OCX Disconnect Event
{
	Custom EventHandler for OCX Disconnect Event
	{
		Clean up all connections and close form
		{
			Form Close Event
			{
				Form is closed and all controls are disposed of
				{
				}
			}
		}
	}
Exception thrown as the parent form no longer exists
}


I just need to make the Clean up all connections and close form function run after OCX Disconnect Event, but I don't know how or if its possible. Any help or work arounds would be appreciated. Currently, my only work around is basically to leave the parent form open and have the user close it.
AnswerRe: Run Code/Fire Event After First Event Finishes Pin
Luc Pattyn6-Oct-10 3:37
sitebuilderLuc Pattyn6-Oct-10 3:37 
GeneralRe: Run Code/Fire Event After First Event Finishes Pin
Stinebaugh6-Oct-10 4:37
Stinebaugh6-Oct-10 4:37 
GeneralRe: Run Code/Fire Event After First Event Finishes Pin
Luc Pattyn6-Oct-10 4:42
sitebuilderLuc Pattyn6-Oct-10 4:42 
GeneralRe: Run Code/Fire Event After First Event Finishes Pin
Eddy Vluggen6-Oct-10 7:54
professionalEddy Vluggen6-Oct-10 7:54 
GeneralRe: Run Code/Fire Event After First Event Finishes Pin
Stinebaugh8-Oct-10 3:38
Stinebaugh8-Oct-10 3:38 
GeneralRe: Run Code/Fire Event After First Event Finishes Pin
Eddy Vluggen8-Oct-10 7:53
professionalEddy Vluggen8-Oct-10 7:53 
QuestionVB.Net Data Grid with Footer Pin
Fahim A28-Sep-10 16:25
Fahim A28-Sep-10 16:25 
AnswerRe: VB.Net Data Grid with Footer Pin
Eddy Vluggen29-Sep-10 7:30
professionalEddy Vluggen29-Sep-10 7:30 
GeneralRe: VB.Net Data Grid with Footer Pin
Fahim A1-Oct-10 23:27
Fahim A1-Oct-10 23:27 
GeneralRe: VB.Net Data Grid with Footer Pin
Heinzzy2-Oct-10 9:22
Heinzzy2-Oct-10 9:22 
QuestionHosting a Winform view inside a user control [modified] Pin
Rolf Kristensen23-Sep-10 3:52
Rolf Kristensen23-Sep-10 3:52 
AnswerRe: Hosting a Winform view inside a user control Pin
Eddy Vluggen24-Sep-10 9:23
professionalEddy Vluggen24-Sep-10 9:23 
Questionis it possible to show ms excel inside a windowform? Pin
neodeaths22-Sep-10 5:32
neodeaths22-Sep-10 5:32 
AnswerRe: is it possible to show ms excel inside a windowform? Pin
Abhinav S22-Sep-10 6:41
Abhinav S22-Sep-10 6:41 
QuestionApp "NOT RESPONDING" on opening some other window Pin
All Time Programming22-Sep-10 3:37
All Time Programming22-Sep-10 3:37 
AnswerRe: App "NOT RESPONDING" on opening some other window Pin
Dave Kreskowiak22-Sep-10 6:38
mveDave Kreskowiak22-Sep-10 6:38 
GeneralRe: App "NOT RESPONDING" on opening some other window Pin
All Time Programming22-Sep-10 22:38
All Time Programming22-Sep-10 22:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.