|
KaKa` wrote: PersistenceMode
This is usually used as an attribute of an ASP.NET class property that tells the Designer how to write the HTML for that property and it's value.
KaKa` wrote: DesignerSerializationVisibility
This controls the visibility of a class property to the code generator, and if visible to CodeGen, tells it whether to generate code for the entire object, or for a value contained in the object that it's attributing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a text box and I want it to have only numbers in it. like 3.854 as it is a Currency. What I want is when you press btnCalc, if anyting else but numbers (decimals) are in it it will display a message box saying: You must input a number! How would you do this?
In the end we're all just the same
|
|
|
|
|
Hi Dave!
Better to use Regular Expressions for vallidation.Checkout Regex class with Match and Match Colection etc in documentation of .net.
egular expression for decimals only could be as
dim reg as new regex("[0-9]+\.?[0-9]+")
i hope hint wiil help search more in it
Regards
Abu Sufyan
|
|
|
|
|
Dave...
Instead of waiting for btnCalc time to check for digits and a decimal point in the textbox, you could use a textbox that, with appropriate property settings, allows nothing but numbers and one decimal point. Check out my article on the Extended And Date Textboxes. It's an option you might consider.
George
It's a poor carpenter that blames his hammer
|
|
|
|
|
upload files to your server i.e to your project folder,and list out the files which u updated use datagrid and use down load option in your datagrid
thanks.
|
|
|
|
|
And the question is...?
---
b { font-weight: normal; }
|
|
|
|
|
I realise that this is very elementary, but I have only just started with VB.Net. I allocate text and graphics to tool bar buttons, and in the editor they appear on the buttons. But when I build the solution, the buttons are blank. What am I doing wrong? I am using VB.net 2003.
Chris
|
|
|
|
|
Did you do an EnableVisualStyles in your application??? This is a known bug in the .NET Framework 1.x.
Add this line immediately after the EnableVisualStyles() call:
Application.EnableVisualStyles()
Application.DoEvents()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the help. No I didn't do an EnableVisualStyles. In the end I just deleted the toolbar and did it again and it works. The code was the same, so I still don't know whats wrong or how to avoid the same problem in the future.
|
|
|
|
|
I want to add my dll files with the .net system dll files. How I could be able to do so. Plz help me ASAP
Thnx.
joshunleashed
|
|
|
|
|
|
I have a problem, I guess many experts out there could help me.
I am doing matrix analysis with Matlab. Could someone tell me how to interface VB with Matlab> What I want is how to display the matrix result in VB form? Then draw the graph of the matrix in VB form.
I hope someone will help. Thanks
dont forget this guy
|
|
|
|
|
As far as I know, Matlab provide a control for VB or other develop tools.
find this in Matlab->help.
|
|
|
|
|
I buy a active X dll for my application,
As my application is a COM Addin application,
which use a msi installer to deploy the project.
How can I include the dll in my application setup?
just like include a VB.NET class librabry dll.
Thank you.
|
|
|
|
|
in which path do you want to insall the dll file?
|
|
|
|
|
i need to print invoice using dot matrix printer using
continuous form paper.
is the hole in the paper that make easier to ripped
by hand came from the paper it self or do i have to
coded something in my program ? i'm using vb.net
please i'm desperately need to know. thank you
|
|
|
|
|
klakero wrote: is the hole in the paper that make easier to ripped by hand came from the paper it self or do i have to coded something in my program
Have you bothered to LOOK at the paper?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 22:01 Sunday 12th March, 2006
|
|
|
|
|
And I thought it was bad enough to try and encourage people to read the documentation.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
That's the problem!! They can't read the docs unless they loko at the paper their printed on!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hey, im just start programming in less than a year
so forgive me if it sound stupid
so i guess that means it comes with the paper
yeah, thanx anyway.
|
|
|
|
|
Hello Everyone,
I created a custom control which consists of a label and a listbox. The control has a public property called 'Items' which allows users to add list items to the control's listbox during design time. (much like the Items property of the vb listbox). I used ListItemsCollectionEditor to display the ListItems Editor window.
I added some list items using the ListItems Editor window but the listbox did not display the newly added items at all.
A code snippet is given below:
Private listitems as new ListItemCollection
<editorattribute(gettype(system.web.ui.design.webcontrols.listitemscollectioneditor), _
gettype(uitypeeditor))=""> _ 'displays the ListItemEditor window
Public ReadOnly Property Items() As ListItemCollection
Get
Return listitems
End Get
End Property
How do I enable the persistance of the list items collection so that the listbox will display the items?
Advice would be appreciated
|
|
|
|
|
I could be wrong here, but if all you're doing is re-exposing the ListView's Items collection, I think you're missing a couple of things. First, you have to tell it which editor to use to edit a ListViewItemsCollection. You can "borrow" Microsoft's for this (I'm assuming .NET Framework 2.0). You also have to remember to call your InitializeComponent method to create any constituent controls of your UserControl BEFORE you can create your own ListViewItemsCollection or use the one in the ListView that you're using.
Imports System.ComponentModel
Imports System.Drawing
Imports System.Drawing.Design
Imports System.Windows.Forms
Imports System.Windows.Forms.Design
Public Class MyUserControl
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
Editor("System.Windows.Forms.Design.ListViewItemCollectionEditor, System.Design,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", _
GetType(UITypeEditor))> _
Public ReadOnly Property Items() As ListView.ListViewItemCollection
Get
' I'm assuming that you have a ListView control on your UserControl surface called "m_ListView"!!!
Return m_ListView.Items
End Get
End Property
' This is VERY important! Without this next line, the ListView will not initialize
' itself and create it's internal ListViewItemsCollection!!
Public Sub New()
InitializeComponent()
End Sub
End Class
Want to know where I got the Editor line from?? Checkout Lutz Roeder's .NET Reflector[^] and dig into the ListView class' code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all, I have a dictionary table contains 2 columns. One is the key column, and the others
One is data column. I made the key column records using CODE rules. For example I used letter ‘A’ as short for a Class Name, then number the CODE from 1 to 100. Similarly, A Full CODE look like ‘A00001B00002C00003’, and every CODE have a DATA.
Now, I need query value from this table. And I need using a value by many times.
The direct way to query is using ‘SELECT DATACOLUMN FROM TESTTABLE WHERE CODE = ‘A00001B00001C00001’’.
Sometimes, I must do this SQL QUERY many times for a value.
How do I change the way to access database or other way can improve efficiency to do this?
Any assistance would be really appreciated.
|
|
|
|
|
One of the best ways is to create an index on your key column. This will cause the database to perform an index seek instead of a table scan each time you query the table. This is much more efficient.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
Steve Pullan wrote: One of the best ways is to create an index on your key column.
Thanks Steve.
I created an index on the key column.
Do you know other way to improve efficiency?
|
|
|
|