|
How abourt posting the code your using. How does source get assigned? How does does dest get assigned? You could keep asking this question, but if don't understand the basics, you'lre never going to understand the answers either.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know how to assign the source and destanation address of the file
for ex
file test.txt located in c:\ I want to copy it in e:\
dim pth as string="c:\test.txt"
dim pth2 as string="e:\"
file.copy(pth.pth2)
it dosent work
AMR-CIS
|
|
|
|
|
Don't delete your previous messages please. It makes it hard to track the conversation and takes away information from people joining in later.
Well, without knowing the exception that's being thrown (if any, hint hint!), the 5 most common problems are:
1 - The source file spec doesn't exist.
2 - The source file is locked by another process and can't be opened for read.
3 - The destination spec doesn't exist.
4 - The destination file path already exists and your trying to overwrite a file without telling the Copy method to do so.
5 - You don't have the appropriate permissions to write to the destination folder.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does VB have the @ for strings to show that there's no escaping going on ? Or does it work totally differently in VB ? I'm just wondering if his strings are actually containing what he thinks.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No. All strings in VB are considered literal. There's nothing to escape.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
dim pth as string="c:\test.txt"
dim pth2 as string="e:\test.txt"
system.IO.File.Copy(pth,pth2)
|
|
|
|
|
Thanks its was small problem
AMR-CIS
|
|
|
|
|
hi
i've datagrid filled with some data,i used dataset to fill datagrid
Now i want to add some data to this existing(already populated) datagrid using datareader.
How can i do this?
if it's not possible to add using data reader can i do using arrays
|
|
|
|
|
can a datagrid populate with using datareader?
If u created table , add new row to the table then Refresh datagrid.
|
|
|
|
|
as per my knowledge we can't populate datagrid using datareader.any way can u tell me
how to bind two dimensional array to the datagrid
|
|
|
|
|
|
i got this ,thanq for response
|
|
|
|
|
thanq for ur response
i got this
|
|
|
|
|
when I read a bitmap data stored in a data base this differs from the original bitmap stored.
How can I solve my prblem??
|
|
|
|
|
The problem can be in either/both of two places. The code that wrote the image to the database or the code that read it, or both.
Without seeing any of it, it's impossible to tell you how to fix it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know this is not true but i need immediate answer
I have Vs.net beta 2 copy, it s not original, I know, if the dvd is original, product key will automaticaly comes while setup progressing.
I have to install vs.net 2005 today immediately. please someone gives me his /her beta 2 product key . if not i wont complete my homework till monday. I think it s legal to share vs.2005 product key, BECAUSE it s Beta Please HELPPP
|
|
|
|
|
Greeky wrote: if not i wont complete my homework till monday
Gee - you have until Monday to do your assignment, and you're trying to pirate the IDE now ? Sounds like you deserve to fail.
Also, Microsoft products rarely have just one key, even if someone gave you one, it may well not work. If you're sure what you want to do is legal, call Microsoft, and ask them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a listbox which contains days in a month and different currency rates, now the problem is displaying the different dates against currency fluctuations in a graph. Can someone help me with some sample code.(I'm using vb.net version 2002).
-- modified at 3:50 Saturday 22nd October, 2005
|
|
|
|
|
which graph method do u use? Is it multi column list box?
|
|
|
|
|
Yes its a multi-column listbox.
|
|
|
|
|
|
graph method?
Or email a sample, with graph method, i will fix
|
|
|
|
|
Is there a way to highlight specific items within a combobox?
I tried this code:
cboItems.controls.item(2).background = color.yellow
The 2 would represent an individual item, in this case I knew there was an item at index# 2. Studio said that this was a null reference and I assume that the index "2" might be referring to something besides the collection of items in the combo box.
Anybody know if you can control the background colors of individual items within combobox?
|
|
|
|
|
you cannot access combobox\listbox items collection via using control collection. They r different things.
If u need colored items, Set DRAWMODE to OwnerDraw Fixed or Variable.
Look Here[^]
|
|
|
|
|
I am trying to add a TableLayoutPanel (programatically). Here's what I have so far:
Private Sub drawTableLayoutPanel()
Dim iColumns As Integer = uxColumnsTbar.Maximum ' Horizontal Trackbar
Dim iRows As Integer = uxRowsTbar.Maximum ' Vertical Trackbar
'
Dim oTLP As New TableLayoutPanel
oTLP.Location = New Point(0, 0)
oTLP.Size = New Size(500, 200)
oTLP.AutoScroll = True
oTLP.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink
oTLP.GrowStyle = TableLayoutPanelGrowStyle.AddRows
oTLP.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset
'
oTLP.ColumnCount = iColumns
For c As Integer = 0 To (iColumns - 1)
oTLP.ColumnStyles(c).SizeType = SizeType.Absolute ' Errors HERE with c=0
oTLP.ColumnStyles(c).Width = (1 / iColumns)
Next
'
oTLP.RowCount = iRows
For r As Integer = 0 To (iRows - 1)
oTLP.RowStyles(r).SizeType = SizeType.Absolute
oTLP.RowStyles(r).Height = (1 / iRows)
Next
'
oTLP.Update()
End Sub
The error I get is:
System.ArgumentOutOfRangeException was unhandled
Message="Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
Which collection are they referring to? iColumns=6 and iRows=4 - this has been verified.
Thanks,
Karen
Nooobie to OOP and VB.Net 2005
|
|
|
|