|
Thanks!!!
Unfortunately, installation is not an option. This program runs on a stick and has to be darn near instantly accessible to whatever machine the stick is put in.
Thanks again.
Denise "Hypermommy" Duggan
|
|
|
|
|
I don't think you'll be able to use Crystal without installation.
When you install the Crystal runtime it installs hundreds or thousands of files in different directories.
Tosch
|
|
|
|
|
as a newbie to VB.net Forms development and a student, I'd like some advice on
the following.
I want to use the tabcontrol and created tabpage then I want to close tabpage by add button Close to tab title(tabpage.text).
Thank for your reading and Hope you'll can help.
|
|
|
|
|
|
thank but I would like to do that on VB.Net not C#
|
|
|
|
|
So convert the code. There's plenty of online conversion utilities. All you have to do is Google for "vb.net c# code conversion".
|
|
|
|
|
There are plenty of convertors available on net, or you can convert it on your own. Or try your luck with Google.
|
|
|
|
|
You will benefit more if you do the C# to vb conversion yourself (with Googles help on Keywords)
I don't speak Idiot - please talk slowly and clearly
I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury
Driven to the arms of Heineken by the wife
|
|
|
|
|
Thank all that you help I can get it. but I need to add it by other ways Like the tab on Mozilla Firefox tab page can you give me some advice about it? one a gain thank you for all your useful answer.
|
|
|
|
|
Now I asking you to attach file (VB.Net source code) to me please but if you busy you could copy for me at University tomorrow.
|
|
|
|
|
Are you serious with this question?
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I wish you all the luck in the World, especially Hawaii, in getting anything here.
Seriously, WTF is your medication and have you been taking it as prescribed?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
maybe you need rentacoder.com ?
|
|
|
|
|
Good luck from Hawaii.
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi All,
I have a folder in which many images are save. And i want to get the list of files from there short by Created Time.
My Code is this please check it.
backgroundImageDir= "C:\Images\"
For Each file As IO.FileInfo In backgroundImageDir.GetFiles()
stringfilepath = file.FullName.ToString
Next
Thanks
If you can think then I Can.
|
|
|
|
|
Hi,
this is a C# example, you can do the same in VB.NET; there are two key factors:
1. using DirectoryInfo.GetFiles() returns an array of FileInfo which holds name and dates for each file;
2. implementing the IComparer interface to tell Array.Sort how exactly it should perform the sort.
public class CPTest_Sort : IComparer<FileInfo> {
public override void ListDirOrderedByCreationDateTime(string dirname) {
DirectoryInfo di=new DirectoryInfo(dirname);
FileInfo[] fis=di.GetFiles();
Array.Sort(fis, this);
foreach(FileInfo fi in fis) {
log(fi.Name.PadRight(30)+fi.CreationTime);
}
}
public int Compare(FileInfo fi1, FileInfo fi2) {
DateTime dt1=fi1.CreationTime;
DateTime dt2=fi2.CreationTime;
if (dt1<<dt2) return -1;
if (dt1>dt2) return 1;
return string.Compare(fi1.Name, fi2.Name);
}
}
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Thanks For Halpting
If you can think then I Can.
|
|
|
|
|
Chaps and Chapettes,
I am getting the following error in my wee data application: -
Cannot set column 'vcGraphicCode_GRA'. The value violates the MaxLength limit of this column.
The code does a pretty standard create a new row via a oRow = table.newrow() statement, then populates oRow.<list of="" columns=""> with a set of values (no nulls here btw). Then does a table.AddRow(oRow)...this is when I get the error.
The particular column in the error is a string of 5 characters (a SQL 2005 varchar(5) column). The value I place in there is for example "00152". The table I am inserting the row into is always empty (since the table is on a form for setting up new SKU items). The table is also pre-defined in an XSD file within my project.
Yes, the error informative is pretty straight forward. However, the maximum size of the field is 5 characters and the value I am attempting to place into it is exactly 5 characters in length.
I'm beginning to think that sticking with VFP, where this operation would be a straight INSERT on a remote view, would be easier!
Monkey
|
|
|
|
|
So there would be some length problem?
you did not try making the field a VARCHAR(6) or the data somewhat shorter, say "0152", did you?
you did not think about a terminating NULL character that also needs to be stored, just like C does?
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Hi Luc
No, the string being returned is EXACTLY 5 chars in length. The column on SQL 2005 is a varchar(5). However things are not getting that far...
What is happening is that my 5 char string is being rejected, not by the row, but by the table in my dataset - which is in an XSD file based on my SQL 2005 schema. It seems strange since I am creating the row from the table (table.NewRow) AND I can put the data into the new row and look at it via debugger.
My problem occurs when I do a table.AddRow(Row) - THEN it complains that the data is too big.
If the string was too long, say 6 chars or more, then I would just expect truncation to occur...not an error.
Monkey
|
|
|
|
|
did you try with a string of length 4 or didn't you?
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
I have just tried...and yes, it still complains!!
|
|
|
|
|
Then I don't know.
I do know MySQL accepts ans correctly stores strings with n chars when VARCHAR(n) was specified, however it does issue a warning when you do this. I suspected your DataTable operation did not like the warning.
Something else must be wrong then.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Luc
Without a shadow of a doubt yes!
The thing that is puzzling me is that the schema is garnered from the SQL 2005 schema.
The row behaves.
It's adding the row to the table in my dataset that causes the error...I've not even fired it back to the SQL 2005 database yet!!
I'll give up and do it in good old (and I MEAN old!) VFP!!
Cheers,
Monkey
|
|
|
|
|
i save my project form name in a table in database
i want read formname from database and save formname in a string variable
then use this command for this form
example: form1.enable=false
but i have a problem
because formname is a string and no have enable property
thank you
|
|
|
|