I solved it with main form Resize event... and playing with groupbox Top and Height properties. Thanks anyways.... :)
Zeokat
Posts
-
How to resize two texbox proportionally? -
How to resize two texbox proportionally?You suggestion not soove my needs... each texbox is on different groupbox...
-
How to resize two texbox proportionally?I have a winform with two texboxes, one below the other. When i resize horizontal there is no problem, but when i want to resize vertical only can resize one and i need to resize both proportionally. Already tryed many anchor property configurations without luck... Any idea? Thanks in advance. :)
-
Custom config sections problem.I solved it definetly... i not defined any namespace, so the problem was in App.config...
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="SomeSettings" type="SomeSettings, config" /> </configSections> <SomeSettings FillColor="LightBlue" TextSize="9.5" FillOpacity="50" /> </configuration>
And all works good :) -
Custom config sections problem.This problem is giving me a lot of headaches and can´t find the solution... I´m reading this article Custom Configuration Sections for Lazy Coders[^] I´m reading the part titled "The Hello, World ConfigurationSection" , using exactly same code (copy paste directly) and always obtain an error when execute the program (it not returns error/warnings on compiling time). The error says that can´t load config.SomeSettings from asembly... My app.config:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="SomeSettings" type="config.SomeSettings, config" /> </configSections> <SomeSettings FillColor="LightBlue" TextSize="9.5" FillOpacity="50" /> </configuration>
Proyect --> properties , shows me that the name of my assembly is "config" I´m totally lost, found more codes similar to the one explained into this article and always, ALWAYS, always obtain the same error.... perhaps someone can give me a hand, thanks :) -
ConfigurationManager - how to read/write into a custom section?Thanks Henry Minute, i just googled ypur string and found this Custom Configuration Sections for Lazy Coders[^] Exactly what i was searching... :)
-
ConfigurationManager - how to read/write into a custom section?Ok, thanks for the informations... I already thougth into write my own config file reader writer, but want to be sure firts that built-in class not allow me do that :)
-
ConfigurationManager - how to read/write into a custom section?My config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration><appSettings>
<add key="sunshine" value="125" />
<add key="moonshine" value="50" />
<add key="seashine" value="10" />
</appSettings><Settings2>
<add key="persistent" value="0" />
<add key="smooth" value="1" />
</Settings2></configuration>
I can read/write settings into <appSettings> but don´t know how can i read/write from <Settings2> .... and if i can create new sections like <SettingsN> ... I´m using System.Configuration but only could read/write into the default section named <appSettings>... perhaps someone can give me a hand or point me to the right direction, thanks in advance.
-
Get Checked value of a checkBox from thread different of the UI threadWell i know that i can´t play directly with values of winforms from different thread of the UI thread. But i have a thread and i need to obtain the value of a checkbox from that thread... how can i obtain the value?? Thanks in advance. :)
-
How to make a http GET request with a http proxy with socketsWell... i not find any infos about how to make a GET request using a http proxy (using sockets and not the .net library). I go to repeat USING SOCKETs and NOT the HttpWebRequest... Thanks in advance. :)
-
Help decoding base_64+GZipped string.And how can i compress a string... tryed to compress the original string but the reult is different. I´m confused... perhaps someone can help. Thanks in advance. ;)
-
Help decoding base_64+GZipped string.Big Thanks, very apreciated your answer and your time :cool:
-
Help decoding base_64+GZipped string.Well, the string comes from php code:
eval(gzinflate(base64_decode('s7ezsS/IKFCodihILC4uySgq1UhPLUnNK9NQ8ggJCYh39vf39nRV0tS0rlWwB6oFAA==')));
But i want to decode it using c#... so i have to decode the string: s7ezsS/IKFCodihILC4uySgq1UhPLUnNK9NQ8ggJCYh39vf39nRV0tS0rlWwB6oFAA== It´s encoded with base64, decoding it is easy, the problem is that i tryed some codes that i find in google to decompress but no luck. To be honest i have no idea about how can i solve it... perhaps someone can help me. I know that the result of decode that string should be something like:
{@passthru(getenv("HTTP_COOKIE"));}
Thanks in advancce.
-
Problem with a multiline textboxMmmz... using a richtextbox instead a textbox seems that solve the problem. Thanks for the replies. :)
-
Problem with a multiline textboxOk, and how can i format the response because if i see the html of google.com into firefox it appears formatted, but into my textbox no. Any idea how can i output the html source formatted into a textbox?? Thanks in advance. :)
-
Problem with a multiline textboxFirst, the code that i´m using:
//Get url contents
HttpWebRequest hRequest = ((HttpWebRequest)WebRequest.Create(url));
hRequest.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3";
HttpWebResponse resp = (HttpWebResponse)hRequest.GetResponse();//Read contents and output into a textbox
StreamReader reader = new StreamReader(resp.GetResponseStream());
string res = reader.ReadToEnd().ToString();
reader.Close();
textBox1.Text = res;The problem is when i see html source into the textbox it appears bad formatted, dont know if each line of a texbox has a limit of characters and this is why it jumps to another line or what happens. I set the wordwrap property of the textbox to false and added both scrolls bars, but it still bad formatted. Can someone help me? Thanks in advance. :)