Jump to content
Xtreme .Net Talk

q12

Members
  • Posts

    10
  • Joined

  • Last visited

About q12

  • Birthday 02/12/1980

q12's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I NEED to log in to deviantart.com and collect from there some images I like, for personal use. I am an artist! I use a windows application (NOT an ASP). I must use cookies to login to that website and set a "mature content" , to be able to see all artists posts. I need a code solution, or an idea about how to make it. I am struggle with this for half of a year already and I couldn't resolve it by myself. Please, and thank you.
  2. This is a Hard question(apparently simple): How do I COPY the selected text from a webBrowser page, and paste it to a text file( for example)? I have this until now: private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { //the 67 is the mousebutton no4 (I have 5 5buttons and a scrolwhell-A4Tech_X7 mouse) //the mousebutton no4 is set to "ctrl+c" keys (Copy) if (e.KeyValue == 67) textBox2.Text=webBrowser1.DocumentText; } Until now i cant manage to copy a text selection from webBrowser. How to do that? Thank you.
  3. look over this file and tell me how are you thinking in improve it ! I spend an entire night at it. The idea is to have a MAP (on the paper) and rapidly look over it and "remember" what i must to put when I need it. it's like a pocket reminder(a very tiny little map). http://www.sendspace.com/file/p56n1r of course in time must be the answer....if any...hope so... :) thanks again.
  4. string versus String ! I have a question (a little embarrassing because I see it so late), what is the difference between String and string ? not in the way that String is a Class and string is a reference type. But rather how to think about them in the term of uses. I searched and find this piece of gold, but I don't know how to use it very well: Use "String" to refer specifically to the String class. Use "string" when referring to an object of the String class. How to use them, accordingly? thanks again.
  5. Hy again. I have a new question: I want a string to see it flashing when I click a button. It sound crazy but I actually want to adapt it to a led connected to serial port (rs232) (pin3+/pin5gnd) and to make it like a strobe light (at a fv of 100ms for example). But first I want to make a test with that string (if you happen not to be interested about serialPorts) Thanks
  6. this make sense "mybtn.TextBoxThing = textBox1;" because I point to something specific(textBox1) but I cant figure out how to poit to button1. I must assign somehow the mybtn obj to the button1 control. how to do that? thanks.
  7. As far as I see, you are on the right track, impressive; and I am very pleased with the results. But is a little problem: Im not that advanced than you, please write the implementation in the form for me. This is as far as I can think, of implement it by myself: private void Form1_Load(object sender, EventArgs e) //(this is correct? to put it in "Form1_Load" ?) { ButtonSample mybtn = new ButtonSample(); textBox1.Text = mybtn.TextBoxThing.Text; (this one I'm not sure is correct) }
  8. The same btn click event who can switch between 3 strings like "Aa", "Bb","Cc"? 1 click pop up the first string, second click(same btn) pop up the second string, and the third click(same btn) the last string? And after the third one it begin with the first string, second,etc.
  9. Yes. This is the idea.
  10. My question is how to create this: for an existing object a new custom property? "existing object"= an object control in general (ex: a textbox) "new custom property"= by default this control "textbox" have this property: textbox.Hide(); ...and many other properties off course,but I snipe to this particular one, only. In what way? Well, I want that a single button to have a custom property write by me, named "myHideShowProperty" that can do 2 things in one package, I mean that when I click once, "Show" that textbox ; and when I click one more time it "Hide" that textbox, then when I click once more it "Show" a textbox,and so on. In the end, the code I imagine that it must look like this: //im sure this is ilogical but this is how I imagine this thing could be: btn1.myHideShowProperty.show(textbox); btn1.myHideShowProperty.hide(textbox); The idea behind all of this is how to write a customized property for an existing object control. And of course a solution for my problem, if there is one. though I must mention that I have made a variant and it works: // two buttons on top of each other private void button1_Click(object sender, EventArgs e) { button1.Hide(); button3.Show(); button3.Text = "second btn"; } private void button3_Click(object sender, EventArgs e) { button3.Hide(); button1.Show(); button1.Text = "first btn"; } //but is a silly code,no? :)
×
×
  • Create New...