|
error in line "if (btnPause.Content = "Pause") "
it should be like btnpauser.content == "Pause"
hopefully this should fix the error
|
|
|
|
|
Silly mistake, but hey CodeProject a bit of downer to place this question on the daily news email.
or maybe someone is having a bad day and wants to pass it on.....
|
|
|
|
|
hey all,
i've some textbox, which shows some words, the user should retype those words.
each time when the user types correct char, this specific char should be repainted to red color (at the specific word within the text box).
in richTextBox there is a property called .SelectionColor
is there any way to achieve this action by using a regular textbox ?
the reason i don't use richTextBox, due to the fact, it impossible to align text (at least i didn't find any property for that) in richTextBox...
thanks for help
|
|
|
|
|
No, the content of a TextBox (or most other Controls) is single font, single size, single style, single color.
igalep132 wrote: impossible to align text
?? not sure what you mean. Are you suggesting there is something a TextBox does and a RichTextBox doesn't? That would be news to me.
|
|
|
|
|
i didn't find any property for text alignment...
do you know any ?
|
|
|
|
|
In MSDN I see this[^], I have never used it though.
|
|
|
|
|
Hi,
How to make identity information in webbrowser control windows application.
eg: "*"http://google.com
* => logo of the particular url(website)
How to display the particular logo of the url in web-browser control. c#.net
Thanks
krishna
|
|
|
|
|
By default, the "logo" is nothing but the favicon.ico file located at the website's root. A meta tag can also be used to point to an alternative site icon.
/ravi
|
|
|
|
|
I want to create a windows application in C#.net that
will be used to make a call on given number.
THis application will use modem that is connected to my telephone.
Can we do this application?
As I have seen many api's to dial phone number from .net application
but don't know how to use them.
|
|
|
|
|
sana_26 wrote: As I have seen many api's to dial phone number from .net application
Then the answer could be yes.
sana_26 wrote: but don't know how to use them.
Then the answer looks like no in your case.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
|
string url = "www.google.com";
this.webBrowser1.Navigate(url);
string content = webBrowser1.Document.ToString();
In the button click method, I set the google.com url to webBrowser but webBrowser1.Document is null. I try to Sleep(1000) or use this.webBrowser1.Refresh(), webBrowser1.Document is still null, too.
Some one can tell me why ?
thanks.
modified on Saturday, August 7, 2010 11:51 PM
|
|
|
|
|
But when go to this button click method second times, webBrowser1.Document is not null.
|
|
|
|
|
The navigation occurs asynchronously. You should handle the DocumentCompleted [^] event before attempting to access the Document property.
/ravi
|
|
|
|
|
Thanks
|
|
|
|
|
Putting Thread.Sleep() in an event handler is a bad idea, as it prevents your GUI from staying alive, and typically does not solve the problem at all: all it does is "stop the world", so whatever it is you hope will happen in the mean time probably is not happening at all. Use either an asyncrhonous operation, a timer, or another thread.
In your specific case, the Document will not be received until much later, it takes time for the WebBrowser to navigate, receive, and decode the web page. Use DocumentCompleted event (and watch out for multiple events when your page is more complex).
|
|
|
|
|
Please give me the code to split a PDF file using iText.
How to scrap out a range of pages to another pdf file?
|
|
|
|
|
Gjm wrote: using iText.
Check out the IText website to see if you have any samples available.
|
|
|
|
|
I guess you mean iTextSharp. They have a forum which is a better place to get the answer.
|
|
|
|
|
|
hi
i have a problem with ms access db and c#(vs2005) that gonna kill me!
my db has few tables but with many fields, so i want to use wizards and databindings as i can.
i use dataset wizard to add my db into project, then drag tables on my forms.
problem begins with parent/child tables with autoincrement id field in parent table.(i set relation in dataset design view).
in my code at savebutton_click i use this code:
this.validate();
this.parentBindingSource.EndEdit();
this.childBindingSource.EndEdit();
this.parentTableAdapter.Update(this.ds.parent);
this.childTableAdapter.Update(this.ds.child);
but after this i have only one record at parent table and any user input data in child-bounded textboxes disappear!
i think i must update parent table first, then get last id(pk), finally update child table.
but how exactly? any working sample code, please?
everything i found on the web, was about using pure code and DataAdapter Not wizard,dataset and TableAdapter.(tableadapters does not have rowupdated event to trigger to get last inserted pk)...
so please help me before this problem kill me!!
|
|
|
|
|
Whatever you're trying to do, you're probably going about it wrong.
Don't use TableAdapters -- and certainly not Update, they're far too limited in what they can do.
mehdi0016 wrote: i want to use wizards and databindings as i can
What are you trying to accomplish?
|
|
|
|
|
well as i said i have many fields in each table... and i don't want to use command like 'insert(f1, f2, f3, f4,...)'
so databinding is my choose.
i had more search and i found this:
Retrieve Identity value from inserted row in Access Database using TableAdapter
now i have 'rowupdated' event and last inserted id.
but the problem is how to update child table excatly? at parent 'rowupdate' event?
i attached my problem!
testapp1[testapp1]
modified on Saturday, August 7, 2010 12:19 PM
|
|
|
|
|
the key(public and private) is stored in KeyContainer,
I do not export public-key and private-key.
the program run next time, How to get the right public-key and private-key?
please give me the simple code,Thanks.
|
|
|
|
|
You need to save your public key somewhere or ask the user to enter it when the program next runs. The private key should be derived from the public key. Take a look here[^] for some useful samples.
It's time for a new signature.
|
|
|
|