Set All Subforms' Icons Inheritate From Mainform Icon?

Aug 17, 2010

How could i set all subforms' icons inheritate from mainform icon?

i tried this - me.icon = form1.icon - in the subforms, but is not working.

View 1 Replies


ADVERTISEMENT

Create Icon File With Multiple Icons In It?

Jul 8, 2010

I've always had to use a program that does this stuff for me, but I'd like to just make my own program that does this. I've already got the individual bitmap images of the 3 sizes (16x16, 32x32 and 48x48) for the icon file and I usually find use some shareware program to create the icon file from the multiple bitmap images for me but I'm wondering if it's possible in .Net to create an icon file (*.ico) that contains multiple physical icons in it.

View 12 Replies

Listview Not Showing Icons When Launched From Desktop Icon

Oct 10, 2009

I have created a project that uses a listview associated to an imagelist (LargeImagelist, I have set the size as 100 x 75 and 32 bit depth), that displays information from a database along with an image from the image list. My listview is set to tilemode so that I can control the size of the tiles to get two columns of six. The image list is populated when the form is loaded from all the images in a specific folder, this part is working appropriately as I can get a picturebox working consistently that references an image from the imagelist.

[Code]...

View 2 Replies

VS 2008 Multiple Icons For EXE - Specify One Icon File For Projects?

Apr 28, 2010

I'm sick of my EXE files only looking decent in one view in explorer (ie List or Tiles etc) because I can only figure out how to specify one icon file for my projects so it has to be a specific size and if its too big it looks rubbish at smaller sizes in explorer, and vice versa if its too small. So how can I embed more than one icon file and make it automatically select the correct one to display in explorer depending on the view? I believe you can store more than one icon in an ICO file, so do you have to just combine the various size icons into one ICO and then explorer will automatically select the correct sized on? Or is it something you have to do within the VB project?

View 7 Replies

VS 2008 ListView Control Changes Icon Of One Item For All Items Displaying Icons

Nov 24, 2009

I have a list view control and for each item I set to display an icon it will change the icons for the other items that already have icons, to the most recently added icon.

Here is my code.

vb.net
Dim ext As String = Strings.Right(e.Item.Text, 4)
Dim fileandparam As String = IconsInfo(ext).ToString

[Code].....

View 2 Replies

Create Subforms With .NET?

Oct 5, 2005

