TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sujit Das
NA
1
815
need C# code for following problem
Aug 1 2014 3:56 AM
I wanted to load contents of text files by using button to richtextbox.It is working for english language file but when I was looking for bengali text file its not working....i am giving my codes below..please help me..
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//using itextsharp.text;
//using iTextsharp.text.pdf;
//using iTextsharp.text.pdf.parser;
namespace tokenizer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Stream Mystream;
OpenFileDialog openfiledialog1 = new OpenFileDialog();
if (openfiledialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
if ((Mystream = openfiledialog1.OpenFile()) != null)
{
string strfilname = openfiledialog1.FileName;
string filetext = File.ReadAllText(strfilname);
richTextBox1.Text = filetext;
}
}
}
}
}
Reply
Answers (
1
)
ListView Controls
how to restrict a gridview for not taking more than 5 recor