|
It is possible that we can read Devanagari Letters from Text File?
When Streamreader is used with Unicode encoding,Garbage is shown.
I want to perform some operation on that data?
Can you help me please?
... Regards]
Live Life King Size
|
|
|
|
|
One of the constructors for the StreamReader class accepts a stream and encoding. If Devanagari is supported on your computer, it's a trivial matter to get the encoding and pass it to the StreamReader
|
|
|
|
|
In addition to what you've been already told: where is the garbage being shown? If you're displaying it on a console, you certainly won't see the Nagari characters. You'll have to write them to another file or show them in a Winforms app to see them correctly.
|
|
|
|
|
I am loading my homepage where I have a MessageBox where i either can push "OK" or "Cancel".
How can I now invoke a click on the OK buttom ?
The function where the messagebox appears is looking like:
function messagebox (){
var del = confirm("Do you want to continue?");
if (del == true){ var loc="continue.php"; window.location=loc; }
}
Best regards
Mads
|
|
|
|
|
All message boxes will return a value indicating the button clicked. In Javascript it should be a boolean (True or false). Whereas in code like C# or VB (Windows) it will be a DialogueResult Enum value which will denote the result received
|
|
|
|
|
And how can I then manipulate it to think that I clicked? SetAttribute, InvokeMember ? Or smth else?
|
|
|
|
|
On a webpage? if so you're S.O.L.
|
|
|
|
|
S.O.L. ?
But yes, it is on a webpage, which is running on a webbrowser client in my application.
|
|
|
|
|
Anybody Help me
I am using an database application, in my application thousand of data's
are save and get back from the database. so form took much more time and
at the time system was hang, how can handle this problem
At the same i want to display a loading symbol, it is possible or not
And tell what data structure is efficient to search the data in database
Please give idea or some related article
Thank you...
|
|
|
|
|
|
To keep your form responsive you need to perform the database operations on a BACKGROUND thread, this will allow you to display a progress bar (or similar) to show that the application is working.
anishkannan wrote: And tell what data structure is efficient to search the data in database
That all depends on your database design. With no information it is impossible to say. You could buy a book on database design, or use google, there are thousands of articles.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
WHEN YOU PRESS THE SAVE BUTTON YOU SHOULD OPEN THE LOADING SPLASH FORM AS A DIALOG FORM AT THE FIRST LINE OF SAVE BUTTON'S CODE AND WHEN YOUR TRANSACTION IS FULLY COMPLETED THAT MEANS AFTER LAST LINE OF YOU SAVE BUTTON'S CODE HAS BEEN EXECUTED YOU SHOULD CLOSE THE LOADING SPLASH FORM.
|
|
|
|
|
I am have an MDI application where I have several child forms that open under the parent MDI form.
When the child form is opened in the MDI parent form it flickers.
The child form has many controls on it which gets filled by querying from the database when the form loads.
Also the child form has a grid displaying all the records from database.
I am using dataset to fetch more than 2000 records from database and bind it to grid.
I am having problem during loading of this form.
I have tried using following to avoid form flickering:
> DoubleBuffering technique
> Using Datareader instead of Dataset for fetching records
> Fetching records from database after form is loaded using Form_Shown() event
and used BackgroundWorker to Asynchronously fetch records from database.
Can anyone please help me out to avoid the form flickering issue.
Thanks in advance !!!!!!!!
|
|
|
|
|
Hi all...
I'm using C#
I've some images and I want to save these images as pdf file.
can anyone help me in this problem?
Thanks...
|
|
|
|
|
There is a library called PdfSharp in sourceforge. Use it to print image to PDF.
Or you can use some free PDF printer like PdfForge.
|
|
|
|
|
Hi stancrm!
thank you for reply to me.
I'll try using it.
is there an article that show how to use PdfSharp?
thank you...
|
|
|
|
|
or you can use PDF rasterizer too... also this one is open source i believe
|
|
|
|
|
thanks stancrm
your reply was great and helpful...(^^)
|
|
|
|
|
I've created a web browser class in my project(C#) and pass a url with few parametes to it.. this whole data gets visible on clicking on View Source on context menu.
How can i disable it?
|
|
|
|
|
|
Ok,
but can I do something to hide those data?
|
|
|
|
|
I dont think so. You cannot hide the HTML code. It stored in your local IE cache. You can also open it using Notepad. Or you can use SaveAs, it will also be saved as HTML file.
|
|
|
|
|
Dear All,
I am working on window application in C# i need to retrieve on record by using sql query but as record can't accessible with single query so i am using nested query to access the record query is correct i tested it in sql query analyzer but error in c# syntax query is this.....
rec = "select student_id from student_biodata where student_name = " + lstStudentName.Text + "";
string str = "select * from student_biodata where student_id = " + rec + "";
when i run this block error is Incorrect syntax near the keyword 'select'
this is in second query when i combining second query.
Please tell me what is the correct syntax of nested query in C#.
Thanx
Sajjad Ali
|
|
|
|
|
Your nested query does not make sense.
string str = "Select student_id from student_biodata where student_name = '" + lstStudentName.Text + "'";
Isn't this what you are trying to do ?
You missed quotes for student name in your orignal query.
|
|
|
|
|
1) rec = "select student_id from student_biodata where student_name = " + lstStudentName.Text + "";
2)string str = "select * from student_biodata where student_id = " + rec + "";
i want to get student_id first then i want to use id for specific record to display in data grid.
|
|
|
|