|
By the way... YES! It worked perfectly...
|
|
|
|
|
Can anyone point me at a data bindable print document thing?
I am prepared to write this if it doesn't exist, but it's a big job so I don't want to waste time reinventing someone's wheel.
What I am looking for is a component that allows you to design a rudimentary document and then data bind to it at run time. Simple stuff: labels, paragraphs, images. (possible graphs and graphics at a later date)
Any ideas?
If such a thing does not exist any ideas as to what it should contain?
Go raibh maith agat,
Duncan
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Seems to run twice?
My code is fine if a button onclick event is used to start the sub I want but if the sub is called from the combobox onchange its a bit screwed up as it runs it twice seemingly simultaniously.
Does anyone know is there's a way to remove the control and add it back with lostfocus events?
|
|
|
|
|
Try using SelectedIndexChanged intead of onchange.
You must be careful while using onchange.
onchange will fire when the text in combo changes or if the selection changes.
Nibu thomas.
|
|
|
|
|
Hi
Thanks for that, I should have been more clear I am using that event handler but still no luck. Thanks anyway,
Nige
1000 monkeys at a 1000 computers for 1000 years = 1 working apps.
|
|
|
|
|
Did it work!
Nibu thomas.
Software Developer.
|
|
|
|
|
No Im afraid not. It would seem you must remove the event handler and add it back to stop it doing it twice - what a pain. I'm using the button to handle the event (ie change the list then press the button - what a pain!)
Ill mess with it when I have time. Thx
Nige
1000 monkeys at a 1000 computers for 1000 years = 1 working apps.
|
|
|
|
|
I'm using the DataView Find method to locate a record in a table. But it will only find exact matches in the table. i.e. If you pass the method the text "david" it will locate the row. But how can you get it to find the closest match of a text string? i.e. If you pass it the text "dav" it would find the row in the table containing the closest match, in this case the row containing "David".
Thanks
|
|
|
|
|
does LIKE work ?
where rec LIKE dav% ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
In the TextChanged() of my textbox I have the following code.
If TextBox1.Text <> "" Then
Dim intRow As Integer = DataSet11.Tables(0).DefaultView.Find(TextBox1.Text)
If intRow > -1 Then
Me.DataGrid1.CurrentRowIndex = intRow
Else
Me.DataGrid1.CurrentRowIndex = 0
End If
End If
At runtime this will locate the record in the grid, but only if the textbox.text exactly matches the field in the table.
I would like the code to find the closest record that equals textbox.text.
For example, my table contains the following three records
bill
dave
david
When I type "dav" in the textbox it would find the record containing "dave".
|
|
|
|
|
|
That may work but it is not quite what I want. The perfect example of what I'm talking about is the Index Help window in VB .NET. As you type the window below increments to the closest match. It looks like they use a multi-line textbox but in my case I'm using a datagrid.
|
|
|
|
|
Hye Guys
I am USing vb.net 2003. My problem is
I have two Forms running togather and I want to run one procedure from FormA residing on Form B as a thread. but it gives me error that cannot run a thread from another thread.
Can any one help me on this issue
Rizwan Bashir
|
|
|
|
|
I think there are several ways to 'understand' you problem. I think you have two form in which you want to run a diffrent procedure :
frmA.ProcedureA() and frmB.ProcedureB()
If this is true, you can probably run ProcedureA() and ProcedureB() in seperate threads. If frmB is a child of frmA, then make sure not to open frmB as a dialog window, or make them a MDI child of frmMain or so... But once again, I don't exacly know what your problem is, can you explain a bit more to find a more accurate solution...
I love it when a plan comes together
|
|
|
|
|
yes you are right. My situation is
I have MDI Main. then a Child form A and another form ChildB. Now MDI Main and Child A is open. on specific event say button click of ChildA , ChlidB will open. Now at this time I want to run a procedure XYZ() on MDI Parent Form as a thread and also need to show the Child B at the same time.
but have a problem saying cannot run a thread from another thread.
Rizwan Bashir
|
|
|
|
|
While I have been developing a windows app in vb.net, I add a toolbar to the main form. I also wrote "Application.EnableVisualStyles()" at the Sub New().
Then an amazing thing happend. I lost my icons for the toolbarbuttons at run time. But when I delete the line "Application.EnableVisualStyles()" I regained the icons. What's the wrong right there? How should I overcome it?
Thank you in advance.
Anindya Chatterjee
|
|
|
|
|
This is a bug in .Net 1.1, you have to call Application.DoEvents after EnableVisualStyles. Also you should use a Sub Main like this:
Shared sub Main
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(MyForm) '<-- Put the name of your main form here
End Sub If you use a Sub Main, don't forget to change the Startup Object to Sub Main in the Solution explorer -> Properties -> Startup Object.
Hope this helps!
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
Train free @Microsoft
Got to this link and register free for
training your self for VS2005
https://www.microsoftelearning.com/visualstudio2005/
or
http://www.financialexpress.com/latest_full_story.php?content_id=107645
Microsoft dont give anything free except training
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
You posted this thing acrossed how many forums?? Bad practice man...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Wanted everone to take the advantage
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
the lounge is the only place for every one to get general infos as the last threads are reported to the home page of CodeProject...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Well, I am glad you placed your message here.
Thanks.
|
|
|
|
|
hellow to all ..
i am looking for a way to Color a specific Row or Column in datagrids ...
let say if it have a specail parameters , that i take from the tabel ..
how can i do that ?
thanks for any help ?
|
|
|
|
|
Are you using datagrid or datagridview?
Datagridview seems to have more 'stuff' you can do to it.
DataGridView1.Rows(0).DefaultCellStyle.BackColor = Color.LightGray
1000 monkeys at a 1000 computers for 1000 years = 1 working apps.
|
|
|
|
|
i am using datagrid ,
this option i do not have it in datagrid ..
what is datagridview is it the same as datagrid ?
|
|
|
|