|
Thanks a lot again, Johan. Will keep these things in mind and will update you on how I finally manage this (if at all!)
Shreekar
|
|
|
|
|
You're welcome, and I would like to hear how you did.
My advice is free, and you may get what you paid for.
|
|
|
|
|
The process can't access this file, it is being used by another process.
I am creating a new text file. It is creating successfully, but at the time of writing data to it. It failed..
Dim objTW as StreamWriter = File.AppendText("filename")
Can you please tell me why this exception occurred..
vivek
|
|
|
|
|
Are you flushing and closing the Streamwriter like this:
objTW.Flush
objTW.Close
Shreekar
|
|
|
|
|
You've been asking this over and over ( well, asking is putting it politely ). Does google not work where you live ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I want to store the MSAccessDatabase from ListBox's contains
Actually fileName is displaying in ListBox1 contains that is
FileName is Displayed in ListBox1 :Sundar-.Net-Bangalore-3yrs-sundar@yahoo.com
and parsed the fileName in Listbox2 contains:
sundar
.Net
Bangalore
3yrs
sundar@yahoo.com
i've parsed the fileName.and also displayed in the Listbox2.but i want to store in MS AccessDataBase.so how to store the Seperate field in DataBase MS Access.. Using VB.Net...
Pls Very Urgent Pls someone Help me..
Thanking You,
somasundaram
|
|
|
|
|
Hi Somasundaram,
We have several VB6 and VB.NET applications that use MSAccess. We found that the easiest way is not to try and write data straight to the MSAccess database (= tricky), but rather to an actual database (= easy with VB.NET), and then linking to the table(s) from MSAccess (= easy). If you have no Database program other than MSAccess, there is always Microsoft's free SQL Server 2000 Desktop Engine (MSDE).
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi,
I have this strange problem, Im using VB Express 2005 and im programming on my desktop computer, however when i shift the file onto my laptop the file comes up as "read only", meaning i cannot edit it in anyway.
Now if i right click the file and uncheck the read only box, followed my clicking apply, and ok.
I then go to work but still cannot edit the program and when i go to right click the folder again the read only box is checked.
Hope someone can help me with this very jarring problem.
Thanks in advance.
Jaidev
|
|
|
|
|
I've had similar problems before. You could try Unlocker.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Hi,
Unlocker doesnt work. any other ways?
Cheers
Jaidev
|
|
|
|
|
It didn't work for me either, I was hoping it would work for you. I still haven't fixed some of my files. I have some files that I can't copy from one hard drive to another after reinstalling Windows. They got corrupted and they're locked too, there's something holding control of them but I can't find it.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
How are you transferring your files between the desktop and laptop? If you are burning them to a CD or DVD then they will become readonly by the nature of the medium by which the data is transferred. In otherwords, there isn't anything you can do about it. Each time you copy you just have to remember to clear the readonly check box on the files each time you copy them. You can do this on the parent folder and have it apply recursively to all files in the folder.
|
|
|
|
|
Im transferring my files via my usb memory stick. I turned the read only check box off before transferring the file again but no luck.
Any other possibilities? (also tried the unlock software, but no luck again).
Cheers
Jaidev
|
|
|
|
|
i have a graduation project and i need the graph imlementation(nodes , edges)??
|
|
|
|
|
Please don't ask over and over. There are commercial libraries that draw graphs. If a graph is integral to your graduation project, then I'd expect you should be writing your own code to draw graphs.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi
I'm using vb.net 2005 , and when change the DataSource Property of DataGridView , I found that all the Columens properties like HeaderText and Width are changed to default values ,
How can I prevent that ..
Thanks for all
jooooo
|
|
|
|
|
I mean changing DataSource Property on Run Time
jooooo
|
|
|
|
|
This is probably the long way around but you can load a column style before you name the data source. I cannot see why you are losing the data but this will over-write anything else. See code below I copied direct from one of my old projects- where workTable is the table in my dataSet and I just iterate through the workTable column names to add then to the datagrid
Private Sub LoadCvCalcTableFormat()
' Create a new DataGridTableStyle and set MappingName.
Dim tableFormat As DataGridTableStyle = New DataGridTableStyle
tableFormat.ColumnHeadersVisible = True
tableFormat.PreferredColumnWidth = 75
tableFormat.PreferredRowHeight = 30
tableFormat.RowHeadersVisible = True
tableFormat.MappingName = workTable.TableName
' Iterate through table columns and format each one.
Dim i As Integer
For i = 1 To workTable.Columns.Count - 1
Dim colStyle1 As DataGridColumnStyle = New DataGridTextBoxColumn
colStyle1.Alignment = HorizontalAlignment.Center
colStyle1.Width = 75
colStyle1.HeaderText = workTable.Columns(i).ColumnName
colStyle1.MappingName = workTable.Columns(i).ColumnName
tableFormat.GridColumnStyles.Add(colStyle1)
Next
' Add the grid style to the GridStylesCollection.
DataGrid1.TableStyles.Add(tableFormat)
End Sub
|
|
|
|
|
So sorry my friend and thanks for your reply
I didn't link the site from large period
The code above is worked with DataGrid , but i Use DataGridView
and I want any page that give full demonstration of DataGridView
jooooo
|
|
|
|
|
Is there any one know how to implement agraph in VB.NET???
PLZ i need it as soon as possible...
|
|
|
|
|
maisa.sh wrote: Is there any one know how to implement agraph in VB.NET???
Yes.
But it depends on how you want to use the graph. However, all solutions eventually come down to drawing on some kind of surface and for that you will need to learn about the Brush , Pen and Graphics classes (see MSDN)
|
|
|
|
|
i wrote a querry sentence but there is a problem:
Syntax error (missing operator) in query expression 'like '%ç%''.
the sentence is :Dim querry As New OleDbCommand("select * from vtab where " & deger & " like '%" & Me.TextBox1.Text & "%'", baglanti)
|
|
|
|
|
nbulut wrote: OleDbCommand("select * from vtab where " & deger & " like '%" & Me.TextBox1.Text & "%'", baglanti)
Don't inject values in to a SQL statement. Use parameterised queries. Also, sanitise your input. You are injecting the value of the text box directly into the SQL. This blasts a huge security hole right through your application.
Read this article[^] and it will help you solve your current problem and plug the security holes in your code at the same time. Two for the price of one!
|
|
|
|
|
not sql the database is access is the article helpful for access
|
|
|
|
|
nbulut wrote: not sql the database is access is the article helpful for access
Do you mean you are not using "SQL Server". "SQL" is the language used to communicate with relational databases, which they all pretty much understand.
From the first paragraph of the article: "Although the technologies used here are SQL Server 2000 and the .NET Framework, the general ideas presented apply to any modern data driven application framework, which makes attacks potentially possible on any type of application that depends on that framework."
So, yes, it is still relevant to Access even although the examples may need to be tweaked slightly.
The main difference is that parameters in access are denoted by ? placeholders, rather than the specifically named parameters in SQL Server. This means that you must add the parameters to your query in the order in which the query encounters the ? placeholder.
|
|
|
|