Forum: C# Sep 3rd, 2008 |
| Replies: 44 Views: 6,972 I end doing this inside my while loop
var imgClone = img.Clone() as Image;
img.Dispose();
GC.Collect();
GC.WaitForPendingFinalizers();
outside of... |
Forum: C# Sep 2nd, 2008 |
| Replies: 44 Views: 6,972 dont get that. also,
I create the stringList
StringCollection stringList = newStringCollection();
stringList.add= ????
where i put that ? inside stReader()
and what I add to the list the... |
Forum: C# Sep 1st, 2008 |
| Replies: 44 Views: 6,972 I get the idea but you lost me again in how to implement that.
:( |
Forum: C# Sep 1st, 2008 |
| Replies: 44 Views: 6,972 could you be more specific. I dont fallow .
------
because after a lot of edit at the name column there would be a lot of images in the image folder.... how i can avoid that.
--------
anyway i... |
Forum: C# Aug 31st, 2008 |
| Replies: 44 Views: 6,972 how I can reuse it if the images are not the same ?
there isn't another way like make a background class that trigger when the application close and delete it ? |
Forum: C# Aug 31st, 2008 |
| Replies: 44 Views: 6,972 I already managed to get right both values of the current edit cell and rename the current images according to those values of course now i want to delete the image with the old value because i am... |
Forum: C# Aug 30th, 2008 |
| Replies: 44 Views: 6,972 ok.. no not got it ...
my images is named the same as the name in the name column if you edit the name value later it wont find the image because the name is not the same i have to change the image... |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 got it !!
if there a more direct way.
creat two strings oldValue and newValue
set to catch the old one on cellbeginedit and the new on cellendedit
check and have both values . |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 I was thinking in get all the files in the
directory using the GetFiles method.
but i will need the two values, the old one to compare to get the original file and the new one to rename it.
... |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 everything working great !!!!
edit, add, delete. perfect
just one little problem, is the only one...!
how i can rename the images from where the name have been edited.
-the datagrid have... |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 ok i fix the problems with saving the text file in a wrong format the line
file.WriteLine();
//or file.Write("\n");
was in the wrong foreach.
now I am trying to avoid saving one column, I try... |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 this is the code i got from what you said, everything working great but it doesnt write the text file like it suppose to, like :
row 1 <value>tab<value>tab<value>
row2 <value>tab<value>tab<value>... |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 I want to but if see my last post i try to setup a few dataset datatable bindingsource all that with no avail. and really I dont know what else to do. |
Forum: C# Aug 29th, 2008 |
| Replies: 44 Views: 6,972 well this seems far easier than create all the data source and the data table and the binding with the datagrid just to edit a text file.
I know this is like a guide but what you mean by... |
Forum: C# Aug 28th, 2008 |
| Replies: 44 Views: 6,972 |
Forum: C# Aug 28th, 2008 |
| Replies: 44 Views: 6,972 really I can get this to work am trying first to make a datatable and binding with the datagrid . but I get confuse on what are the steps so someone please correct me
1. you create a data table... |
Forum: C# Aug 27th, 2008 |
| Replies: 44 Views: 6,972 ok I really try to fallow that example with no avail . I dont understand a few lines or what they does because the complete code dont apply to me and the most simple dont work that is fill the... |
Forum: C# Aug 27th, 2008 |
| Replies: 44 Views: 6,972 thanks a lot really. but be easy on me
i am trying to learn C# and am surprise i was able to make an application already this are just things am still adding to it but the application is running... |
Forum: C# Aug 26th, 2008 |
| Replies: 44 Views: 6,972 ok you say that i have to :
1. parse the text file to an Array or ArrayList ?
2. convert that Array or ArrayList to a dataSource
3. use that dataSource to populate the datagrid
4. use the... |
Forum: C# Aug 26th, 2008 |
| Replies: 44 Views: 6,972 (men/girl) am so confuse right now !!
i really dont know or get how to implement that to my code ! |
Forum: C# Aug 26th, 2008 |
| Replies: 44 Views: 6,972 I know I read it but if you see my code I fill the datagrid individually because of the image column if I use the list how I fill the images column because my textfile only contain the name of the... |
Forum: C# Aug 26th, 2008 |
| Replies: 44 Views: 6,972 remember am not using any database or dataset. I know this is automatically if you are connect to a database.
i am reading from a text file and passing that values to the datagrid for easy... |
Forum: C# Aug 25th, 2008 |
| Replies: 44 Views: 6,972 the one i have problem lunch a batch file from the code.
ok the problem is how to get the new edit values from the datagrid i cant use the Arraylist because of the image column in the datagrid... |
Forum: C# Aug 25th, 2008 |
| Replies: 44 Views: 6,972 believe me a read a lot of guides and the worst are from msft msdn website there samples never works.
i have the logic in my head. the problem is converting that to code, in where event to add it.... |
Forum: C# Aug 25th, 2008 |
| Replies: 44 Views: 6,972 StreamReader reader = File.OpenText("mystations.txt");
string line = reader.ReadLine();
while (line != null)
{
//... |
Forum: C# Aug 22nd, 2008 |
| Replies: 11 Views: 3,575 i try both literal with @ and without it.
anyway i change how the batch behave so i end up needing to call the batch file that reside in the same folder and in the batch file i move, copy and... |
Forum: C# Aug 22nd, 2008 |
| Replies: 11 Views: 3,575 still not working i end doing this
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "setstation.cmd";
Process.Start(startInfo);
it... |
Forum: C# Aug 22nd, 2008 |
| Replies: 11 Views: 3,575 Please someone help, this is what i found out so far i was testing with various scenarios and it work simple with this
ProcessStartInfo startInfo = new ProcessStartInfo();
... |
Forum: C# Aug 21st, 2008 |
| Replies: 11 Views: 3,575 !!!!!! system cannot find file specified.
i get that error on the dos screen i dont get it the file is that path. so
let see i put in
StartInfo.FileName="the full path to the batch file
and... |
Forum: C# Aug 21st, 2008 |
| Replies: 11 Views: 3,575 how like
System.Diagnostics.ProcessStartInfo(@"command c c:\setstation.cmd");
or
System.Diagnostics.ProcessStartInfo(@"command c" + "c:\setstation.cmd");
somewhere i view something like \c or... |
Forum: C# Aug 21st, 2008 |
| Replies: 11 Views: 3,575 I have an application that i want to run a batch file from it all i get is the flashing CMD windows but is not running.
at one time I get it to run but dont know what happen start modyfying other... |
Forum: C++ Oct 15th, 2007 |
| Replies: 35 Views: 7,229 thanks a lot guys everything is working fine!! |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 translate(word.begin(), word.end(), word.begin(), tolower); |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 ancient dragon told me something but dont know how to user it ! |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 thanks a lot everything work fine now, i wold like to add the convert to lower case(because if someone type the word in uppercase it wont find anything) but i do not know if that is a lot of code to... |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 // reader.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <ctype.h>
using namespace std; |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 it read the text file once i can search all the words and it display the line in alphabetical order if i search "bear" its ok then i search "airplane" it get to the end of the file and i can search... |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 #include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <ctype.h>
using namespace std;
int main()
{ |
Forum: C++ Oct 13th, 2007 |
| Replies: 35 Views: 7,229 #include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <ctype.h>
using namespace std;
int main()
{ |
Forum: C++ Oct 12th, 2007 |
| Replies: 35 Views: 7,229 please i need to finish this |