|
in which control do u want to image ? r can u kindly explain in details ?;)
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|
|
Thx 4 ur reply.
i m building a html editor in vb.net. 2 do so i m using webbrowser control. all i want, when user uses this software, he can insert a background image to document. i have done this like
Dim openDlg As New OpenFileDialog
openDlg.Filter = "BMP Image|*.bmp|GIF Image|*.gif|JPG Image|*.jpg"
If openDlg.ShowDialog() = DialogResult.OK Then
Dim Tempstr = openDlg.FileName
Dim fileName As String = ""
For Each ch As Char In Tempstr
If ch = "\" Then
ch = "/"
End If
fileName += ch
Next
Tempstr = "<title>" + str + ""
webbrowser1.DocumentText = webbrowser1.DocumentText.Replace("King
|
|
|
|
|
how to find compressed drive or folder programitically
naveen
|
|
|
|
|
Check if the Attributes flags of the DirectoryInfo class contains FileAttributes.Compressed to see if a directory is compressed.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I plot many lines in a panel, they are stored in a parameter,e.g. List<>. I want select one of them and edit. then I use panel.refresh() to update the lines. because all the lines are redrawn and there is strong flash, how to avoid this? thanks
|
|
|
|
|
Your best bet is to turn on double buffering.
http://www.codeproject.com/csharp/DoubleBuffering.asp[^]
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, Christian,
thanks a lot. I am not sure my problem can be solved by double buffering technique.
I found that my problem is from the refresh itself. I mean: when I edit one line, for example, I try to drag this line by mouse moving, during mouse moving, the panel is refreshed again and again, and therefore all the lines are redrawn again and again. then all the lines show flash effects. even I use double buffering, after these lines are drawn in the memory, they are loaded on the screen, anyway, they should be refreshed again again. therefore, i think double buffereing can not solve my problem. maybe I should use different method to draw my lines. I would like to know your opinion.
thanks again.
|
|
|
|
|
Hi, Christian,
thanks a lot. I am not sure my problem can be solved by double buffering technique.
I found that my problem is from the refresh itself. I mean: when I edit one line, for example, I try to drag this line by mouse moving, during mouse moving, the panel is refreshed again and again, and therefore all the lines are redrawn again and again. then all the lines show flash effects. even I use double buffering, after these lines are drawn in the memory, they are loaded on the screen, anyway, they should be refreshed again again. therefore, i think double buffereing can not solve my problem. maybe I should use different method to draw my lines. I would like to know your opinion.
thanks again.
|
|
|
|
|
Can anybody help me in providing some information about the Auto diagnosis of internet connection issues, that we come across while connecting to the internet using PPPOE dial up Systems on different OS systems(Win 9x,XP,Windows Server 2000/03,Windows Vista,Linux).
|
|
|
|
|
Windows uses something like doNetDetect() . This function appears in 'The page can not be displayed' webpage of Internet Explorer.
|
|
|
|
|
Hi,
I have a file with huge size say 2 Gig, i need to read and put it over my GUI. I feel that its costly operation and it will kill my application. Would like to apply Lazy Loading approach to read data and place it over.
Can you some one provide me an example that shows how it is being achived here C#?
|
|
|
|
|
Lazy initialisation is not going to help, you need to write code that maps your 2 gig file and searchs it without loading it at *all*, unless you're sure you're going to have the memory free to hold it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I dont get you... with out loading it how can show it on GUI ?
If i do like this
1. Read chunk of data like 10 Meg per chunk
2. Place only on chunk on GUI and memory map
3. When ever we goes back and forth we can bring it from physical memory ?
Will this alogirithm work out ? Any example like this?
|
|
|
|
|
You can't show 2 gig of data in your UI, no matter how you look at it.
Yes, if you read it a bit at a time, that's probably a viable approach. My point is that lazy loading means to load an object as you need it. I suspect you meant more what I was suggesting, that you load it a bit at a time, right ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes you are right, as well sorry if i have confused you.
Idea behid is reading bit of data and kept it as object and load into GUI. When we scrolls back and forth data model need to be get updataed.
Or
By using any Caching approach (Microsoft Patternts Library for Caching) can i have whole 2 gig of data into memory and load from it with out reading from physical file? Im working under 32-bit memory env hence it may support max. 2Gig size of data.
Any hopes ?
|
|
|
|
|
Hi,
I need Help in Understanding the mechanism of operator overloading in C#.Net.
I have just start C#.
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
hi
google[^] knows (almost) everything
greets
M@u
|
|
|
|
|
Hi, Buddy, Thanx 4 the Info.....
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
Try google..
Koushik
|
|
|
|
|
Hi,
I have studied some topics from google.
But now my requirement is to overload all the unary,binary and ternary operators.
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
|
Thanx Bro...
I have jus find my solution...
Once again Thanks...
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
hi freind i need help. i m developing an application and i declare a class and i need the array of the object o that particular class how can i declare it
wasim khan
|
|
|
|
|
List<yourclass> CollectionOfYourClassObjects = new List<yourclass>();
Should do it for you.
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
You need to check 'Ignore HTML tags in this message (good for code snippets)' if you want to use < or > in your posts.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|