|
Hi,
of course someone here can help you, but unless you ask a specific question nobody really knows where to start. For the beginning why don't you just read a book about vb.net?
|
|
|
|
|
|
I second the other persons advice, for you to ask such a broad question, indicates you need to read a book.
However, intellisense is also a great teacher, create a string, like
dim s as string = "I am still learning"
then type s. and all the methods of the string class will come up. You can also refer to the MSDN site ( msdn.microsoft.com ) for online documentation.
If you're concatenating lots of strings, use a stringbuilder, and if you need to do complex searching in strings, use regular expressions.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am usind VB.NET 2003 i want to get the data from dataset to excel sheet.How to do it.Please help me out.urgent
Mohinder Singh
|
|
|
|
|
|
can anyone explain clearly whether VB.net is platform independent or not? so many people saying their own style. still i am confused. TIA
|
|
|
|
|
I think java is platform independent .It can run on both windows as well as linux platform.unlike .net platform which runs only on windows.
|
|
|
|
|
Not true. .NET runs under Linux, using Mono. The difference is that there's a lot more Java VMs than there are .NET implimentations.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank You Sir
What are mono?
and one more thing
so is it right to say that .net is platform independent?
|
|
|
|
|
Nilish wrote: What are mono?
One of those things that google knows all about.
Nilish wrote: so is it right to say that .net is platform independent?
Sort of. Like the OP said, it's hard to get a straight answer, because the answer is, anyone can write a .NET engine for any platform, but right now, the Mono people are doing it for Linux, and that's about it. I don't know how complete Mono is, but I think it's close to a complete .NET 1.1 implimentation.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
From what I can see from a look on their roadmap, everything (?) is up to 1.1, and most of 2.0 is implemented in most of the parts.
Anyhow, unless you have some very specific needs, it should be fully usable.
---
single minded; short sighted; long gone;
|
|
|
|
|
Please don't crosspost.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I would say at this point .NET is not platform independant, but has the protential of being so.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
The .NET Framework is Microsoft's implementation of the Common Language Infrastructure specifications. Mono is a Linux implementation of the CLI, that also models itself after the .NET Framework.
Other than that, I don't know of any other implementations. Though anyone is free to implement their version of the CLI on any platform they choose.
|
|
|
|
|
can in add textboxes only in the first cell of datagridview?
I have four rows in the datagriddview.
|
|
|
|
|
You should add textboxes as you adding images in the datagridview
|
|
|
|
|
The textboxes do not appear as blinking cursors in the textboxes at runtime ?
Thet behave like labels . even readonlky property is false.
How can i make the the cursor to blink in the textboxes at runtime?
|
|
|
|
|
Of course you can do this.. just put a textbox into the grid during design time, and hide it during the form_load. write the code to make it visible, during runtime, when you click on the first column of the datagrid..
you must add the code to adjust the size of the textbox inorder to make it look like a cell in the datagrid..
The name is Sandeep
|
|
|
|
|
I am using the following code
Private Sub dg1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dg1.CellClick<br />
If (e.ColumnIndex = 2) Then<br />
TextBox1.Visible = True<br />
TextBox1.Left = 42<br />
TextBox1.Top = 19 * (Me.dg1.CurrentCell.RowIndex + 1)<br />
<br />
TextBox1.Height = dg1.CurrentRow.Cells(0).Size.Height<br />
TextBox1.Width = dg1.CurrentRow.Cells(0).Size.Width<br />
End If<br />
End Sub
as the row index increases , the coordinates flaws increases.
|
|
|
|
|
i was trying to add an image in the datagridview
i am using the following code
Dim column As DataGridViewColumn = New DataGridViewImageColumn<br />
column.HeaderText = "Image"<br />
dg1.Columns.Add(column)<br />
For count As Integer = 0 To dg1.RowCount - 1<br />
dg1.Rows(count).Cells(2).Value = Application.StartupPath & "\untitled.jpg"<br />
Next
I am doing right ??????????????????
|
|
|
|
|
Is this in ASP.NET ? No, that's obviously not right ( or you wouldn't be asking... ). You'd need to put an img tag with this path into the row, otherwise you're just showing the path to the image.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Christian Sir,
I am using Window Application.I wanted to add the image in the third column of every row.I mentioned the code.Was not that right? Can u provide some rectification to show the image in the datagridview.
|
|
|
|
|
OK, then you're really lost. It seems like every day you're working on something else, does this stuff all actually coexist in a project somewhere ?
The cell needs to contain a control which shows an image, such as a picturebox. There are articles on CP from people who would know more about this than me, but my first port of call would be to add a picture box to the cells controls collection, and put my image in that.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
In an application I'm working on I've written my own custom error log class which logs errors with the required information. What I'm wanting to do is limit the file to a certain size (yet to be determined), once it reaches that set size I want to start a new file (eg ErrorLog1.txt, ErrorLog2.txt, etc). I've done some research into this and just havent found much to help. Anyone got any ideas?
" In the next millennium there are two kinds of business, those on the Internet and those out of business"
Bill Gates
"Be nice to nerds. Chances are you'll end up working for one."
Bill Gates
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
Hi,
It sounds like a reasonably easy process, and I am guessing that you were merely trying to put elegance before effectiveness when you researched the idea.
As you are talking about an error log, we may assume that you will not be writing data to the log in a continuous stream, but only then when an error occurs. (If errors occur continuously, you might want to think about changing your app so it doesn't create so many errors)
So write your code along these steps:
1. an error occurs
2. check whether the file ErrorLog1.txt exists
3. If it exists, check its size. (size can be hard coded, or you can allow the user to set the size.)
- if the size has reached the determined point, create a new file:
- check the number at the end of the existing file
- that number += 1
- concatenate the name and the new number to form the new ErrorLog file (ErrorLog2.txt)
- write the error to the new file.
4. If the size has not reached the determined point yet, write the error to the file
5. go to step 1
You can build in a margin if you want the files to specifically remain under the determined size.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|