Made A Sort Of A Notpad, And A MenuStrip With The Button Run?
Jun 4, 2009I've made a sort of a notpad, and a MenuStrip with the button Run... but how do I get it to save the textfile in f.ex C:. Like C:hing.bat?
View 4 RepliesI've made a sort of a notpad, and a MenuStrip with the button Run... but how do I get it to save the textfile in f.ex C:. Like C:hing.bat?
View 4 RepliesI am working on a MDI form application. I have got a menustrip control and some toolstrips. I want to add a button to the menustrip, to close active document. In the Word 2003 or Excel 2003 there is a similar �close button� at the very right side of the menustrip. Menustrip only allows me to add menu item, textbox and combo box. I can�t add a button?
View 4 RepliesFor example, if on form load Button1 was created, how would I make this button function?
View 2 Replieshow to handle movement of buttons that are made in runtime. What my program does is writes the name of a button that is made in runtime, the left, and top cordinate into a textfile. When the user reopens the program it needs to load the button in the same spot. So far i have a streamreader reading the file in each line. There is a one sentence split by ",". Each of the three components are loaded into an array. how can i call the buttons it i am unsure of the name. Possible answer could include using sender, addhandler.
Private Sub LoadBuildingToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoadBuildingToolStripMenuItem1.Click
Dim File As OpenFileDialog = New OpenFileDialog
[Code].....
When i push the close button on the top right of the exe i made, the process still runs. How can i make it to where when i close the exe it closes the process too? Also, (this is for shits and giggles) if i wanted to make a button that closed certain processes, what would the code be? For example, the button would close explorer.exe, googledesktop.exe, ect.
View 4 RepliesI want a menu with just two dropdown lists, the menustrip puts a strip right across the form, is there any way to change the width of the strip? Changing in properties does not work. Is there a different type of menu I can use?
View 12 RepliesIn my space invaders game, you press start, which creates 15 pictureboxes. When I hit the spacebar, a bullet moves to the top of the screen. What code would allow me to make a picturebox invisible that isn't named yet?
View 1 RepliesHow to create a button with a MenuStrip option like one in MS-Office "Save As" dialog as below picture?
View 3 Repliesim currently using vs.net 2003 my problem is that i want to sort items in listview by date (mm dd, yyyy) format and sort by a button not in the column :?:
View 2 RepliesRight, I'm trying to sort a WPF listbox when a button is clicked, preferrably in pure xaml (otherwise VB). I'm having a hard time seeing as most samples are written in C#. Here's my code:
<Grid.Resources>
<CollectionViewSource x:Key="myCollectionView"
Source="{Binding Path=Query4, Source={x:Static Application.Current}}" >
<CollectionViewSource.SortDescriptions>
[Code]....
Now when this button is clicked, I'd like the listbox to sort by the field "First Name", I assume I have to change the sort description somehow? Again preferabbly in XAML, but if need be in VB could you try and keep it simple
I'm trying to sort records in the gridview right after a radio button is selected. My approach is with the dataview, but because the dataset variable doesn't survive a round trip to the server, I don't know how to make this happen.[code]
View 1 RepliesI am trying to program a dialogue box to appear when the exit button from my 'Login' form is clicked. The form has three options; yes, no, cancel.
[Code]...
How can I improve this bit below to make the items in the TreeView to sort faster or something totally different to sort them easier?
[Code]...
I have a MyObject; myObjects as List(Of MyObject) and a delegate Comparison(Of MyObject) that uses a lot of comparison functions (ByA, ByB, ByC etc) Ã la:
Shared Function CompareMyObjectsByName(x As MyObject, y As MyObject) As Integer
Return x.Name.CompareTo(y.Name)
End Function
[Code].....
Sub Sort()
ReDim RollsCC(NumOfPlayers - 1)
For N As Integer = 0 To (NumOfPlayers - 1)[code]....
Here I am creating a temp single dimensional array, merging my 2d array into it, and then attempting to sort it by Rolls(N,1), which is a integer 1-6, Everything seems to be working right with the exception of this.
RollsCC.Sort(RollsCC, 0, 1)
How would one specify a numeral sort based on the first character in the string? im aware that I am switching Rolls(n,1) and Rolls(n,0) information during the sort.
Currently my ListView sorts items by image.index. So 0 is at the top, then 1, 2 and so on. Think of it as an IRC chat room nick list. Ops at top then the rest are sorted alphabetically
[Code]....
I am trying to sort an arraylist using .Sort() but am not sure what to put in the () for the field/column I want to sort on. Here is the portion of my code that creates the array from a SQL Query
[Code]...
How can i add MenuStrip Look Like Below picture ? My MenuStrip is below picture :
View 1 RepliesClient 1[INDENT]Project 1[/INDENT][INDENT][INDENT]Project 1 Task 1[/INDENT][/INDENT][INDENT][INDENT]Project 1 Task 2[/INDENT][/INDENT][INDENT]Project 2[/INDENT][INDENT][INDENT]Project 2 Task 1[/INDENT][/INDENT][INDENT][INDENT]Project 2 Task 2[/INDENT][/INDENT]Each entry is clickable, even if it has children. In the above example, I can select the Project 2 menu item.My problem is that when I hover over Project 2, it automatically expands Project 2 Task 1 and Project 2 Task 2. When I click on Project 2 Task 1, the menu "closes up" and all entries disappear which is what I want. However, when I click Project 2, the menu does not "close up" and all of the entries are still visible.
View 2 RepliesI dont know what the go is but i have check all the properties and everything but nothing changes.I have a combo box and when i change the selected value i want the menustrip to focus on the form but instead the menustrip stays up.
View 2 RepliesI'm not sure if I already saw a trackbar inside a menu strip, but there is a way to add it? Or even a numeric dropdown?
View 2 RepliesI have a MenuStrip control and when I right clicked on it and selected "insert standard items", it created a few functions. There are a few options there that I would like to get working: Cut, Copy, Paste, Delete, and Select All. I presume that for what I want, I'd need to make my own classes for each function. (ie: Cut class, Copy class... etc.)
I would like to be able to do something similar to the example below:
CODE:
Im doing this in Vb.net On Windows 7 .
Code to add a child/sub option to one of the items in a menustrip (using VB.NET)?[code]...
View 10 RepliesI am developing a window based application. I want to show my menu to be separated by a vertical separator. Just like this:
View 6 RepliesIm creating a desktop app with multiple forms. My ideal aim is to create 1 MenuStrip to use throughout the different forms (the same MenuStrip) appears on the different forms. otherwise I'll be copying the MenuStrips from 1 form to another and copying the Event code. What is the best way of doing this? I've created UserControl, put my MenuStrip on it along with me Code, then I load an instance of it whenever a new form loads. This seems to work fine until I want close the Main Form. I've tried ' Me.Hide ' but that just hides the UserControl. So the MenuStrip appears on Form A, when i click a Menu Item I want it to close Form A and open Form B.
View 2 RepliesIm creating a desktop app with multiple forms. My ideal aim is to create 1 MenuStrip to use throughout the different forms (the same MenuStrip) appears on the different forms. otherwise I'll be copying the MenuStrips from 1 form to another and copying the Event code
I've created UserControl, put my MenuStrip on it along with me Code, then I load an instance of it whenever a new form loads. This seems to work fine until I want close the Main Form. I've tried ' Me.Hide ' but that just hides the UserControl
So the MenuStrip appears on Form A, when i click a Menu Item I want it to close Form A and open Form B
I have a windows form and in form have a menustrip with toolstripmenuItem.I write codefor toolstripmenuItem and work with it but dont see menustrip and toolstripmenuItem in design stauts and run status now. and have not error.what dont display menustrip?
View 11 Replieshow can I change the menustrip style in VB.NET 2010? I want to change it to Windows 7 style but I don't know how to as I'm a beginner. Is there any solution for this? Now my program's menustrip is like the screenshot I attached...
View 8 RepliesI m new to VB. I have created a form with Menustrip and want to reuse this menustrip in other forms. Could anyone plz tell me how to do it ?
View 8 RepliesI am using vb.net 2008. I have a MDI form with a menu strip added. From different menu's i calling related Exe's and opening in side the MDI form. In this case setting of MDIparent properties to the child form (Exe) in not possible. In my Exe i am reading my MDI windows handle and using the setparent API function. In this case the exe is opening inside the MDI below the titile bar but it is hiding the menu strip. (In vb6 it is working fine - Means the exe opens below the menu strip). Is their any way opening the exe below the menustrip or toolstrip.
View 1 Replies