How do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work?[code]...
how do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work??
The classlibrary UI:
Code: Option Explicit On Imports System Imports System.Windows.Forms
[Code]....
The reason I want to do this as I want to reduce the codes as it is too much for the program to read it everything.
i hv create dll through classlibrary using c# now i hv to add it into website project,how can i ? it gives me error when i m trying to register dll that entry point not found
I have a ClassLibrary, MillerClassLib, with an item namespace, Validation, which contains two namespaces, ByteEditor and Validator. I created a new project, Login, which is a form for validating a user is authorized to use various projects.I've debugged it and compiled it into the bin.Release of Login. I want to move the namespace/dll/source to MillerClassLib. What are the steps to move it.Terry 01
I'm having trouble running a method that i wrote in C# via a classlibrary dll. In C# running the method is extremely simple, but I dont know how to write Visual Basic code that will do the same thing. Here's the C# code that i need to translate into Visual Basic:
ClassLibrary2. Program test = new ClassLibrary2.Program(); test.CreateProj();
All i need to do is run the CreateProj() method which belongs to ClassLibrary2.Program, and in the above code i do this by making "test" a new ClassLibrary2.Program object, and then i run the CreateProj() method through test. I dont know much about Visual Basic, but i know that i have to write the code in "Public Sub Main()". how to run the CreateProj() method in Visual Basic code.
i wants to create an dll (classlibrary) file for displaying selected data form database by using a gridview control.for this iam creating an dll file , in that how to declare gridview1 [code]
I have trouble changing notifyicon text, when I clicked the menu item button to read the codes from the classlibrary and change the notifyicon text but nothing have changed.
Here it is classlibrary codes:
Option Explicit On Imports System.Runtime.InteropServices Imports System
I've created a VB.Net ClassLibrary with a UserControl in it. I can load it from an HTML page and call the methods that I created. This works as expected. I've tried several examples for how to raise an event from the VB code to the js caller, and none of them seem to work (I'm using IE7).
I'm trying to make a label control transparent over a Panel control.However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the form�s colour as blue.However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.
i have a splitter control on tab 2, a grid and a scheduler control on tab 3..looks fine...i save it....close the form...reopen the form, and the controls are all resized and moved around on me....and not for the better.
wierd thing is that when i run the app, the controls are placed properly, but design time is totally f&*ked up.I know this one isn't me. is it the tab control? should i just do toggle buttons at the top and show/hide my own panels? this is just too freaky to deal with. is there an easy work around for this?
I have a winform project which I'm converting from a web project. In the web project I display "Notes" data from a data table into a table in three distinct parts. First the header, where the text color is based on the priority of the note. The second part is a short description of the note content and the third part is the complete note. The question I have is what is the best control for this in winforms? I guess I could use a text box and use it like a web text area. The data will be read only and will need to scroll since the amount of real estate on the screen accounts for only about a third of a 1024 X 768 screen.
IDE: VB.NET (2008)I have an mdi form in my program. As usual this mdi form acts like a container to several child forms. However, I need to implement a tabbed system so that my forms rather than appearing in mdi form should appear in a tab page.So I inserted a tab control on my mdi form and when a form is added I say TabPage1.Controls.Add(Form). It seems to be working okay until I found out that now my form is like a control so methods like Me.GetActiveMDIChild etc won't work.
Generally when a particular child form is selected we can know when we see the titlebar. In this case because forms are added as controls there is no difference in the titlebar of a selected or non selected form.Can I determine which form is selected. Something like Me.ActiveMdiChild. I can go through control collection of a tab page to get a list of forms but figuring out which form is selected is something I don't know.
I have the code which checks if there is a selected tab
Private Function GetBrowser() As WebBrowser If TabControl1.SelectedTab IsNot Nothing Then For Each c As Control In TabControl1.SelectedTab.Controls If TypeOf (c) Is WebBrowser Then Return c
I have 3 forms. one main form with two buttons, that need to open one of the other two forms on clicking the button. Now when say button 2 is clicked then form 2 should open and also form form 2 person should be able to click back and come to main form.
I'm quite new at this but I'm trying to change the look of a tab control other than the options provided in the control's properties. In short I want to create a large tab that will fit a picture but I don't know how to change the size of the tab. I also want to make the control look somewhat different than what the control provided with VS.NET looks like.
What I need to know is how to create a custom control that operates the same as tabcontrol but looks different than the traditional control provided with VS. I tried looking up how to create a custom control but all I could find was how to create one programatically and I don't know how it would apply to a tab control. Maybe the only way to do it is programmatically but I would rather play with the control in the designer than having it appear only at runtime.
actually i am using "MonthCalender" control in VB.net, i have 12controls on my form, i want each control to display different month,so i can have a full year calender, but i am unable to change themonths of the control. They all are displaying current month,
i have 2 windows forms, form1 and form2.form1 has a label called "label1" and a button called "button1".This button when pressed, opens up Form2.Form2 has a textbox, "textbox1" and a button. This button, called "button2", when clicked does this:form1.label1.text=textbox1.textThis used to work PERFECTLY, but now it does not work! i dont know what went wrong, and ive made a lot of changes to the project so i cant track the last time it worked.
I'm new to non internet programing. But I got to start somewhere. So i'll try and make this simple I have a MDI parent form with a tab control section. From a link in the toolbar i would like to open a diffrent form in my tab section. This is what I figured out so far if its even close.
In my app I have a pause and continue button. I capture the last active control when pause is clicked, change the Backcolor to let the user know where they were, from blue to red and leave the cursor there. What I would like to do without disabling and enabling all the controls on the form is to keep the cursor in the LastActiveControl no matter what until the continue button is clicked. In other words, tab, enter key, mouse click or nothing will make the cursor move until continue is clicked. Sound possible?
I have controls on a form, bound to an SQL data source. The information populates the control well. When I change the text in a bound textbox, I want it to be reflected in the SQL database. When I change the text in the control, the DataSet is updated. Now I need to make the DataSet update the SQL table.
Does anyone know an easy way to produce a "Common Tasks" menu similar to the one in My Computer, Control Panel etc..I can't seem to find a control in the toolbox and it would be insanely useful for the app I'm currently writing.
my project is school management system. I want to design a form for admission,it has many field so i can't adjust all in a front form so i want to control scroll bar for this solution.
I am developing a windows app in VS2008 to be used along side ESRI�s ArcMap. Most ArcMap users will have dual monitors and I would like the user to be able to choose which monitor my app is loaded on to.
When I deploy the app using the standard install package, the app will load onto which ever monitor the user places the desktop shortcut. However, when using the ClickOnce method of deployment, the placement of the shortcut does not matter and the app always loads on the primary display monitor.
Is there a way to control where an app is loaded by code or any other method?