Control alignment

0
0

I searched for a solution on the forum but couldn’t find anything.
The problem I have now is the alignment of controls within a Form.
In Visual Studio they are perfect, but in runtime, even on the development PC, they are all too close together and in some cases overlapped.
I created a little test project to show you what I’m talking about.
As always I have to insert a link to the project because the 3.9 Mb limit is not enough even for an empty project, so it cannot be attached.
Instead, I attach the two images of the form, in the IDE and in the Browser.
Furthermore, as you can see, the startup time of the empty project is too high. How come?
Thank you.

 

Francesco

  • You must to post comments
0
0

Sorry but I don’t understand, I start from your standard project, this is automatically inserted in my Web.config:
<add key=”Wisej.DefaultTheme” value=”Bootstrap-4″/>
I don’t change anything at all, but to follow your instructions I added (but I don’t understand what it’s for) the line in the code:
Application.LoadTheme(“Bootstrap-4”);
How can I use two different themes? Remember that they are always in Visual Studio, not on the server. You just sent me directions to change the theme, but I don’t do it.
Where am I wrong, if I’m wrong?
Thank you.
Francesco

  • Alaa (ITG)
    The Theme at Design time is Blue-1, whereas in the template is Bootstrap-4, you can change the theme at design time to match the one at runtime, or you can simply modify the “bootstrap-4” value in the web.config file.
  • Francesco Leo
    But how can I change the theme at the design stage? I can’t find it in the properties, I can’t find it in the desktop, sorry but it’s my second day and I’m not very expert. However I changed the theme in App.config and the problem is the same.
  • Francesco Leo
    I also tried with all browsers, the problem is always the same.
  • Alaa (ITG)
    Here’s how you change the theme at design time: https://docs.wisej.com/docs/concepts/designer , you shouldn’t have an App.config but a web.config file. the issue is probably that Application.LoadTheme() call you have, you have to delete that for the app to display the correct theme that’s set in the Web.config file.
  • Francesco Leo
    Ok, now everything works fine, the secret is to use the combobox at the bottom left of the Form, IN EVERY FORM, so that it matches that of the Web.config (App.config is an old habit). Thanks for your help.
  • You must to post comments
0
0

Hi Francesco,

you’re using a different theme at design time vs runtime.

Find more information here:

https://docs.wisej.com/docs/concepts/theming

Best regards
Frank

PS: You can delete obj/bin folders before uploading here.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.