Make Form Variabe Nd Get All Properties Of Stored?
Apr 26, 2012How can i creat a form variable,, and store a form name in it and to use this variable as form so this variable can have all controls of stored form.
View 3 RepliesHow can i creat a form variable,, and store a form name in it and to use this variable as form so this variable can have all controls of stored form.
View 3 Replies[code]I want to make the Properties Window to update the properties for X and Y at each MouseMove, so they become immediately visible for the user.
View 2 RepliesI's there a way that I can access the properties of all controls stored into my array of object using LINQ.
Public Sub DisAble(Byval ParamArray ctrlCollection() As Object)End Sub That is my sub routine where im trying to reset all controls that will stored into that object of array. But im trying to attain that using LINQ so I wont use any loops to access all of it.
How to change all properties of a form to properties of other but don't change important properties like Owner,Handle, OwnedForms, Parent,HasChildren,Controls and ... .I have a child form that i want it to provide controls of Form.The background form provides Aero frame and child form is a transparent form in it.I want it because I want to draw buttons with system style in Aero in Windows Forms.This is my own code but it does not work good (ForeForm is child form):
For Each Propertry In ForeForm.GetType.GetProperties()
Select Case Propertry.Name
Case "AeroBackgroundEnabled", "FormBorderStyle", "TransparencyKey", "Parent", "Owner", "ShowInTaskbar", "Handle", "HasChildren", "OwnedFo[code].....
Additionaly:I wrote a great Aero Form.I don't publish current version (1.2) that supports Aero Blur,RealTime Aero Color change,extend Basic theme?
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
I need a code that can allow the login form to search for pin number stored in another form example when a customer enters the pin number and clicks ok button the login form searches if the pin number exists in the bank details form
View 7 Replieshere willing to educate me about stored procedures, populating the datagridview, and using some bindingsource with 4 butttons, <<,<,>,>>i'm a newbie vb.net programmer willing to learn the use of stored procedures..
View 4 RepliesSo I was wondering if anyone has done their own Forms (inheriting windows form and editing the properties) and if so, what your finished result was. And, if you are willing to post a screenshot of your finished result, that would be sweet! Trying to get some ideas of what can be accomplished with customizing the default form.
View 1 Repliesam trying to figure out why my 2nd form is not displaying the value i recived in my first form.The code for the first form is:
Private Sub scannerOnCom_DataReceived(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs)
responceBack = scannerOnCom.ReadLine
[code].....
I want to enable application framework using Form2 as the startup form. The Startup form: combo box lists Form2 when enable application framework is unchecked, but when checked, I get the message that the startup object must be a form, the project then compiles and shows another form as startup. Declarations for Form2 are as follows:
[Code]...
Is there a succint way in vb.net to create an array or similar of each of the properties in a list?
E.g. If I have a list of 'a' and each 'a' has a property 'b', I want to create an array which contains all the 'b's, in the same index positions as the original list.
I have a custom list control, using labels to display content.How can I add a list property to the control so I can inject items into the custom listbox?I know how to make properties for strings etc. but I can't get it to work to make a list property...
View 1 RepliesI'm wondering if it's possible in VB.NET to make similar properties call one generic one?A sentence doesn't explain it well so here's a code example.I have a bit field defined like this:
<Flags()> _
Enum E_Operation As Integer
Upload = 1
[code]....
I am working on a bitmap class module in Visual Basic 2010 that has an option to create a graphic grid on the bitmap.
[code]...
ok basically i was trying to make a Control that exposes its protected properties to the public. example, you could call the protected DoubleBuffered property publicly. the problem is that this class called ExposedControl must be compatible with the type System.Windows.Forms.Control, meaning i should be able to create an ExposedControl using an existing Control so i had something like this in the constructor.
Public Sub New(ByVal control as Control) Me = control
[Code]...
I am just learning about making classes and need to make one with 2 properties.Below is the beginning of a class for ingredients in a coffee machine.But I want sugar and water to also hold name (string) ='sugar' and number(integer) = 4 so its like thisIngredients.coffee.name or ingredients.coffee.number[code]
View 3 RepliesI dragged and dropped a label from the toolbox onto a form (Label6) and stupidly went to the properties window and set "Text" to blank. Label6 shows when the program is run using F5 but does not show on the design surface if I want to move or remove it. How do I get it back onto the design surface or remove it completely?
View 2 RepliesI have a stored procedure that clears student accounts to showed that they have paid their bills. I am trying to create a form in vb.net that allows them to enter a parameter and then execute the stored procedure.
View 9 RepliesHow do i re-run the whole form again without losing the values stored as it run?
[Code]...
But they don't seem to work. Once the form reaches the end (after the user press enter), it just display a blank screen. But what i want is for the form to start all over again without losing the values. Is there a way to do that?
I'm trying to figure out how to set the form's location/size before calling the .show method. I figured out the location part, but still can't figure out the size part. No matter what size I set the form to in the designer, it never uses that, so I figured I would set it with code right after setting the location.
'set location before .show
Form2.StartPosition = FormStartPosition.Manual
Form2.Location = New Point(103, 449)
[code].....
I have put together an array for data from two text boxes to be stored in. This works fine at the moment. I am now looking to build some form of array that will have some stored data in it already, so that someone can select the information they require from a listbox.
View 7 RepliesI am triggering a stored procedure from code inside a form and I am wanting to return any TSQL errors back to the form. I have written code to do it but when I force an error in TSQL for testing, my vb.net code drops to debug mode with "SQL Exception was unhandled" error.
[Code]...
I have an application that I'm building which pulls dates from a database. The start value is stored as payPeriodStart date and I add 7 days to get the end date. What I need to know is, is it possible to store those values and pass them to a Stored Procedure? Currently my stored procedures have "static" dates in them ie[code]...
View 14 RepliesI am in need of being able to show a user the contents of a Oracle stored procedure. I have no idea of how to go about actually getting and then displaying the code contained in a stored procedure. Does anyone know of a way? I know how to call and execute a stored procedure but is about it. I am developing using VB.NET 2010 with Oracle 10G as my back end.
View 3 RepliesI'm new in development in vb.net IDE, and I need your advises on how to create multi form in one screen like a project properties screen in VB2008 IDE, thus when you you go to Menu Project -> Project Properties... you can see that screen is divided into two panes the left one for options to choose and the right one for configuration and preferences.I need to know how to achive this and how to create similar to that thus if you choose any button from left the form content changes at right (ok is this single form and all controls were set to invisible /visible or is it muliform programming. how can I change the Left pane with Treeview control and choose my option from there.
View 10 Repliesis it possible to customize the properties of a form? for instance, i would like to start a new project, and have my form load center screen, not windows default location from the startup location, among many other options.if this is a possibility, from within vb.net, which i was not able to find and customize, do advise on how to do so.if i have to hack vb.net, i would not know where to start to do so, but how would i begin? what file do i need to modify in the program files folder of vb.net? this, by any means, i would not find it as a hack to destroy someone's work, but to better the software for the user.if a moderator reads this post , do consider my concern for customizing vb.net as vb.net customizes for the users..what i mean, is that, if this option is not available, mods, look into providing an update for vb.net to allow the customizing of the properties for forms/toolbox items and do reply to this thread w/a link.
unless vb 2o10 provides this option, which i doubt, and if it does and there are skins for vb.net 2o1o to change the tab look to the 2oo8 vb.net look, do not advise to look toward the 2o1o version.. personally, the 2o1o tabs are ridiculous, the font in the code window could have been the same as vb.net 2oo8 also.
I'm trying to write a routine which will produce a list of the values of some of the properties for every control that I've placed on a form. I can do this manually by looking up the names of each of the controls, but I'd rather use a construct like this -for each formname as string in xxxx
for each ctrlname as string in yyyy(formname)
....
next
next
However, I'm having problems with the various examples of this code that I found in the library. I'm not sure whether it's because I don't know how to set up the syntax correctly or this sort of construct isn't possible in this context.
I have multilingual application that was done in VB2005.We recently had a request to translate the application to Arabic (Egypt), so I have been happily running through all of the forms and changing the layout for Right to Left format.I have 2 forms that are problematic though.On one form, whenever I select Arabic (Egypt), it will automatically switch the selection to Arabic (Saudi Arabia) and try to add an ar-SA resx file.On the other problematic form, if I choose Arabic (Egypt), the IDE will automatically select Chinese (People's Republic of China), then copy the contents of my ar-EG resx file into the zh-CN file, overwriting all of our Chinese translations and layout changes with the Arabic ones.
View 1 Replieson a new project - windows form app i would like to bring a simple stored procedure from a server ( with credentials ) with one parameter.
the stored procedure is on the : "SERVER" "database" "sa" "sa" and it looks like this:
sql
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
[Code]....
also if i could select the client name from a drop down list would be verry nice. the select for the name is : "select name from clients"
The results could be exported into excel or a screen. ( after selecting the client in the form , another button for export )
I am developing a complicated search form, and I would like to know best method of passing search criteria to stored procedures.Possible options that I know are, 1) Create sql statements in Visual Basic and send statements to SP as strings to execute2) Pass search fields to stored procedure and build command in SP (Stored procedure) in database?
View 9 Replies