|
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
|
|
|
|
|
Well, I've haven't used the TableLayoutPanel yet, but it looks like the TableLayoutPanel.ColumnStyles collection is empty. Just because you set the ColumnCount to whatever, doesn't mean that there are any ColumnStyle objects added to the ColumnStylesCollection your trying to index.
For c As Integer = 0 To (iColumns - 1)
Dim newColStyle = New ColumnStyle(SizeType.Absolute, 1/iColumns)
Next
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave, that got me past the error message.
I still don't get a TableLayoutPanel Control on my at runtime, but I'll post a new message with an appropriate subject title.
Thanks again,
Karen
Nooobie to OOP and VB.Net 2005
|
|
|
|
|
Using VS2005 RC1, every time I create a project and add a reference to a DLL or control that resides on a different drive I get the following error either when attemting to run the program or when I first attempt to add the reference:
... Could not load file or assembly ... Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
I'm an administrator-equivalent user and have full create/modify/destroy on both my local drives and all network volumes. This seems to be the case when I create the project on my local C: drive and attempt to add a reference to something on a network mapped drive and when I create the project on a network drive and attempt to add a reference to a DLL on my C:. I've made sure the "Copy Local" setting is TRUE on the reference so I'm clueless as to what is triggering the exception.
For example, I can create a project on my local drive, add a ref. to a DLL that's IN my project folder and run it, no problem. The DLL has no dependancies other than .NET runtime. I then copy the entire project folder up to the network and load it (no errors) run it and it dies trying to create the form with the error above (the form refecences the DLL to create a new object).
I've google'd both the error code and text and haven't found anything on MSDN/MSDN2 or anywhere else that explains this (at least in any terms an old VB programmer such as myself can understand). Can anyone enlighten me as to what the heck causes this, and more to the point, how it can be avoided in the first place?
Thanks!
|
|
|
|
|
I need help on functions using vb.net i'm doing a little prog on sorting this is for my vb.net. i need to create a function that holds the highest integer out of 3 and another function that holds the lowest integer out of 3. Can some one please help me
|
|
|
|
|
If that is all you need your function to do, then you can add a function procedure to any form or module:
Public Function MaxThree(byval Int1 as integer, byval Int2 as integer, byval Int3 as integer) as integer
If Int1 > Int2 then
if Int1 > Int3 then
MaxThree = Int1
Exit Function
End If
End If
If Int2 > Int3 Then
.....
End Function
This is an incomplete, very basic, example but I think you should get the idea from here.
|
|
|
|
|
try this:
lowestValue = Math.Min(Math.Min(value1,value2),value3)
and
highestValue = Math.Max(Math.Max(value1,value2),value3)
Thanks,
Karen
Nooobie to OOP and VB.Net 2005
|
|
|
|
|
Hi,
I have this problem of adding dates in a combobox say in this format dd/mm/yyyy please help me out!
|
|
|
|
|
Which version of VB are you using?
|
|
|
|
|