|
The IDE should give you the option when you open it. I think there's a vss file in your project directory you can delete, as well.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi there
I am using VB .NET (2005) and I created a project that exports some data to Excel.
I would like to assure that my project will be functioning for all the versions of Office (excel) of the end user.
For example I use Office 2003. If I install my application to PC that uses an older version of Office, lets say Office 2000, will it work correct?
If no, do you have any solution for that? Are there any libraries that will resolve the problem?
Thank you in advance
-- modified at 11:20 Monday 29th January, 2007
|
|
|
|
|
System.Net.IPAddress.Parse("") is giving FormatException in window server 2003, but not in window XP.
Do anyone know what is the reason for this?
Thank you!
|
|
|
|
|
Hi,
anyone please tell me how to set datetimepicker as column of datagridview?
its urgent please.
priya
|
|
|
|
|
Good Morning Freinds,
i have 2 combobox columns in my datagridview in my vb.net(Winforms) Application.
& i want to set the current index of one combo box to the current index of second combobox ,when i select the item fromm second combobox.
in usual comboboxes i write code -->
combo1.SelectedIndex = cmbo2.SelectedIndex
but if combobox is as a cell of my datagridview wht shuld i write to access current index.
priya
|
|
|
|
|
Hi guys,
How to lock the text portion of the ComboBox, but at the same time allows the items from the drop down list to be selected? Meaning that it only allows the selection of items but does not allow the text to be edited manually by users.
I already set the Locked Property to TRUE but it didn't work. It locked both the text editing as well as the selection item from the list..HELP!!!
Nway, im using VB6. Really appreciate your help.. Thanx in advance.
|
|
|
|
|
I'm not sure what you mean ? If you don't allow typing, the user can just select items from the list. If you allow typing, they can type anything they want. What behaviour do you want to allow ? If you want to let them type in only stuff from the list, you need to write a custom control ( shouldn't be hard )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanx Christian,
But actually the behavior that i want is that the program does not allow the user to edit the ComboBox text, instead the user can only select the item from the ComboBox list. Thanx for ur help and i apologize for any inconvenient.
|
|
|
|
|
OK, that's easy, set the behaviour from DropDown to DropDownList.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I tried using the DropDownList already and it works.. thanx a lot..
Btw, i used this in the main form. After selecting the item in the ComboBox list, a new form will appear. Then after closing the new form, it will return back to the main form. So when the program return to the main form, is it possible to empty the text in the ComboBox when using the DropDownList behavior?
|
|
|
|
|
You can set the selecteditem, not sure if you can select selectedText or Text. SelectedIndex = -1 may work.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Can somebody help me with this code. I need a VB.net equivanlent.
string fn = @"c:\temp\data.txt";<br />
using (System.IO.StreamReader sr = new System.IO.StreamReader(fn))<br />
{<br />
for (int row = this.c1FlexGrid1.Rows.Fixed; sr.EndOfStream == false; <br />
row++)<br />
{<br />
string line = sr.ReadLine();<br />
<br />
if (row >= this.c1FlexGrid1.Rows.Count)<br />
this.c1FlexGrid1.Rows.Count++;<br />
<br />
int col = this.c1FlexGrid1.Cols.Fixed;<br />
string[] cells = line.Split(' ');<br />
for (int c = 0; c < cells.Length; c++)<br />
{<br />
if (col >= this.c1FlexGrid1.Cols.Count)<br />
this.c1FlexGrid1.Cols.Count++;<br />
this.c1FlexGrid1[row, col] = cells[c];<br />
col++;<br />
}}<br />
} <br />
I need the loops mainly
Thanks
-- modified at 21:10 Sunday 28th January, 2007
|
|
|
|
|
Which bit are you stuck on ? I don't think VB.NET supports 'using', that just means you create the object, and call Dispose at the end of your code block.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I mainly need the loops
-- modified at 21:24 Sunday 28th January, 2007
|
|
|
|
|
Let me see how I go...
Dim row as int =
this.c1FlexGrid1.Rows.Fixed;<br />
<br />
while (sr.EndOfStream = false)<br />
<br />
dim line as string = sr.ReadLine()<br />
<br />
<br />
if (row >= c1FlexGrid1.Rows.Count) then<br />
c1FlexGrid1.Rows.Count++<br />
<br />
dim col as int = c1FlexGrid1.Cols.Fixed<br />
<br />
dim cells as string() = line.Split(' ')<br />
<br />
dim c as int<br />
<br />
for c = 0 to cells.Length<br />
<br />
if col >= c1FlexGrid1.Cols.Count then<br />
c1FlexGrid1.Cols.Count++<br />
<br />
c1FlexGrid1(row, col) = cells(c);<br />
col++;<br />
end for
<br />
row = row + 1<br />
<br />
end while<br />
<br />
A bit of a guess, but I'd say this is more suited to the while loop anyhow.<br />
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanks Chris I'll give it a try.
|
|
|
|
|
Ooops - I left a 'this'. this is me in VB.NET. As in me.Invalidate() - isn't it just the cutest thing ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
VB does have a 'using' equivalent. The equivalent VB is the following produced with Instant VB - note that the inner loop could have been converted to a VB 'For' loop instead as Christian's post indicated:
Dim fn As String = "c:\temp\data.txt"
Using sr As System.IO.StreamReader = New System.IO.StreamReader(fn)
Dim row As Integer = Me.c1FlexGrid1.Rows.Fixed
Do While sr.EndOfStream = False
Dim line As String = sr.ReadLine()
If row >= Me.c1FlexGrid1.Rows.Count Then
Me.c1FlexGrid1.Rows.Count += 1
End If
Dim col As Integer = Me.c1FlexGrid1.Cols.Fixed
Dim cells As String() = line.Split(" "c)
Dim c As Integer = 0
Do While c < cells.Length
If col >= Me.c1FlexGrid1.Cols.Count Then
Me.c1FlexGrid1.Cols.Count += 1
End If
Me.c1FlexGrid1(row, col) = cells(c)
col += 1
c += 1
Loop
row += 1
Loop
End Using
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: C# to Python converter, VB to Python converter
|
|
|
|
|
I've been saving my datatables with .writexml
However, sometimes I create a dataview from the datatable and then allow the user to filter the dataview.
But now I want to save the filtered data back to .xml
How can I get the dataview back into the datatable? Do I have to go row by row?
Thanks in advance, as always
|
|
|
|
|
Hello guys
i have a client wich connects to multiple servers in the background of an application
I just want to show the user to wich server the client is connected each time
means : how can i do a real time modification to the form ?
Ex : client connected to server 1
Dispaly in form1 . You are connected to Server 1
EX : client connected to server 2
Dispaly in form1 . You are connected to Server 2
Regards
Ramy
|
|
|
|
|
Use a thread class that allows sending information to the main thread, and use that to display your status.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
thx for answering
Any help,or any Link for that?
Note .I am a bit new in vb.net, and totally new in threading
Regards
Ramy
|
|
|
|
|
It there some sort of test to see if you are in design time for VB.Net? I am having a problem where I need a bit of code to be executed at run time...but it is going to be invalid in my control at design time
Using theAdaptor As New DSEmployeeNamesTableAdapters.GetAllEmployeeNamesTableAdapter
DsEmployeeNames1.Merge(theAdaptor.GetData(Common.CurCompany.ID))
End Using
At design time 'Common.CurCompany.ID' has not yet been set, but at runtime it will be valid...any suggestions? Maybe a preprocessor symbol I could use to pass to
<Diagnostics.Conditional("")>?
Thanks ahead of time for any help
-- modified at 15:57 Sunday 28th January, 2007
Pablo
while(1){DoTheDo();}
|
|
|
|
|
Yes, it's DesignMode, from memory. It doesn't always work. The new designer sucks.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Perfect, thanks a lot
Pablo
while(1){DoTheDo();}
|
|
|
|