|
i am trying DirectoryInfo class to get the files inside of it in file info array then i would iterate around them but am facing problems you cant know what the names of the picture bcz it is the client's disicion and there is no index or sort.
|
|
|
|
|
Then you will have to sort them by name, or create date. If the user doesn't catch on fairly quickly that sequential naming is a good idea if you want to find things, then spell it out to him when he compains...
DirectoryInfo di = new DirectoryInfo(@"c:\XXTemp");
FileInfo[] fil = di.GetFiles();
is the way to go.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
string[] picFiles = Directory.GetFiles(@"D:\PICS");
foreach (string picFile in picFiles)
{
pictureBox1.Image = Image.FromFile(picFile);
MessageBox.Show("Press OK for next picture...");
}
The pictures are unsorted. If you don't have any index, then sort "picFiles" to date and time.
|
|
|
|
|
Hello, there is no need to put Bold on entire message. Your question conflicts with the title.
Are you looking for next image in same folder or are you looking how to get next frame in Animated Image (GIF)?
EDIT: I didn't saw other post, because my Firefox has cached and i saw old page.
You don't need to know names of file. You can actualy parse the order. You coud by Character code.
Also if you chose by date time, it desn't mean it will be accurate. If it was taken by camera, and you change batteries, there is possible date information could reset and new files coud have wrong DateTime
|
|
|
|
|
well guys my testing on directoryInfo have seeded now i got the names of the picture now all i have to do is to change from one pic to onther in a web form. could any body suggest how to make that happen i was thinking of making a panel that changes its directory by either clicking forward or backward but how i could change a paned directory is ther something as a panel directory?? Or how about an update panel inside it there is a picture were i assign the picture every time i click.?
|
|
|
|
|
My program is able to detect faces in pictures when these faces are closer to the camera view
however it is not able to detect faces which are furthur away from the camera (small faces E.g. picture of a Football Team)
I m using Emgu for the reference
Can any1 give some advice on this matter
|
|
|
|
|
|
I databinded the gridview to datatable and displayed the fields.But the edit of gridview is not working..I am getting the following error.
'The GridView 'GridView2' fired event RowEditing which wasn't handled.'
Can anybody help me with this?
|
|
|
|
|
For this You have to register Gridview2_RowEditing Event in Code behind.
For example :
protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e)
{
//Write your editing Code here.
}
And for cancelling editing, You need to register Gridview2_RowCancellingEdit event.
For Example :
protected void GridView2_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
}.
You can visit MSDN for further information http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx[^]
Hope this will make sense to you.
Ankit Zaveri
|
|
|
|
|
Hi there , i am currently working on a project that is to share internet connection over a LAN, and i should write a custom NAT service! any one can help me where to start, offer me some references? any ebooks?... just thanks!
|
|
|
|
|
how to check weather all field of table has filled or not???
|
|
|
|
|
Is this to be done in the UI (validator and should be in the ASP forum) or in the code behind in which case you check the controls on the form or the datatable has null values.
|
|
|
|
|
We have an ASP.NET forum. The documentation on validators is also very clear, with lots of examples.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
darolia.manish wrote: all field of table
all fields of table means what?
Do you mean all field entries are filled or not? If so you can check each individual values that user feed in....
You can also place asp:RequiredFieldValidator for each controls
Or while executing the insert statement, loop through Parameters of command object and see of value of any parameter is null....
|
|
|
|
|
what do mean by table DataTable or an asp Table , or an Html table with tr and tds ??? please be more specific
|
|
|
|
|
Hi!!!
i need to pass some objects from on form to another, using events. the main form does not calls the sec ondary form, it is being called from somewhere else. So i cant use any of the things listed in this article.
Passing Data Between Forms[^]
i tried to use Microsoft unity block (Event broker) method, but it didn't work for me as posted in this article.
http://elegantcode.com/2008/04/09/unity-10-eventbroker-sample-cab-style/[^]
Others methods can be using windows message queues or database.
Is there any other solution. Please i require some help urgently. some code will be appreciated.
Note: Performance is a major issue in my App as i am building a tcp server with some live mapping. And if anyone has a working solution using subscriber/publisher in event broker, it would be highly appreciated.
|
|
|
|
|
Why can't you wire up a class with the data and have it implement Inotify events and have both forms subscribe to the events.
|
|
|
|
|
how to play a pps or ppsx file in my form? don't want to play it outside my application. need to play it in the size of my form.
OmarMallat
|
|
|
|
|
I thought I answered this. did you cross post to the VB forum ? Are you using VB or C# ?
You know that any solution, if one exists, will require the user to have Powerpoint installed ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I already have powerpoint. I have no problem with vb or c#. I need the solution. I tried to search internet but I failed.
OmarMallat
|
|
|
|
|
hello,
In my application i am having a form with textbox fields and one button
exit.
when the form is closed and opened for the second time i like to see
the values already i had entered in the textboxes for the first time.
plz help me how i can do this....
Thnaks in advance
|
|
|
|
|
They obviously do not come from thin air. You can store them in a file, in a database ( but if you don't already have one, that seems like a waste of time ), or in the registry. I'd store them in an XML file.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hello,
yah i know how to save the values entered in the form into the database
and well i know how to retrive the values from the database.
what i need is
when the form is closed and opened for the second time
i like to see the values what i had entered previously.
Thanks in advance
|
|
|
|
|
Anjani Poornima wrote: yah i know how to save the values entered in the form into the database
and well i know how to retrive the values from the database.
If you know both of those things, then you already know how to retrieve them the second, or any, time the form is opened. simply do it in the Load event handler of the Form in question.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I don't understand your question then. You know how to use a database, but you don't get that if you want to store the values in your textboxes, you need to write code to store them, and to retrieve the values ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|