|
Hi ,
I am wondering if there is anyone who can help me to load just a portion of TIFF image to memory, then I can display that portion to a form .
Thanks
|
|
|
|
|
GDI+ will only load the entire image, and I'm not sure how TIFF is compressed ( could complicate reading only part of it ). Either way, you need a third party library, I believe.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You must understand the TIFF specs and build your own code or use a third party lib as mentioned. Same is for every image file. BMB is just the simplest
|
|
|
|
|
Hi, I populate a listview's items as follows:
listView1.Items.Clear();<br />
this.emailTableAdapter.Fill(this.myclubDataSet.Email);<br />
<br />
foreach (DataRow dataRow in myclubDataSet.Email.Rows)<br />
{<br />
string fullName = dataRow["FullName"].ToString();<br />
string firstName = dataRow["FirstName"].ToString();<br />
string lastName = dataRow["LastName"].ToString();<br />
string address = dataRow["Address"].ToString();<br />
<br />
string[] myItems = new string[] <br />
{<br />
firstName,<br />
lastName,<br />
address<br />
};<br />
<br />
ListViewItem lvi = new ListViewItem(myItems);<br />
<br />
listView1.Items.Add(lvi);
When I run the program in debug mode from the VS2005 IDE the fields are filled out nicely BUT when I run the same program in the OS I get three dots hard up against the right end of the field:
eg |Glen ...|Harvy ...|glen@somewhere.com ...|
The dots aren't there in debug mode.
Cosmetic I know - but why?
Glen Harvy
|
|
|
|
|
It's likely the form is a different size, and it's showing you that it can't show all the data.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I thought of that and checked the string lengths but I'll check again.
Glen Harvy
|
|
|
|
|
How can i display picture on button tool ?
Well dragging picture box over button tool doesnt solve this as i want button click option aswell. Its just instead of writing text over button i want picture .
Thanks
|
|
|
|
|
PictureBox.Enabled=false;
Luc Pattyn
|
|
|
|
|
You can specify a bitmap for a button, or there's a bitmapbutton control ( and you can specify a bitmap for that )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi all,
I am trying to get around with this problem i.e. How can i create many sub forms within one main parent form.
My application consist of different games, so now i want to have something like this ->
A select option over the left of the form, say i put few buttons. Now with each click of button it should give me new form within the same form but the option of buttons should be there in each form to revert back to the last form or to go to next form ...Say previous and next button type...
I have googled but not getting any appropriate solution.
Any solution to my problem ?....
Thanks a lot in advance.
|
|
|
|
|
|
What about TabControl with TabPages?
All the best,
Martin
|
|
|
|
|
Based on this can i ask how the option forms with a listview changing the panel on the right are designed? SOmething like e-mule options?
I know how can it be done, i just want to ask how they visually design it. Can a form be placed inside a panel for example?
|
|
|
|
|
hey guys, currently I'm working on a project for myself that contains alot of entery forms that are basically the same (text boxes, code ...), but of course they each are connected to different tables and they have different names, so I want to creat one and just duplicate it for the others (just change some names !) I tried to use Inherited Forms but I couldn't change anything there ! can you give me a hint !
Thanx alot
Mr.K
|
|
|
|
|
Hello,
Seem that your controls on the base form are private members.
You could change them to protected or public than you would be able to change their properties.
All the best,
Martin
|
|
|
|
|
Maybe you dont need different forms at all, you might just come up with one that adapts itself
to a range of requirements, and then you create many instances of it.
Once you get it to work, it would save a lot of code and hassle, and it may open up a range of
new possibilities too.
I got used to create most dialogs programmatically, my typical application has only two forms
that resulted form Visual Designer: the main form, and the About form. Everything else, I
tend to program (based on some dialog classes I created over time, and keep expanding when
the need arises).
Luc Pattyn
|
|
|
|
|
OK, I am really stuck.
I have a form with a button. I click the button and I want to display a dialog box.
I created the dialog box using the age old inheritance stuff. That is:
public class MySpecialDialog : System.Windows.Forms.Form
I customize the form to my hearts content. Glory be. How simple can this be?
But when I try do instantiate this customized dialog:
private WindowsForms.MySpecialDialog aDialog;
aDialog = new MySpecialDialog();
and then show the dialog in the button click routine:
aDialog.ShowDialog();
I get a form that is just a blank form.
Could someone tell me what I am missing here?
Thanks in advance, Vern
|
|
|
|
|
Is the dialog of type dialog?
Also make sure the constructor calls the InitializeComponents method of the WYSIWYG part won't work right. Also ...
<br />
if(aDialog.ShowDialog() == DialogResult.OK){}...<br />
will let you use it.
File Not Found
|
|
|
|
|
Ennis:
Thank you very much for your response. Calling InitializeComponenets in the constructor did the trick. I really appreciate your help.
Vern
|
|
|
|
|
Also, for future reference, the VS Desiner will often drop events on accident. So if your controls ever stop responding to user events check the events list.
File Not Found
|
|
|
|
|
I do believe I know what your talking about. I remember working on a project where I know I had an event handler and one day it was just gone. Now I know it was not my imagination.
Thanks again.
|
|
|
|
|
Ok, thanks to some help, I think I have what I need to extract the data I need from a HUGE (900Mb-2Gb) text file.
Now I need to store the huge volume of data so that I can process it. Its only 5 fields, but lots of entries. I will need to group the data based upon various fields so I can bin and plot it. I will also need to do things like MIN/Max/Average of one field for groups of another field.
So the question is what type of data structure do I put it into? Any suggestions?
David Wilkes
|
|
|
|
|
amatbrewer wrote: So the question is what type of data structure do I put it into? Any suggestions?
A database. It is designed specifically to hold and process large volumes of data like this.
|
|
|
|
|
and with several gigs of data, that DB should be something other than access.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Ie every time your app runs the data is different I wouldn't recommend a database. When parsing the national do not call registry I wrote a simple binary search to traverse the massive mulit-gig file to return entries by area code.
Putting it into SQL Server took 2 days. Based on the need and my knowledge of algorithms no db was a better answer.
Of course depending on how complicated you get will depend on when a db becomes a valid choice.
File Not Found
|
|
|
|