473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with Font not detecting URL

latitude
Hi, have a bit of a weird problem. Have a text-editor and problem is that when i doubleclick to open a file from explorer, the font im using wont detect the url, but show it as plain text only. Seems that if i use the default mssans serif font it works fine, but not when im using another custom font. But it should work, atleast it detects the url fine when i use drag'ndrop and opening by filemenu filestream. Or if i first opens a file from explorer by doubleclicking it wont display the link properly untill i add or delete a word from the link, then it immediately shows it correctly!

Anyone have any idea what might be wrong?
Jan 29 '07 #1
1 897
Forget to insert the code used for opening the file, which is like this:

Expand|Select|Wrap|Line Numbers
  1. if(args.Length > 0)
  2. {
  3. Form1 frm = new Form1();
  4. FileStream file = new FileStream(args[0], FileMode.Open, FileAccess.ReadWrite);
  5. System.IO.StreamReader myFile = new System.IO.StreamReader(file, System.Text.Encoding.Default);
  6. frm.TextBox.Text = myFile.ReadToEnd();
  7. frm.Text =("Viewing " + args[0].ToString());
  8. myFile.Close();
  9. file.Close();
  10. Application.Run(frm);
Jan 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Csaba2000 | last post by:
How do I detect when the font size has been changed (especially by user action: either Ctrl+Scroll wheel or View/Text Size)? This is just for use on IE 5.5+, but it would be great if there was a...
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
2
by: Ben Long | last post by:
I'm curious if it is possible to detect the browsers default font and size? Most of the posts on this topic predate Windows XP, IE 5.5, Mozilla Firefox, et al. I've searched up and down the DOM...
0
by: edurazee | last post by:
I am able to create BoundFields and Footer-rows dynamically like this in my GridView: protected void Page_Load(object sender, EventArgs e) { CreateGridView(); ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.