|
Hi Shreekar,
I definitely recommend the database approach over all others, if future development/extension/maintenance of your app is a consideration, you could even use an xml-file for this purpose, if the app does not use a database to begin with, or if you can't afford it to use too much of the client PC's resources. If it isn't, and you don't have too many languages to worry about, than you should probably stick with your original idea (I wrote one app myself that uses a similar approach, because it only has two languages, and not all forms needed to be translated).
I am sorry to say that I have limited experience only with adapting the installation process, but I do know that pretty much anything is possible with the VB.NET installation project, and I am sure there are some walkthroughs available, or someone else may well have built something similar already. On the other hand, you could save yourself a little trouble, by installing/starting the app in a default language (say yours), and offering the user a choice on startup, which will then be saved somewhere
For buttons, again I recommend symbols/pictures over text, and the use of tool tips (stretch automatically). Label / field width is something I have struggled with myself, and there are four approaches that I know of:
1. Make sure the label is a little bigger than the longest possible string that will be fed to it. You could make some function that will determine the size of a label based on the string length, but you would still need to keep the space on the form open for the label to grow (= same difference). The good news is, that labels can be set to wrap text, so you can size them vertically if you have to.
2. Dialog boxes/temporary forms. With a function to determine the size, you don't have to worry about a label not fitting the form.
3. Use symbols on the labels, and feed the text to a tool tip per label.
4. Use text (Multiline: true) or list boxes, instead of labels and format them to look like labels (BackColor: Control, BorderStyle: None). These can use scrollbars.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
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
|
|
|
|