|
I agree. Another way I thought I could do was to read the image file info from the Temporary Internet Files folder but I can't use the FileInfo class since XP does not seem to allow any file in that directory be read except desktop.ini. If I can circumvent this that would resolve the issue.
Any ideas?
dan215
|
|
|
|
|
dan215 wrote: Any ideas?
Not really, apart from that my view of accessing the Temporary Internet Files is a bad idea on the whole. There are too many ifs and buts.
The thing which I should be improved is trying to eliminate the WebBrowser if you're simply using it for accessing the html to get the filename and not actually displaying it because my guess it'll be very resource hungry.
If you know that the image paths will be specified in the html page then it'd probably be more efficient to make a WebRequest or use WebClient to "download" or read the file and then use a simple parser or regular expressions to extract the image file, this way you're not creating a UI control and then not displaying it.
Just my two pennies
Ed
|
|
|
|
|
I agree with you.
Thanks.
dan215
|
|
|
|
|
That's good to know
Ed
|
|
|
|
|
Hey guys, I have to tables and I want to make a selection from both tables
Table 1: Customer >> Name and number (my main table)
Table 2: Order >> Order
with the select command i select them, not I want to show it in DataGridView, but i can fill data gried with one table
DataGridView1.dataSource = MyDS.Tables["Customer"];
but when I fill in the DataGridView, It authomatically adds the new Row from Order Table(i want to change the header but its not possible because it brings it driectly from database).
I used this command to add a column in my dataSet
MyDS.Tables["Customer"].Columns.Add("Order");
what I dunno how to do this, to show the data in the column Order from Order table in my new Column that I have created.
Mr.K
|
|
|
|
|
You're being a little vague, so hopefully I'll be able to get some clarification. Are you trying to join two tables and then display the resulting join in a DGV? If so, can you give us the query string that you use to retrieve the data. Also, have you stepped through your code and ensured the query returns what you want?
|
|
|
|
|
I fixed that Problem, I have this question
we have this command for DataGrid
dataGrid1.SetDataBinding(MyDataSet, "MyTable");
Do we have the same command for DGV ? Or something equivalant that does the sam thing ?
Mr.K
|
|
|
|
|
I was wondering if it would be possible to implement a LinkHover event on the rich text box control. It already has a LinkClick event, but no facilities to offer a tooltip on LinkHover. I'm assuming it is possible, as on mouseover a link the cursor changes, but i'm guessing it will need some COM work.
Cheers
Tris
|
|
|
|
|
Why don't you try deriving from the RichTextBox and overriding the OnMouseMove method. You can then use RichTextBox.GetCharIndexFromPosition to get the character under the cursor and if it's a link then fire your custom LinkHover event (of course that's a simplified plan but it should get you started).
The only trouble I see at the moment is finding out the indexes of the links. I can't seem to find anything which lists them which suggests they are handled internally by the control.
So if you can solve the last problem then you're away (also this solution is managed rather than COM Interop)
Ed
|
|
|
|
|
Ok, I have one form when I click a button, I want my existing from to be minimized and a new form to be opened.
How can I do that ?
Mr.K
|
|
|
|
|
|
Well, if you want to minimize a form created in your program, this is a pretty easy task:
1. Just add a method to the Click event of the button. (Designer can even do that for you)
2. In this method you set the WindowState Property to Minimized:
this.WindowState = FormWindowState.Minimized;
To open a new form just add MyForm.Show(); to your method for the click event.
Greetings.
-- modified at 5:07 Tuesday 18th April, 2006
|
|
|
|
|
Right, you can change the WindowState property to come true.
Plz try it!
------------------------------------------------
I Love the Win32 and MSN, Because it's Universal & Facility !!!
|
|
|
|
|
Hello,
If I have DataTable available, is there a way of getting the TableAdapter for the given table, so I can update it?
Thank you.
|
|
|
|
|
hallo every one,
i have create a program that show my a table in my DB.
until here all is good ... but i want it to be able to update the table
without me having to write the Rows or the column so the program can work
with any table even if i dont know everything about the table.
can some one help my?
thanks 
|
|
|
|
|
is there a special SQL command that can help my?
|
|
|
|
|
i have problem in treeview control that is when i selected treeview folder the contents of selected folder will not display on right side like a Windows Explore.Please send me code in c#.net for this problem.
|
|
|
|
|
|
i want to display selected treeview folder contents on right side list box like windows explore
|
|
|
|
|
|
1. I want to show a altert message box (Are uyou sure to delete ???) having two button YES or NO after click on Delete Button of datagrid in WINFORM. PlZ this is Windows application in C#.net.
2. I am exporting data grid into CSV file but i have hard code to save this file "Successfully exported to C:\\EmployeesInfo.csv"; in C: drive. But i want to give option to user give desire file name and location where user want to save this file after export.
PLZ help me. I obeylize to all of you.
thanks.
|
|
|
|
|
|
I have created a bound windows form to a dataset. This application is a time tracking system. On the main form I want the user to be able to navigate back and forth through the dataset. They would click on a monthly calendar control and then the dataset would be filtered for that record.
I'm able to get the data into the form. However, I'm not figuring out how to filter the data. I would think I would need to use some sort of rowfilter off of a dataview.
The structure of the data is like this: I have an identity column called TaskID, I also have a smalldatetime column called TaskDate. TaskID is the primary key. I want to be able to filter the dataset based on the TaskDate.
Thanks in advance...
|
|
|
|
|
The best way to filter and sort is to use a DataView on top of the datatable, about DataView here you have a link about how it works:
http://www.akadia.com/services/dotnet_filter_sort.html[^]
Good Luck
Braulio
/// -----------------------
Braulio Díez
http://www.bdiez.com
/// -----------------------
|
|
|
|
|
I have a custom C++ dll. How can I call a dll API function using DllImport attribute that has an array of floats as one of the functions' arguments? I know how to do it with arrays of integers and strings, but I can't find how to do it with floats.
Denis
|
|
|
|