Click here to Skip to main content
15,041,266 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Winform dox matrix printer direct printing Pin
Gerry Schmitz17-Jun-19 5:52
mveGerry Schmitz17-Jun-19 5:52 
QuestionChanges to User Control do not get displayed in Form... Pin
Matt Slay24-Apr-19 6:53
MemberMatt Slay24-Apr-19 6:53 
QuestionBest way to store and display a customer notes system on a windows form. Pin
bgcwaterman14-Apr-19 5:34
Memberbgcwaterman14-Apr-19 5:34 
QuestionWindows Form DownloadingMenager Pin
Pouriya 141761378-Mar-19 17:08
MemberPouriya 141761378-Mar-19 17:08 
AnswerRe: Windows Form DownloadingMenager Pin
Gerry Schmitz8-Mar-19 18:41
mveGerry Schmitz8-Mar-19 18:41 
AnswerRe: Windows Form DownloadingMenager Pin
Richard MacCutchan8-Mar-19 22:17
mveRichard MacCutchan8-Mar-19 22:17 
AnswerRe: Windows Form DownloadingMenager Pin
User 418025412-Apr-19 6:03
MemberUser 418025412-Apr-19 6:03 
QuestionTreeview iteration Pin
Member 933123617-Feb-19 19:21
MemberMember 933123617-Feb-19 19:21 
I have a tree created at design time with 3 root nodes and 3 levels 3x3x3 =39 nodes as the default.

The nodes can be dynamically recreated.

When I cleared the nodes then recreated them, I tried looping through to add properties to the nodes of each level including their relevant context menu name.

<pre lang="text">
	Private Sub RedoTree_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RedoTree.Click

		treeLoad()
		treeExecutive.ExpandAll()
		restoreTP()
		treeExecutive.Nodes(0).EnsureVisible()

	End Sub
<pre>
	Sub restoreTP() '				renew treenode properties

		Dim s As String, l As Short

		treeExecutive.Update()

		For Each treenode In treeExecutive.Nodes
			s = treenode.Name
			l = Len(s)
			treenode.ForeColor = Color.GhostWhite

			If treenode.Text <> s Then treenode.ForeColor = Color.Black

			Select Case l
				Case 1
					treenode.NodeFont = New Font("Arial Rounded MT Bold", 10.8)
					treenode.ContextMenuStrip = CMSRoot
				Case 2
					treenode.NodeFont = New Font("Arial", 10.2)
					treenode.ContextMenuStrip = CMSTree
				Case Else
					treenode.NodeFont = New Font("Arial Narrow", 9)
					treenode.ContextMenuStrip = CMSTree
			End Select

		Next

	End Sub


The root nodes are number 1-3, then 11,12,13 .... 111,112,113 Total is 39 nodes

ONLY THE ROOT NODES ARE RECOGNISED AND DEALT WITH.

All the child nodes are ignored as if they don't exist

Am bogged down on this and would appreciate any help Confused | :confused:
Demac

AnswerRe: Treeview iteration Pin
Richard Deeming18-Feb-19 1:34
mveRichard Deeming18-Feb-19 1:34 
GeneralRe: Treeview iteration Pin
Member 933123618-Feb-19 7:21
MemberMember 933123618-Feb-19 7:21 
QuestionToken (Close) option in combo box Pin
Member 1205416720-Dec-18 2:04
MemberMember 1205416720-Dec-18 2:04 
AnswerRe: Token (Close) option in combo box Pin
Eddy Vluggen23-Dec-18 20:56
professionalEddy Vluggen23-Dec-18 20:56 
QuestionReactiveUI-WinForms bind combo datasource after selecting another combobox Pin
Francisco Gonçalves31-Oct-18 6:02
professionalFrancisco Gonçalves31-Oct-18 6:02 
AnswerRe: ReactiveUI-WinForms bind combo datasource after selecting another combobox Pin
Richard MacCutchan31-Oct-18 6:54
mveRichard MacCutchan31-Oct-18 6:54 
GeneralRe: ReactiveUI-WinForms bind combo datasource after selecting another combobox Pin
Francisco Gonçalves31-Oct-18 13:31
professionalFrancisco Gonçalves31-Oct-18 13:31 
QuestionHello there. how to do a dynamic design (colors, background color etc ...)? Pin
erdalczr15-Oct-18 16:13
Membererdalczr15-Oct-18 16:13 
AnswerRe: Hello there. how to do a dynamic design (colors, background color etc ...)? Pin
Pete O'Hanlon15-Oct-18 19:21
mvePete O'Hanlon15-Oct-18 19:21 
GeneralRe: Hello there. how to do a dynamic design (colors, background color etc ...)? Pin
erdalczr17-Oct-18 16:29
Membererdalczr17-Oct-18 16:29 
Rant[REPOST] Hello there. how to do a dynamic design (colors, background color etc ...)? Pin
Richard Deeming16-Oct-18 0:49
mveRichard Deeming16-Oct-18 0:49 
QuestionHow to pass data from two or more forms ? Pin
game_builder25-Jul-18 22:10
Membergame_builder25-Jul-18 22:10 
AnswerRe: How to pass data from two or more forms ? Pin
Richard Deeming26-Jul-18 1:42
mveRichard Deeming26-Jul-18 1:42 
AnswerRe: How to pass data from two or more forms ? Pin
Member 1375766214-Sep-18 5:19
MemberMember 1375766214-Sep-18 5:19 
GeneralDNN 9.x Internal Server Error Pin
Member 1380608528-May-18 13:03
MemberMember 1380608528-May-18 13:03 
GeneralRe: DNN 9.x Internal Server Error Pin
Gerry Schmitz30-May-18 10:00
mveGerry Schmitz30-May-18 10:00 
GeneralRe: DNN 9.x Internal Server Error Pin
Richard Deeming31-May-18 1:23
mveRichard Deeming31-May-18 1:23 

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.