|
Thank you very much for your reply. I will try check DataGridView control.
|
|
|
|
|
I was wondering if its possible to set the visibility element of an HTML table, using the aspx.vb file. I know you cant set the ID and call it like that. Just wondering if there is any good way to do this (preferably without JS). What i'm doing is setting certain tables to be visible based on who logs in.
Thanks,
Nate Lindley
|
|
|
|
|
This is a question for the ASP.NET forum. It really has nothing to do with VB.NET or C#.
|
|
|
|
|
And here I thought I just caught a cross-poster I could flame!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Whoa there! Take a deep breath, put down the flame thrower and take two steps back.
|
|
|
|
|
Easy, easy now
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have a DataSet which has Two tables: TableAll, TableQueried
TabelAll has all data available.
What I want is to use a command to select only those rows in TableAll and copy them to TabelQueried which are LIKE some pattern.
I knew how to do this when I had a database and used connections; but now there is no database.
How should I do anything like this command:
"SElECT * FROM TABELALL WHERE Data LIKE " & Pattern
|
|
|
|
|
You could just use a 'For each row' in TableAll, and then check the existing condition that you're looking for (the like) and then when the row meets the condition insert 'row' into TableQueried.
Nate Lindley
|
|
|
|
|
Thank you for your answer, but in fact this is what I am doing right now!
But as a matter of fact, my Table is very huge and I have to do the search many times. If I make a search on all rows for every search, it would be slow.
I am looking for faster methods, if any...
|
|
|
|
|
Why do you want to dump the results into a new table? Why not just fill the original table with a dataset query based on your search option?
|
|
|
|
|
If you're using VS 2005, you could also use the ToTable method of the System.Data.DataView class.
|
|
|
|
|
Thank you, I will give it a try...
|
|
|
|
|
Oh This didn't cover what I needed!
Thanks anyway!
|
|
|
|
|
I am trying to cancel the mouse wheel scrolling in a combobox and I noticed that there is a Combobox.MouseWheel event but that just relays information it doesnt allow me to cancel the event.
This is the only thing I have found with some type of definite answer[^] and it looks like something that I dont want to do unless I have to.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
That's the only way you're going to be able to do it. You have to intercept the Scroll Wheel messages before they get processed by the controls WndProc.
|
|
|
|
|
Here's what Im trying and it doesnt pick up the scrolling while focused on the combobox only if I scroll with the mousewheel while focused anywhere else does it work.
Private Const WM_MOUSEWHEEL As Integer = &H20A<br />
<br />
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)<br />
Select Case m.Msg<br />
Case WM_MOUSEWHEEL<br />
Select Case True<br />
Exit Sub<br />
End Select<br />
MyBase.WndProc(m)<br />
End Sub
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Where is this code?? Is it on your Form or is it part of a custom ComboBox control?? This code has to be part of a custom ComboBox to work.
You got it mostly right. Though, your Select Case is really messed up. You don't need the Select Case True . That will ALWAYS execute it's code no matter what. All you want is to NOT process MouseWheel messages. All other MUST be passed to the base ComboBox control. Soooo....
Public Class MyComboBox
Inherits ComboBox
Private Const WM_MOUSEWHEEL As Integer = &H20A
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case WM_MOUSEWHEEL
' If we see a MouseWheel message, do not process it!
Exit Sub
End Select
' All other messages get processed as normal.
MyBase.WndProc(m)
End Sub
End Class
... is what you're looking for.
|
|
|
|
|
I sure was hoping it was easier but no biggie. Ive dont a few custom controls in my day... .
That select true used to contain code by the way but I was still in the middle of messing with it.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
I start a new job and my boss ask me if I can write the program to print the bar code label. Any one can help me out. Thanks.
Linh do
dolinh25@yahoo.com
|
|
|
|
|
There are numerous fonts that contain the 3 of 9 bars. WASP also has a barcode font and assembly in .NET.
I would recommend searching Google for a solution that meets your needs.
|
|
|
|
|
I have a variable on another form that I need to read and write to. I know it'll be obvious once someone tells me...
Just for the record, the form with the variable I'm trying to access is frmMainTools and the one I'm trying to access from is frmMain.
A timely answer would be most helpful. Thanks!
---------------------------------------
If it ain't broke, you're not tryin'!
|
|
|
|
|
The easiest method is to declare the variable on frmMainTools as public.
|
|
|
|
|
Dim mCurrentForm As Form
How would one make that public when it is already declared as a Form?
|
|
|
|
|
Looks like I got it figured. Thanks for the help and speedy responses.
The fact that this is going to be an app for just this company and it's a rather small app causes me to not worry about messy code. It doesn't need to work fast and besides that, it's only a database front-end, so I'm not going to be too worried if it breaks.
Thanks again!
--------------------------------
If it ain't broke, break it!
|
|
|
|
|
Maybe the easiest, but not the best in terms of OOP. Globals are not good
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|