|
ok. Hey, thanks, you've been a great help. Is there anyway i can contact u in future if i have problems with VB?
|
|
|
|
|
I don't actually do VB, I just help here b/c it's all .NET. There's other people on these forums far better at VB than me, your best bet is to ask here, I'm here all the time, so I'll answer if no-one else does
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Alright! Thanks man!
|
|
|
|
|
I'm not good at English.
Not enough data to answer, because you didn't say about all the parts in your project and your project name.
May be you have a class named "DateCalc2008" and a form named "Calculator". The form "Calculator" has a control named "StartDatePicker", and you created a subroutine which handles "StartDatePicker.ValueChanged" event.
The error is: The form "Calculator" doesn't have a member named DateCalc2008.
You should fix your code like this:
Dim myCalc As New {project name}.DateCalc2008
I hope this will be an useful answer.
Good luck !
chilinhhacker
|
|
|
|
|
I have a combobox that all my formname such as form1,form2,... listed that.
i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,....
but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,...
how can convert selectitem in combobox from string to form??
|
|
|
|
|
you cannot convert a string to a form, I would hope that is obvious. You could make the tag of the item the form that your string refers to, and then grab it from there, or build a map of strings to forms.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hello Experts!!
I am declaring one array (having size 10) as an integer and bind array data to grid combobox.It works well but in combobox it shows values as well as zeros....means if array contains 3 values then remaining values shows zero(remaining 7).
How to taggle with this? Combo shows like this->1,2,3,0,0,0,0,0,0,0...I dont want that zeros
My code is
<pre>Dim o As New design
Dim i As Integer = 0
Dim rowArray As String()
Dim no(10) As Integer //Declaration
rssearch = New ADODB.Recordset
rssearch.Open("select srno from design", con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
While Not rssearch.EOF
o = New design
o.dsrno = rssearch.Fields("srno").Value
Dim row1() As String = {o.dsrno}
Dim rows() As Object = {row1}
For Each rowArray In rows
no(i) = rowArray(0) // Assign value one by one
i = i + 1
Next rowArray
o = Nothing
o = New design
rssearch.MoveNext()
'i = i + 1
End While
CType(dgvbottom.Columns(8), DataGridViewComboBoxColumn).DataSource = no // Display values in combo
|
|
|
|
|
This is why you should use dynamic lists instead of fixed arrays. The control is doing exactly what you asked it to. Use List<int> instead.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
hi,
an int array of dimension 10 always contains 10 numeric values, they get initialized at zero.
solutions:
1. give your array the right dimension
2. use a collection instead of an array, say a List Of Int
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
List of (int ), worked..Thanx...
|
|
|
|
|
Hello Friends,
How to convert a bound field to template field in vb .net window application
In website there exist a link to convert bound field to template field.
Thanks In Advance
Praveen
|
|
|
|
|
You are working with a completly different control. The DataGridView does not have the concept of the Template column. Google working with DataGridView, there are plenty of examples out there.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You need to work with datagridview and add 2 additional columns, for example DataGridViewLinkColumn. For each one of those columns add events, for example:
AddHandler DataGridView1.CellContentClick, AddressOf Lnk_CellContentClick
Private Sub Lnk_CellContentClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs)
Select Case e.ColumnIndex
End Select
End Sub
Shay Noy
|
|
|
|
|
I have been provided these two code sources:
http://www.outlookcode.com/codedetail.aspx?id=88
and
http://www.outlookcode.com/codedetail.aspx?id=83
to generate a new meeting request in Outlook. My goal, is to use code (i've been told these will do what I need) to be able to send a new meeting request via an infopath form. The reason I want this done in Infopath is so that I can generate a print view form for users to have a custom brochure. I would like for users to fill out the form in infopath and upon clicking the submit button, have the meeting request send in outlook. I am not very familiar with coding, so if someone could walk me through the steps to implement this (or another) code to make this happen, I'd greatly appreciate it.
Thank you.
|
|
|
|
|
Programming is somewhat more complicated then browsing for code-snippets and mixing them. You might consider outsourcing your project if you have no practical experience.
My apologies, I know that this isn't the answer you had hoped for.
I are troll
|
|
|
|
|
hi i want to use bios date in my application ,i want use this date in my
application expipry coding which developed in vb.net.Please tell me how i can get the bios date in my application.
|
|
|
|
|
DateTime.Now should work since whenever you change Windows clock BIOS time changes as well.
|
|
|
|
|
You should not post the same question in more than one forum. It is rude.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello Experts!!
I am using following code to bind data from db to datagridview column having type combobox. but i dont know how to show data into combobox.
Dim o As New designpant
Dim i As Integer
rssearch = New ADODB.Recordset
rssearch.Open("select srno from designpant", con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
While Not rssearch.EOF
o = New designpant
o.dsrno = rssearch.Fields("srno").Value
Dim row1() As String = {o.dsrno}
Dim rows() As Object = {row1}
Dim rowArray As String()
For Each rowArray In rows
Dim no As Integer = rowArray(0)
'ComboBox1.Items.Add(no)
dgvsherwanibottom.Columns //like combobox1 i want to show rowArray contents into gridview combobox Next rowArray
|
|
|
|
|
1. DataGridViewComboBoxColumn
2. DataGridViewComboBoxColumn.DataSource
3. DataGridViewComboBoxColumn.DisplayMember
4. DataGridViewComboBoxColumn.ValueMember
|
|
|
|
|
In my code it shows only DataGridViewComboBoxColumn.Equals and DataGridViewComboBoxColumn.reference properties
Does i made any mistake?
Where i have to write this??
i am trying it in form load.
|
|
|
|
|
All,
This may be a silly question, but what is the accepted "norm" when using XSD files in a project?
For me I see 2 ways to use them...either make a huge one that is a schema of your database and define all the relationships etc within it.
OR
Define lots of little ones that perform certain tasks, for example you may create an XSD that might contain just the schema, relations etc for a Customer/Order/Order Line/Product scenario.
I can see the big all in one file being a bit slow when creating objects from it but easier to maintain, but I can see the smaller one being more task focused but a bugger to maintain...or is that the trade-off?
So, generally, what is the "best" usage for a given scenario or what is the accepted "norm" when dealing with these files??
Thanks,
Monkey
|
|
|
|
|
If you use XSD's as a definition of your datamodel i would surely choose for one definition. Otherwise you will get the same problems as 2 apps each having a seperate database that must communicate with eachother (how do you maintain integrity then?)
Rozis
|
|
|
|
|
Hi there, hope someone can assist me on this.
Ive got a datatable that gets Data from SQL.
Now what I want to do is add a unbound Image datacolumn to this datatable.
But the image must be a linkbutton.
When its gets click it should redirect to a page carrying over the other datagrid Colums as parameters.For instanse
-------------------------------------------
Col1 | Col2| Col3| Col4 | NewImageColumn
--------------------------------------------
Row1 Row1 Row1 Row1 Row1
Row2 Row2 ROw2 Row2 Row2
Row3 Row3 Row3 Row3 Row3
Lets assume the DataTable has 3 rows
When clicking on the NewImageColumn on lets say row 2
it should Redirect(pgSomepage.aspx? Row2.Col1 & Row2.Col2 & Row2.Col3 & Row2.Col4
|
|
|
|