What I "think" I want is to essentially be able to duplicate the functionality of an Access subform.I have a table with audit data in it, I also have a table with audit findings. The findings table is joined to the audit data table by its primary key(FINDING_ID).(ONE Audit_ID to MANY FINDING_ID's) Each audit may have several findings and I am trying to find the best user interface for this.I was thinking of having a main form with audit data and would like a subform where I could add, update, delete and scroll through findings.If there is a good way to create subforms with VB.NET?

View 4 Replies

Effect Of Openform On Subforms?

Jun 12, 2009

When I use a control button on a switchboard to open my form which has subforms, the subforms open in datasheet view. When I open the form directly the subforms open in single form/continuous form view - which is what I want. Is there something I can do to the event procedure to make the subforms open properly?

View 2 Replies

.net - Windows Shell API For Status Icons Beside File Icons

Feb 13, 2011

TortoiseSVN and Dropbox both have Windows shell extensions that make file icons within Windows Explorer show a small icon beside the main one, showing the file's status - has it been synced, etc How can I make my application show icons beside files like that using the Windows API? Or is there some file attribute to do that?

View 1 Replies

Make A Form With Icons That Have Labels Are Like Desktop Icons On Your Desktop?

Mar 20, 2010

I would like to make a image in the form representing the icon and a label below it to represent name but is there a easy way to do this.

View 2 Replies

"Subforms" Associated With Tree View In VB?

May 14, 2010

I am using VB Express 2008 to demonstrate my ideas for an improved UI for an existing product for my colleagues at work.The current UI has a certain page with ten tabs, allowing the user to define up to ten "things". The available choices for each of the ten "things" are all the same. On each of the ten tabs, there is a checkbox to enable that definition. Generally, a user will never use more than 5 or 6 unique definitions, the rest will remain disabled.

So far, my prototype has a tree view control with one branch to contain this list of definitions, Add and Delete buttons. My idea is: there is one sub-branch to start with (corresponding to the first tab in the current UI); if the user wants addtional definitions, they click Add and other branches are added to the tree view, up to maximum of ten.

I think I should be able to create a "class" that has a sub-UI (like a sub-form in Access) along with behavior code, that can be instantiated with each press of the Add button; each instantiation's settings can be set independently and is displayed in the main UI form )in a panel or frame) when selected in the tree view. For example, suppose the user Adds to make a total of three definitions: the tree view now has three sub-branches, each of which presents the same sub-UI with settings that can be set specific to the selected sub-branch. I'm sure it's possible but not sure how to do it.

View 1 Replies

Hiding Mainform In Mainformload?

May 7, 2011

[code].....

View 1 Replies

Make My Mainform Invisible?

Mar 10, 2010

I made a birthdaylist. You can store birthdays in it, and it will alert you on the day a person has his birthday. To do that the program has to startup when the computer starts up, and give the alert if neccesary and then close itself again. This all works, but the mainform is visible in that period.

View 5 Replies

Using Hide Method To MainForm?

Jan 15, 2010

I'm trying to go to a different form my main form and while I'm using the selected form I want the MainForm to hide. I've put the code MainForm.Hide() at the top of the code of the JobInformationForm where I'm directing the program. I thought this would cause the MainForm window to hide. However, I'm getting an error saying Declaration is Expected. How do I use this MainForm.Hide() feature?

View 3 Replies

Application Startup MainForm Is Loaded?

Apr 1, 2010

I have mainFom and a subForm. what I am trying to do is application startup MainForm is Loaded

(2) in the Load event of mainForm. I am creating the SubFom and made it visible and also making MainForm disable

[Code]...

View 4 Replies

Dispose Form Opened In MainForm Tab?

Apr 19, 2010

I have a MainForm which has tab Control and several independent form. I open each Individual From in the tab of the main form. A "Close Tab" button on the MainFrom closes the current tab, its implementation is below.

This closes the current tab but what I also need is to dispose the From whose tab is closed but I am not sure how to get the instance of the form.'[code]...

View 2 Replies

Position A Messagebox In The Center Of MainForm ?

Nov 12, 2009

Is it possible to position a messagebox in the center of your MainForm instead of the center of the computer screen? This is really confusing for beginner computer users, if your mainform will be in the top left corner and the message box in the middle of the screen, it won't be very clear that the messagebox belongs to your application. (well to us it is, but not to old people).

View 3 Replies

Sharing Data Between Classes And Mainform?

Apr 13, 2011

I have done programs in the past with VB6 using the winsock control to receive data to be processed. I would like to do the same thing in vb.net but I am having problems. I have done numerous searches and consulted numerous books and articles, but haven't found the best approach for accomplishing the following.

I would like from 1 to 20 clients to be able to send a string to the server to be processed. It would be nice to if the clients could connect to same port and use async processes to open/accept more connections. One of the books (Visual Basic 2008 Recipes) has a recipe for creating "Multithreaded TCP Server that supports Asynchronous Communications".

I am trying to base my program off of that example and modify it for my application. The problem I am having is how to share data with the Main form and the classes that handle the communications. The TCP class has two classes contained in it. One class for listening for connection, beginning the accept client and the other class (clienthandler) for completing the connection and getting the data. I would to be able to get the data from the clienthandler class and post on the main form. I have trying to have a public property for the data but I think my confusion comes in because the clienthandler would be created new for every new client. The mainform would not know how many of the new clienthandlers were created etc.how get the data to the main form and clear the data when done. I have even considered putting data into MSMQ and having main form pull data out.

View 7 Replies

Windows Forms: LoginForm And MainForm?

Jun 14, 2010

Currently, I have a LoginForm that authenticates a user and it works fine. I have a MainForm, which is displayed if a valid username and password is entered. I have done this by using the following code in my LoginForm:Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[Code]...

Now this does exactly what I want except I fear it's a work around and it's not the best approach. Also, note that I am using Me.Hide() to hide the LoginForm, is there a way to show the MainForm and then close the LoginForm instead of hiding it? Doesn't Me.Hide() call creates an overhead?

View 7 Replies

Interface And Graphics :: MainMenu (Changing MainForm)

Feb 26, 2009

frmMDI is the main form, I want to be able to open a child form but change the mainmenu to go with that form. I am having a heck of a time getting this to work.

When I close said childform i want the main menu to revert back to the starting mainmenu.

View 2 Replies

MainForm And ChildForm TopMost Activated/Deactivated?

Feb 24, 2011

I have 2 FormsOne is my mainform, one is a "child" form.The childform has no control box.he mainform has a toggle button to show and hide the childform.

Private Sub ButtonShowHideChildForm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonShowHideChildForm.Click
If ChildForm.TopMost Then

[code]....

View 1 Replies

Programatically Obtain Icon From Resource Manager And Set To Form Icon Property?

Nov 19, 2010

I currently have the following code but I would like to get away from going to a physical location. If I have the icon as a resource, how can I programatically add the icon? I don't want to use the form's designer to do this.

Sub Form1_Load()
Dim ico As New System.Drawing.Icon("C:Resourcesicon.ico")
Me.Icon = ico
End Sub

View 2 Replies

Forms :: Check On App Startup Is Login Is Else Start Mainform?

Aug 13, 2011

I'm creating an app, with a splashscreen, loginform (just enter a name) and a mainform.With I use my.settings. Now here comes the issue I run into.The splashscreen should check (onload) if the my.settings.user contains any info, if it does, the mainform should be shown, if not the loginform should be shown. On my app settings I have splashscreen set to the splashscreen and the first form is set to login form.

[Code]...

View 11 Replies

Forms :: Close Form - App With Vb 2010 Which Holds A Mainform

Oct 24, 2010

I've made an app with vb 2010, which holds a mainform. On it is a menutoolstrip with button, when I click on that button a second form is opened on a second monitor and the button is being checked (different color).

When I click the button again, it is unchecked, but the form on the second monitor is still open, while it should be closed.

Here is the code I use:

CODE:

View 1 Replies

Programmatically Set Either A Splash Screen OR The MainForm When The Application Starts Up?

Jan 27, 2011

I know one can select Spash Screen as the application startup as per this illustration. I can't do that however because the application is called by another program which passes in parameters via Process.Start(). Depending on the passed in arguments, I need to either

Go Directly to the MainForm or Go First to a Splash Screen which will then to the the Mainform after 5 seconds.

I definitely need Step 2 above because of the slow startup time of creating an SocketConnection and the population of some Custom Controls only after the Socket connection has been established.

Would I use a startup class or module and then use that as the application startup 'form' which could be establishing the SocketConnection while also launching a Splash Screen?

View 7 Replies

Change Setup Icon - Globe Icon Or Any Suitable Image

Jun 4, 2011

My application icon looks ugly-like a paper and i would like to change it to something like globe icon or any suitable image.Am programming using visual studio 2005 and the program is written in vb.net.

View 1 Replies

VS 2008 How To Reference A Specific Icon Location In A Icon Collection In A Dll

Jul 28, 2009

I'm not sure exactly if the folder icon is in shell32.dll, but nonetheless if it is.Basically, whenever I come across a folder in a FileSystem list, I want to add the icon for a folder to the image list that I am using for the ListView. The problem is that I'm not sure how to reference a specific icon location in a icon collection in a dll.Is this possible with Icon.ExtractAssociatedIcon and shell32.dll?

View 14 Replies

.NET Icon Will Only Work In Small Folder Icon Option Only?

Jun 26, 2011

Got an annoying issue it's Visual Basic 2010 I changed icon where the assembly name.I got a good icon it has lots of sizes, or I tried diff sizes like 64x64 128x128 nothing seems to work I only see the icon when i do View > Details so it's small icons in the folder, but if i have view large icons It doesn't work. I even used the same icon on VS 2008 and it worked.

View 1 Replies

C# - Extract The 256x256 Icon From An Icon And Display It In .Net, Winforms, XP?

Mar 18, 2010

Here's the code that I use to extract the icon size that I want:

Dim i As Icon = My.Resources.Spectrum
Using i2 As New Icon(i, New Size(256, 256))
Me.PictureBox1.Image = i2.ToBitmap
End Using

This works from 16x16 up to 128x128 but for 256x256 it extracts the 128x128 icon. I tried 0x0, because I seem to remember that that is how the large size is stored in the meta data, but that didn't work either.

View 3 Replies

Getting File Icon - Error: System.Drawing.Icon

May 3, 2010

I'm attempting to remake the Explorer to customize it some more. I know how to get Name, FileSize ect. Getting the Icon is hard though.
[Code]
The code i'm using to Insert the Icon into a image, i'm getting this error: Error1Value of type 'System. Drawing.Icon' cannot be converted to 'System.Drawing.Image'

View 2 Replies

Icon.fromhandle Not Returning Proper Format Icon?

Nov 10, 2008

i'm getting this really strange error, or I must be overlooking something obvious. I'm using the following piece of code:Dim hwnd As Integer = GetWindow(GetDesktopWindow, GW_ CHILD) Dim myicon.As System.Drawing.Icon =Icon.FromHandle(hwnd)PictureBox1.Image =myicon.ToBitmap

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved