|
Copying files using the FileSystemObject will not maintain the permission on the file. BTW: Permissions on the file level is not a good practice!
What happened is the new copies of the file inherited the permission of the folder you copied the files to and the ownership of the file is set to the person that ran the script that copied the files.
RageInTheMachine9532
|
|
|
|
|
This is driving me mad
How do I get a VB .Net Datagrid to automatically scroll past the visible rows when I click and drag on the row headers to select multiple rows?????????
As can be done when using MS Excel for example
Ray
|
|
|
|
|
Hello, guys....
I just want to ask how can I make the columns of my datagrid adjust to the length of the strings that will be displayed from the tables of my database that I queried from?
len_ems
|
|
|
|
|
I was wondering where i could find a updated files for the API Viewer. Also is there a api viewer for .NET or do you just need to use the one for 6.0.
|
|
|
|
|
check http://www.mentalis.org/
it has API viewers
|
|
|
|
|
|
Can anyone recommend a third party pdf processing component that I can run on a server. It needs to convert word and excel files (and possibly other formats) to pdf.
Jim
|
|
|
|
|
I haven't seen any FREE ones. Most of the components that I've come acrossed cost upwards of $1500. There are online coversion tools that can do the same job, but again, they are not free for production use.
RageInTheMachine9532
|
|
|
|
|
Thanks for the reply. I realize they're not free. I'm after feedback from people who have used these products and can give some feedback on how good the products are. Since posting my original query I have come across www.pdftools.com which is a usefull site for all pdf tools.
Jim
|
|
|
|
|
Dear community
I am working at a my project in Visual Basic 6 (Service Pack 5) and I notice this seroius problem.
When I create my executable on a PIII or Athlon Processor the speed of the program is almost two faster than when I create my executable on P4.
I think that the compiler isn't optimized for P4, but it's a strange fact.
( The P4 Work at 2.4 Ghz, P3 work at 1.0 Ghz and Athlon XP work at 1.6 Ghz (It is a AthlonXP2000)
Somebody can help me for increasing the speed on P4?
|
|
|
|
|
Unfortunately, the compiler doesn't have any optimizations for a P4, or a P3 for that matter. There's got to be something else installed on the machine that is causing this. I've run VB6 SP5 on my machines, P3, P4 and Athlon 2600+, with no difference between the executables or their speed.
Are the .EXE files generated EXACTLY the same, byte for byte?
RageInTheMachine9532
|
|
|
|
|
I have done two tests:
First I have made the executable on P3 and I tested it on P4. The difference on speed is about two times.
Second: I have made the executable on P4 directly, but it is the same.
The source code is the same, in each tests.
I have used Windows2000, and WindowsXp : there are no difference.
E.G.
|
|
|
|
|
Let me get this straight:
You compile the program on a P3. Run it on the P3 and P4 and the performance is about twice as fast on the P4.
You compile the program on a P4. Run it on the P3 and P4 and the performance is EQUAL on both machines!? and its slower than when the program was compiled on the P3?
RageInTheMachine9532
|
|
|
|
|
Probably I made some mess in my word..
I tested the speed in two way:
First: I compile the program on a P3(1 Ghz) and I copy it on a P4 (2.4 Ghz) also.
In this way the executable is the same (Byte per Byte), but I see that the speed on P3 is faster (!!!) than the P4.
Second: I compile the program on P3 and run it.
I compile the program on P4 and run it.
I see that the P3 is faster than P4.
The P3 is faster than P4. Why? (Very strange)
I didn't install any special program and I have made some tests on different P4.
E.G.
|
|
|
|
|
Hi everyone
I would like to know how to embed a image used in a PictureBox or an icon used in a Menu, someone sugessted using an imageList but then do you have to reference it to you form or the control that you are using, if so what is the best possible way to do this??? I have created a setup program but after it is installed it comes up with an exception, could that be due to me not referencing my pictures, can anybody give a reason for the problem and a solution.
Sorry about the clarity of the other messages but it is hard to explain the problems and what i want to achieve.
The error reads
"An exception 'system.IO.FileNotFoundException' has occured in PgoramMenu.exe."
Thanks
Vu
|
|
|
|
|
You can ambed pictures the following way ::
(this is how I do it)
Include de picture or image in your project, and select is in your 'Solution Explorer'
The in the properties window, change to 'Embedded Resource'
Now you can access the image from within your app...
Dim bmpMyImage As New Bitmap (Me.GetType, "Namespace.To.Image.jpg")
(Don't know if the above line is exactly correct, but something like that should help you on your way.)
|
|
|
|
|
You can ambed pictures the following way ::
(this is how I do it)
Include de picture or image in your project, and select is in your 'Solution Explorer'
The in the properties window, change to 'Embedded Resource'
Now you can access the image from within your app...
Dim bmpMyImage As New Bitmap (Me.GetType, "Namespace.To.Image.jpg")
(Don't know if the above line is exactly correct, but something like that should help you on your way.)
|
|
|
|
|
Hi,
I'm working on vb. net and sql server... I have a table called "rproduct" which has 2 fields declared as 'datetime' namely for "date received" and "time received".
I'm using datagrid in vb .net to view the table data and also to modify and update etc.
The problem was that I wasnt able to view only time and only date in the respective fields, instead I used to get 'date and time' in both the fields. So what I did is something like this
select substring(cast(dater as varchar),0,13),
substring(cast(timeR as varchar),14, 20) from rproduct
and I set respective column in dataset's .xsd file as 'string' so that I can c the only date in "date received" field and just time in "time received" field.
But now the problem is I dont know how can I save the changes made in these fields back to database???
shatru2k
|
|
|
|
|
Hi guys I'm making a simple program in VB and thi is like one of my first attempts at using VB6 with SQL Server 2000. I've made a simple database in Sql server and a simple front end in VB6. I'm following a tutorial and the problem is that I get this error everytime I try to run my code.
Run time error '-2147467259' (80004005)
Login failed for user [Windows Login]. Reason Not associated with a trusted SQL Server COnnection
The code is the first simple just creating a simple connection object code..
Private Sub Command1_Click()
Dim dbConnection As New ADODB.Connection
dbConnection.ConnectionString = "Provider=SQLOLEDB.1;Data Source=(local);Initial Catalog=FC_AIRLINES"
dbConnection.Open UserID,Pww 'UserID and Pww are my USerID and Pww
If dbConnection.State = adStateOpen Then
MsgBox ("CONNECTION OPEN SUCCESSFUL")
Else
MsgBox ("CONNECTION FAILED")
End If
dbConnection.Close
End Sub
I think theres some work tobe done at my SQL server databse end, but I have no idea what to do and how to do it .
Its driving me nutz , I could use any help on what could be wrong guys
|
|
|
|
|
There are two ways to authenticate to a SQL Database: 1) Windows NT/2000 Integrated Authentication and 2) SQL Server Authentication. In the first scenario, your NT/2000 account has to be added to the Security Users/Logins and granted permissions to the database at a level at which you can read from the database. In the second scenario, you create a SQL Server account and grant that account permission to the database.
In the first scenario, if you are logged in as yourself, you do not have to enter any user name and password, but the connection string should reflect that you are using integrated security.
In the second scenario, you can include the user name and password in the connection string.
Check MSDN for more details.
|
|
|
|
|
methinks your connectionstring is wrong. try
dbConnection.ConnectionString = "UID=UserID;PWD=Pww;Provider=MSDATASHAPE;Data Source=SQLOLEDB;Initial Catalog=FC_AIRLINES;Server=yourserver"
dbConnection.Open
The server is the PC hosting the database. If running on local PC then put PC local name or leave it out.
1fm1fu
|
|
|
|
|
methinks your connectionstring is wrong. try
dbConnection.ConnectionString = "UID=UserID;PWD=Pww;Provider=MSDATASHAPE;Data Source=SQLOLEDB;Initial Catalog=FC_AIRLINES;Server=yourserver"
dbConnection.Open
The server is the PC hosting the database. If running on local PC then put PC local name or leave it out.
1fm1fu
|
|
|
|
|
i meant u try
dbConnection.ConnectionString = "UID=UserID; PWD=Pww; Provider=MSDATASHAPE;Data Source=SQLOLEDB;Initial Catalog=FC_AIRLINES;Server=yourserver"
dbConnection.Open
n don smile when doin it!
1fm1fu
|
|
|
|
|
Can anybody suggest as how to edit a subitem in VB.net listview control
|
|
|
|
|
By "edit" do you mean allow the user to interactively change the value of a subitem in column 2,3,...,N?
Or, do you mean simply set the value of the subitem, as in
ListView1.Items(0).SubItems.Item(1).Text = "X"
Unfortunately, according to the .NET Framework documentation, "Unlike ListViewItem objects, ListViewItem.ListViewSubItem objects cannot be edited directly by the user"
|
|
|
|