|
hi i am creating an program which have an list and is populated by an database there are multiple fields however i trying to make the display nicer
currently i am doing it like listbox.item.add("data")
however my data is always crampled together i would like to split them up nicely and accordingly
anyone got any idea or advice how todo it?
|
|
|
|
|
neodeaths wrote: however my data is always crampled together i would like to split them up nicely and accordingly
'crampled'?
Your question makes no sense. What is it that you want to do? Listboxes are typically used to display a single column of values. If you want multiple columns, use a ListView control.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I'm building an XML app in the Windows CE 5.0 environment. But it seems that XPath queires don't work.
For example:
xmlDocument = new xmlDocument()
xmlDocument.load(xmlPath)
xmlNode = xmlDocument.selectsingleNode("//System[@pos='133547']")
And this doesn't return anything, actually it returns Nothing.
This Node and this attribute exist in the file 100%. I can with no problem execute this kind of query ("//System/Specific/Type/") or ("//System/Specific").firstchild.innerText etc...
Any help greatly appreciated.
Thanks!
|
|
|
|
|
code for receive messages in windows form from mobile phone in vb.net
|
|
|
|
|
What sort of message ? Is the phone on the internet ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi there,
I'm new to VB ... I want to know how to restrict the values typed into a text box.
for example, i want to allow only numbers to be entered into the text box. If any other character is entered the program should not allow it ... How do I do this ??
|
|
|
|
|
Handle the key press event and reject all non valid values
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
source code present on the same site. check out!
|
|
|
|
|
Ok ... how to handle TextBox.KeyPress events? I mean, what is the syntax for this!
I want to accept only numbers 0-9, Tab, backspace, Delete, and directions only
Thank You,
|
|
|
|
|
http://www.codeproject.com/vb/net/ControllingTextFieldInput.asp
article named:ControllingTextFieldInput
u will have to modify code according to ur requirement
|
|
|
|
|
I am using a web user control with infragistics spell checker to spell check a text box. When I click the image button to invoke the spell check method the screen refreshes and the spell checker form is not displayed. What am I doing wrong?
|
|
|
|
|
1 - asking an ASP.NET in the VB.NET forum
2 - asking here instead of asking Infragistics
3 - asking us to help you without posting any code, so we don't know what you could be doing wrong
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
timescale wrote: What am I doing wrong?
Without seeing any code snippet, who knows.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
It's three files. One is the asp code for the ascx file and the last is the aspx file with the infragistics spell checker designer.
I really wanted to know if you can invoke a method (the aspx file) from a web user control?
|
|
|
|
|
The code works fine when the first file is an aspx file and the second file is an aspx file. When the first file is the aspx file and the second file is the ascx included in the aspx file and the aspx file that spell checks is started from the ascx file the form just refreshes.
|
|
|
|
|
Does anyone know where I can find some sample code that demonstrates a screen capturing routine where the user goes to an area on the screen holds down the left mouse button, drags the mouse over the area they wish to capture and on the mouseup event saves the selected area into a bitmap file?
Thanks,
Quecumber256
|
|
|
|
|
Has a google search brought anything up?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
I have a large multithreaded Windows Forms application and its leaking GDi objects (VB.Net). The application has a single MDI and multiple forms with multiple tab pages in each form. At any time there is only 1 MDI Child loaded. In the application there are no explicit GDI calls, we do have new fonts getting created but no images etc or any enhanced graphics drawing.
Every time a new form is loaded, the old form is disposed and the contained tab pages are also disposed. We are disposing even the classes. We ran the application with Memory Profiler and have not found any left over objects in the application name space.
Inspite of that the GDI count keeps increasing by ~50 handles every time a new form is opened and closed.
Any help in tracking down the culprit object which is leaking the GDI resources is greatly appreciate.
Thanks
Balakumar
|
|
|
|
|
Balakumar Ponnusamy wrote: we do have new fonts getting created
Do you dispose of them ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
Thanks for the reply.
We have new fonts created like this in the INITIALIZECOMPONENT section of the New Form.
'
'Label46
'
Me.Label46.Font = New System.Drawing.Font("Tahoma", 8!, System.Drawing.FontStyle.Bold)
Me.Label46.Location = New System.Drawing.Point(840, 51)
Me.Label46.Name = "Label46"
Me.Label46.Size = New System.Drawing.Size(32, 16)
Me.Label46.TabIndex = 40
Me.Label46.Text = "S/L:"
Are we expected to DISPOSE of these Fonts too? It seems counter intuitive, and its strange that if we just use the Microsoft Sans Serif (the default font) no New is added.
Thanks
|
|
|
|
|
Hi,
when you close a form:
1) do you Hide it or Close it?
2) is it actually gone completely, or do you keep some reference to it somewhere,
say in an ArrayList or List so you know which forms are (or have been) open?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Luc Pattyn wrote: do you Hide it or Close it?
That certainly could be an issue.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
we explicitly close it (no HIDING) since the application is fairly large. We have also used memory profiler to monitor objects creation and destruction, and have found that the objects (ie the ones in the application namespace and to a large extent even in the system and system.windows.forms etc namespace ) are getting garbage collected.
One mistake (according to most of these posts) that we do have in our app is that we are forcing a GC.Collect, but would that cause GDI objects to not get collected?
Thanks
Bala
|
|
|
|
|
Are you running the garbage collector? I would expect that if you create a font object and never dispose of it, the underlying font resource will get released when the object is garbage-collected, but unless you force a garbage collection (generally not a good idea except for diagnostic purposes) that may not happen for awhile.
|
|
|
|
|
supercat9 wrote: the underlying font resource will get released when the object is garbage-collected,
No, it won't. You have to explicitly call Dispose on it to release the unmanaged resources. The GC will not do this for you.
|
|
|
|