Print Page | Close Window

Grid Row Height "Auto" and "*"

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=15105
Printed Date: 19 April 2024 at 1:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Grid Row Height "Auto" and "*"
Posted By: gibrael
Subject: Grid Row Height "Auto" and "*"
Date Posted: 02 September 2009 at 1:26pm
Hi,

How can I set the Row Height of a grid to Auto or * in VB6?

I tried:

Dim RowDef1 as MarkUpRowDefinition
Dim RowDef2 as MarkUpRowDefinition

'context is markupcontext of markuplabel
Set RowDef1 = context.Parse("<RowDefinition Height='Auto' />")
Set RowDef2 = context.Parse("<RowDefinition Height='*' />")



but it does not work. Any ideas? Thanks to anyone in advance. :)




-------------
--
Codejock Xtreme Suite Pro 15.2
VisualStudio 2010
Windows 7



Replies:
Posted By: gibrael
Date Posted: 07 September 2009 at 1:25pm
I found a simple solution


Dim g as MarkUpGrid

'context is markupcontext of markuplabel
Set g = context.parse("<Grid><RowDefinitions><RowDefinition Height='Auto' /><RowDefinition Height='*' /></RowDefinitions></Grid>")



I couldn't find a way around, but this is better than nothing. Thanks.


-------------
--
Codejock Xtreme Suite Pro 15.2
VisualStudio 2010
Windows 7



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net