Answer Questions
DKB Size of a Tree DropDown Field
Hello, I want to resize the tree dropdown list: <aw:TreeDropdown id="tddlCategory" RunAt="server" CurrentValue="true" DataFileUrl="sidCategoryTreeUrl" Depth="4" ColSpan="3" DataTextField="leaf_value" DataValueField="value" DataLevelField="level" DataTextIndentedField="value_indented" ItemDataField="workitem_category_tree_value" Label="sidLblCategory" NoSelectionString="sidNoneDecorated" /> I want to change the size (to fix it) and I have tried "width" parameter but it does not work. <aw:TreeDropdown id="tddlCategory" RunAt="server" CurrentValue="true" ...Show All
Eduardo Couto Parreiras Where is the Fill() method?
I am trying to add new rows to MyDataBase.mdb with the below code. My problem is that it does not identify the columns. It fails with the error message “Name1 does not belong to Customers”. But it does so do Name2. I think it’s locating the database and table as I can retrieve data with the open code using SQL Select. Can anyone help Please hemo Dim connection As New OleDbConnection() Dim myadapter As OleDbDataAdapter Dim myDataSet As New DataSet Dim newrow As DataRow Dim MyTable As DataTable &nb ...Show All
DPotages Backgroundworker Fundamentals
Are these background workers slow or what If you give it a simple 2-3 lines of codes, it could take a long time for it to execute. No, that's not true. The background worker will execut the code but it appears to have amensia, because the error - thread cannot run multiple tasks at the same time... which means, even though it has finished running the code, it cannot automatically dispose itself and therefore is still active until some element deactivate it. Oh, I can understand on a single core CPU, it might have to "wait" until it turn is up - but come on, on a dual core... what's the wait I don't suppose if you tell ******** to give more processing power to background services would help ...Show All
curiousss Embedded Resource?
Hi, I am trying to create a file that is seperate from the EXE file. The application I am making has a typical login form. The usernames and passwords are stored in a database file. Instead of coding the validation of the user into the EXE, I want the code to be in it's own file. I would like to access this file from my application. At this moment I figure that the validation code should be created as a module. The module should be built as an Embedded Resource. First question is; is this the best method to do this, meaning would a module be the best approach I want the file seperate because I want the ability to change the validation coding at anytime without having to recompile the EXE file. Logic dictates creating the validatio ...Show All
DTXNA Data vanishing during run time
When I enter data into a SQL database and save it, the data that I have just added vanishes, but when I close the applicaiton and re-open it, it's still there - is there any reason for this and any way to get it to stay Sorry confusion on my part, it's when the program is being debugged or built Hi, Vanishes from where textboxes, labels More info needed please. Regards, S_DS I put: Me .AlbumTableAdapter.Fill( Me .Music_databaseDataSet.Album) Me .TrackTableAdapter.Fill( Me .Music_databaseDataSet.Track) after my coding, but i get the following error msg: "Cannot clear table Album because ForeignKeyConstraint FK_Track_Album enfo ...Show All
Suganya Mahadevan Drag & Drop icons from Desktop onto control
Hi all, I have written a menu app which I have to browse for files, to tell it the file name / path. I would like to Drag & Drop icons onto the form / control from the windows desktop. I have a basic understanding on how to drag/drop from 1 control to another (both on the form ofcourse), but when i try to drag an item from the desktop the mouse pointer changes to a circle with a line through it. I am assuming that Vb only lets you drag items from the form onto iteself. Is this correct Code sample would be appreciated. Thanks in advance. Thanks nobugz, Thats works perfectly. You have been a great help. Thanks again. I reversed-engineering the Shell drag & drop formats, here's the sample code ...Show All
Northern Rob Appointment Reminder Help
First off, if this is in the wrong forum move it please. Ok, so... I am making a program that would help remind someone of an appointment. It has four basic objects - a DateTimePicker, a Button, a TextBox, and a CheckBox. I have set the DateTimePicker to a custom format of dddd, MMMM dd, yyyy -- hh:mm:ss tt. When the user sets the date and time and clicks the appropiately named "Add" button, it will add it to a list of appointments - the textboxes. Of course these probably aren't the best way to list them is it, but more on that later... When the system time reaches what is in the textbox it is supposed to alert them and give them maybe a couple of choices of dismissing it or moving it. The checkbox I haven't decided 100% on, ...Show All
bballmitch Unbalanced stack Error calling winmm.dll
I’m getting an pinvoke unbalanced stack error in a call to winmm.dll. My declaration is: Public Declare Function mixerGetDevCaps Lib "winmm.dll" Alias "mixerGetDevCapsA" _ (<MarshalAs(UnmanagedType.I4)> ByVal uMxId As Integer , ByVal pmxcaps As MIXERCAPS, ByVal SizeofMcaps As Integer ) As Integer My definition of Mixercaps is: <StructLayout(LayoutKind.Sequential)> _ Public Structure MIXERCAPS <FieldOffset(0)> Public wMid As Integer <FieldOffset(4)> Public wPid As Integer & ...Show All
John Aschenbrenner Delete all selected items in listbox?
How can I delete all the selected items in a multi-select listbox in VB.NET Thanks, James Wow I hadn't thought of doing it in reverse Thanks! P.S. Whew I've lost count of how many of my problems you've fixed, ahmedilyas! just go through the selecteditems and remove it from the listbox items collection, but in reverse...like so: For counter As Integer = Me .ListBox1.SelectedItems.Count - 1 To 0 Step -1 Me .ListBox1.Items.Remove( Me .ListBox1.SelectedItems.Item(counter)) Next hehe no worries buddy ;-) always a pleasure ...Show All
willthiswork89 Showing an XML file in a tree veiw
Hi , for a program im making i need to know how to make a tree veiw object show the nodes of a XML file. if anyone knows how PLEASE post! i-code-4-fun, TreeView Class displays a hierarchical collection of labeled items, each represented by a TreeNode. The Nodes collection holds all the TreeNode objects that are assigned to the TreeView control. The tree nodes in this collection are referred to as the root tree nodes. Any tree node that is subsequently added to a root tree node is referred to as a child node. Because each TreeNode can contain a collection of other TreeNode objects, you might find it difficult to determine your location in the tree structure when you iterate through the collection. You can parse the TreeNode ...Show All
Naveenkm Region/Xml-comment Text Color Bug
I found this weird bug the other day, which colors the text describing a #Region or an Xml-comment that is collapsed. The bug can be recreated like this: 1. Create a Project(e.g. VB Windows Application, the only one I tried) . 2. Create a #Region in the code and name it something, preferably a long string for more colors. 3. Collapse the region so that only the name of it is visible. 4. Place the input cursor above or in front of the region. 5. Press Ctrl+X until the line containing the collapsed region is cut to the clipboard. 6. Finally press Ctrl+Z to undo the deletion. -The description of the region should now be colored. Note: I have not found this bug to cause any damage to the project or source files. The coloring will disappe ...Show All
Vian Zhou filling a bitvector32 in a loop
Dear all, I can fill a bitvector32 like this: Dim InBytes As Int32 dim i for i = 1 to 1000000 InBytes = i 'for example Dim InBitVector As New System.Collections.Specialized.BitVector32(InBytes) next i and then I can read out the individual bits (need this for a graphics conversion). Problem: this gets VERY slow, and I trailed that to the Dim InBitVector statement. Is there ANY way to assign an Int32 number to the InBitVector WITHOUT using the dim statement Thanks, Kees Hi Renee (not a guy, I guess, from the double 'e' ), I am unclear how the bitconvertor.ToInt16 is going to help. I was aware of the bitconvertor and I knew a bit ab ...Show All
udayan label size
This issue is driving crazy. I have been using vb6 for a while, and I finally got me my hands on the vb.net. I am following a tutorial by MS to develop a basic application and a simple task cannot be completed for whatever reasons! HELP! The tutorial asks to drag the label object from the toolbox and drop in the tab control container. Then, go to the label size property and adjust the size to some different dimansion. Basic stuff, right It won't let me do it!!! After I enter the new dimensions (which by the way are not large or very small), the label size (both width and height) resets back to its original dimensions!! I have the vb.net sp1 installed. Does anyone have any ideas on this bizzare behaviour THank you. ...Show All
Peter Peng C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Hi, if someone on here could help me, I'd really appreciate it. I am currently building a program that will be able to open excel and word documents in their appropriate programs. Heres my code: Dim Job As String = txtJob.Text Dim str2File As String str2File = "" str2File = Application.ExecutablePath str2File = str2File.Substring(0, str2File.LastIndexOf( "GaugeHelper.EXE" )) Dim wordstart As New Process wordstart.StartInfo.FileName = "winword.exe" wordstart.StartInfo.Arguments = str2File & "\Reports\" & Job & "\" & Job & ".doc" w.Start() I can get it to work, except for one thing, When you use the common folder name \Documents and Settings\ Word will try to ...Show All
vijayjun HOW DO I: resume execution after Throw in Catch?
Sorry for what seems like a trivial question, but... How do I continue execution after issueing a "Throw New..." inside a Catch Nothing I do moves me off the Throw command (tried ctrl+shft+f8, etc.) so I must halt execution altogether without being able to test the exception handler code at all. [Without the"Throw New..." it continues execution fine. Also, rethrowing the original exception instead of a new one does not change the behavior.] I have Option:Debugging:General:Enable Just My Code as enabled, along with Debug:Exceptions:CLR Exceptions set to User-Unhandled. Ultimately, I am looking for the equivalent of VB6 "Break on Unhandled", which has so far proven to be very elusive!!! ANY help would be ap ...Show All
