Author Topic: VB [Help with TextBox...]  (Read 3516 times)

0 Members and 1 Guest are viewing this topic.

Offline @Veritas_Triumphus

  • Peasant
  • *
  • Posts: 65
  • Cookies: 2
    • View Profile
VB [Help with TextBox...]
« on: November 12, 2011, 07:48:09 pm »
Its not really problem with TextBox that I dont know to use it. Its complicated for me to solve this problem:
I have one textbox that show CSS of forum. And I have one extra form on right side. How to solve this problem:
1. On that extra form i want to have questions about CSS (as font-family, font-size...) and after wrriteing it there and clicking button that data be transfered in TextBox as CSS. After adding all for body, on same extra form I want another thigns to be asked as pun-footer, pun-intro staff. And also same date be transfered to TextBox (same one) but do not delete previsios entered CSS of body. I think I explained well (or just think I am). If you still dont understand feel free to ask.
Code: [Select]
while (1) {
document.write("I love EvilZone.org" + "<br />");
}

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: VB [Help with TextBox...]
« Reply #1 on: November 12, 2011, 08:29:18 pm »
To hard to understand what you want. Make a better description of your problem or wait for someone who cares enough to read your question 10 times.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline lordarnoud

  • Peasant
  • *
  • Posts: 112
  • Cookies: 6
    • View Profile
Re: VB [Help with TextBox...]
« Reply #2 on: November 12, 2011, 09:03:42 pm »

Offline @Veritas_Triumphus

  • Peasant
  • *
  • Posts: 65
  • Cookies: 2
    • View Profile
Re: VB [Help with TextBox...]
« Reply #3 on: November 12, 2011, 10:06:41 pm »
I will update later with pictures what I wanted. :)
Here we go:
First form:



First form is textbox where will be CSS. Second form i dont know how to do next thing:
I want on second form to add questions to user (like there is on command prompt when it ask for name, and remeber the answer. I want second form have questions and after user answer that answers be added to textbox1 and remebered. After that. I want new questions, and that answers be added to textbox with old answers. So I can form CSS code for user. Example:


Form 2 ask: (body color, font-size...)
After asnwers textbox take this:


body {
background-color:#ffffff;
font-size:15px;
}
And now after textbox have that i have new questions like:
(navigation-padding, background-color, border-radius)
And textbox take this:

#navbar {
padding:5px;
background-color:transparent;
-moz-border-radius:15px;
}
« Last Edit: November 12, 2011, 10:22:41 pm by @Veritas_Triumphus »
Code: [Select]
while (1) {
document.write("I love EvilZone.org" + "<br />");
}

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Re: VB [Help with TextBox...]
« Reply #4 on: November 13, 2011, 05:56:37 am »
Quote
Form 2 ask: (body color, font-size...)
After asnwers textbox take this:


body {
background-color:#ffffff;
font-size:15px;
}
And now after textbox have that i have new questions like:
(navigation-padding, background-color, border-radius)
And textbox take this:

#navbar {
padding:5px;
background-color:transparent;
-moz-border-radius:15px;
}

ok so before form2 asks the 'question' what does form1 contain
you question is not very clear but i think i know what you want

look at the .IndexOf() .SubString() .Replace() functions of the textbox
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline @Veritas_Triumphus

  • Peasant
  • *
  • Posts: 65
  • Cookies: 2
    • View Profile
Re: VB [Help with TextBox...]
« Reply #5 on: November 13, 2011, 11:05:08 am »
Form1 contain just textbox. Form 2 will contain questions. But dont know how to make questions just come around. And after every answer, TextBox1 generate part by part CSS. Thats what i want to get. CSS generator. Only problem i have to solve is how textbox1 can take answers and remeber them. Because it need to store more answers so complete css code become created.
Code: [Select]
while (1) {
document.write("I love EvilZone.org" + "<br />");
}

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: VB [Help with TextBox...]
« Reply #6 on: November 13, 2011, 11:38:44 am »
create an encrypted text file with questions and then decrypt text as you read it. Generate the CSS/HTML into a legal file, output it to %temp% and load it in the browser component???

Offline @Veritas_Triumphus

  • Peasant
  • *
  • Posts: 65
  • Cookies: 2
    • View Profile
Re: VB [Help with TextBox...]
« Reply #7 on: November 13, 2011, 12:26:26 pm »
Sound easy for you but to me it looks like:

Is there any simple way?

Code: [Select]
while (1) {
document.write("I love EvilZone.org" + "<br />");
}

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
Re: VB [Help with TextBox...]
« Reply #8 on: November 13, 2011, 12:45:54 pm »
pictures! :P
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: VB [Help with TextBox...]
« Reply #9 on: November 13, 2011, 02:10:26 pm »
HAHA nice picture mate :D
But really tho, it's very simple. You just need to have separate texts to load hard-coded into the project or load from file at run time, decrypting as you do.
I know what I am saying and it's easy. Just use simple XOR encryption - you can find lots of samples online.
Then load relevant piece of code from the file, save it as HTML in %temp%, load it to the browser component (there must be one) and that is it...

I could make your project in Delphi in few hours if I had to :D

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Re: VB [Help with TextBox...]
« Reply #10 on: November 13, 2011, 02:41:31 pm »
HAHA nice picture mate :D
But really tho, it's very simple. You just need to have separate texts to load hard-coded into the project or load from file at run time, decrypting as you do.
I know what I am saying and it's easy. Just use simple XOR encryption - you can find lots of samples online.
Then load relevant piece of code from the file, save it as HTML in %temp%, load it to the browser component (there must be one) and that is it...

I could make your project in Delphi in few hours if I had to :D

yup there is a browser object , the objects in the .net framework
are actually a lot like the delphi vcl. i think encryption of any kind is poinless
in his app tho who gunna wana look at the template file anyways ?

ok so instead of asking the questions in a textbox cant we use inputbox ??
or maybe have many label:textbox like


body:textbox
font:textbox

we hold our template in a string inside your project say TemStr
Code: [Select]
body {
background-color:{BGC};
font-size:{FS};
}

then when the user is done (button click ?) we replace the reverent values into a new string
Code: [Select]
string tmp = TemStr;
tmp = tmp.Replace("{BGC}", "user selected color");
tmp = tmp.Replace("{FS}", "user selected font size");
TextBox1.Text = tmp;

Damm it feels good to be gangsta
http://bubzuru.comule.com