What Is The Best Reference Material On WPF Custom Controls

Aug 24, 2009

I currently do all development work in VB.NET 2008, winforms; but within 18 months will be switching to WPF (for better or worse). I have had great success using Matthew MacDonald's "Pro NET 2.0 Windows Forms and Custom Controls in VB 2005" book. This is an excellent reference focused entirely on the development of custom controls in windows forms. ( Many of the controls that I use have to have a very specific UI look and feel, so they end up being custom.

I'm looking for pretty much the exact same thing, except focused on WPF. MacDonald has a new book coming out on WPF in general ,but not on custom controls. Books are my preferred reference material, but any good web references.

View 1 Replies


ADVERTISEMENT

Can't Find Any Reference Material Online For These APIs

Mar 10, 2012

I'm having some problems with some API calls. I'm trying to return device driver information for a given device in device manager so I can access the available information and display it. I'm using a series of API calls which in turn populates a list with device driver objects associated with that device. The API calls fail. The problem is that I can't find any reference material online for these APIs so I can figure out what's wrong. [code]

View 1 Replies

Best And Easy Resources Material?

Feb 14, 2010

iam very keen to learn vb.net 2008 so please suggest me how to access world most and best free of cost reading material available on net for reference.and free best book available for vb.net 2008 on the net. there is any complete source code available for consideration.

View 2 Replies

Get Material For Program Tutorials?

Apr 9, 2010

How can I get free Materials on VB.NET that explain the basic functions used during programming?.

View 1 Replies

VS 2008 Custom Control Dll Reference?

Sep 11, 2009

In THIS Thread:NickThissen Said:Quote:It will appear in the toolbox even if you put it in the current project, instead of a control library project.No, it does not have to be in a control library, nor does it have to be a UserControl, to appear in the Toolbox. Any class inheriting (either directly or indirectly) from Control or Component will appear in the Toolbox. Since RadioButton inherits from Control, and your control inherits from RadioButton, your control inherits from Control too, so it will appear in the Toolbox. I have successfully created a pretty cool custom control. I Built the project and have added the a reference to the .dll form a new Windows forms project. It works great, as long as I do something like THIS:

Dim ThisControl As New MyCustomControl
ThisControl.Top = 40
ThisCOntrol.Left = 40

[code]....

View 3 Replies

Take A Bill Of Material File From A Customer In Xml Format And Import It Into System?

May 13, 2011

I need to take a bill of material file from a customer in xml format and import it into our system. The problem I'm running into is that the terms they use to describe the types of material may vary. So, for example, if they are specifying a piece of threaded rod, they may call it "THREADED ROD", "THREADEDROD", "THRD ROD", "THRD'D ROD" or some other variation. Another example might be rectangular tubing. They might call it "RECTANGULAR TUBING", "RECT TUBING", "RECT TUBE", etc. There will be many types of material besides these two that I need to catch. Once the program determines what the material is it then branches to the appropriate subroutine to do further parsing. I was trying to think of a way to use regex or the "Like" or "Contains" operators to do this. Here is one way I thought of using "Select ... Case" but it isn't very flexible & will only catch hard-coded terms:

Select Case material
Case "THREADED ROD", "THRD ROD" 'etc...
Case "RECTANGULAR TUBE", "RECT TUBE", "RECT TUBING" 'etc...
End Select

View 7 Replies

Listen To Recorded Material But Not Necessarily In Real Time - Copy File In Use

Oct 15, 2009

I have an application that continously records audio for several hours. I want to be able to listen to recorded material but not necessarily in real time. I have tried to just copy the file being recorded to a new file with overwrite and the copy obviously gets done (filesize changes) but when I try to listen to the copied file my player just 'blinks' and nothing more happens. If I however close the recording, the copy also gets playable. My idea is that copying a file in use just creates another file in use. If this is the case how can I close the copied file?

View 1 Replies

Asp.net - Iteratively Reference Controls By Name Pattern (.NET)?

Sep 26, 2011

Is there a way to iteratively reference an ASP.NET control based on it's name pattern? Perhaps by a "pointer" or something?What I have are a large set of comboboxes (each with an associated DropDownList and TextBox control). The DropDownList always has an item selected by default, but the use may wish to submit a NULL value. I come up with the following code to handle three cases: NULL, Existing Item, New Item.

'TextBoxControl & DropDownListControl should iteratively reference their
' respective TextBox & DropDownList controls by the actual control name

[code]....

The problem is, with so many comboboxes, I could easily end up with hundreds of lines of code. I wish to handle this in a more dynamic way, but I do not know if it is possible to reference controls in this way. Say I wanted to reference all the TextBox Controls and DropDownList Controls, respectively.

I can do string formatting with a given naming pattern to generate a name ID for any of the controls because they are all named with the same pattern. For example by attaching a specific suffix, say "_tb" for TextBox Controls and "_ddl" for DropDownList Controls:

Left(item.SelectedItem.ToString, item.SelectedItem.ToString.Length - 3) + "_tb"

Can this sort of thing be done in VB? Ultimately, my goal is to take the value entered/selected by the user, if any, and send it to a stored procedure on SQL Server for insertion into the database.

View 2 Replies

Reference ContextMenuStrip From Controls Collection?

Jan 6, 2010

I am writing a simple control translation function that reads an XML file containing control names and their localized text. Within the application, each time a form is loaded, it iterates through every control and tests to see if that control is defined in the XML file. If it is, it then sets the control text to whatever localized text is defined in the XML file.

There are some tests and additional requirements (i.e. nested loops) for TabControl and MenuStrip etc., but the control that is giving me the most trouble is the ContextMenuStrip.[code]...

View 7 Replies

Nant Vbc Build Error Loading Custom DLL Reference

Apr 4, 2012

I am having trouble trying to get NAnt to compile my project, which consists of a windows forms application, a utilities library (DLL) and a data classes library (DLL). The problem is that I can't get the main WinEXE application to reference the data classes library, which gets compiled as the second step, before the app is compiled.

[Code]...

View 1 Replies

VS 2010 : Custom Control DLL Reference Greyed Out In Toolbox?

Apr 10, 2012

I'm trying to add a custom panel to my toolbox using a dll file, but when I add it as a reference it only appears as greyed out - and this is only after I click "Show All" in the toolbox.Everything builds fine in the Class Library project I used to create the custom control. Here is the simple

Imports System.Windows.Forms
Public Class pnDoubleBuffered
Inherits Windows.Forms.Panel
Public Sub New()

[code]....

I build the project, open my main project where I want to use the control. Then I click "Choose All" from the toolbox and add the reference using ".NET Frameworks Components". I find my dll file and click OK. Then nothing is added to the toolbox. I manage to see the control greyed out when I click the "Show All" option.

View 2 Replies

Custom Tab Controls In .net?

Mar 27, 2010

i want to control my tab pages with custom buttons...now i want to hide my tabs from tab controls...

View 2 Replies

How To Add Custom Controls

Aug 1, 2010

I want to know how to add custom controls to vb.net.

View 6 Replies

Added Reference; Microsoft Internet Controls (COM Tab)

Jan 8, 2012

I was trying to make my program see if facebook.com was running in internet explorer.

I added the following

Private Function isFaceBookOpen() As Boolean
For Each ie As SHDocVw.InternetExplorer In New SHDocVw.ShellWindows()
Dim filename As String = System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower()
If filename = "iexplore" Then

[code]...

And added reference; Microsoft Internet Controls (COM tab) but i also need to add this reference; Microsoft.mshtml (.NET tab)

Problem is that i can't find that reference. BTW, I want the function to be triggered by a timer.

View 1 Replies

C# - Remove Id Tags From Controls That Don't Reference In Code Behind

Apr 3, 2012

I'm wondering about a feature in Visual Studio. Personally it bugs me when I open a solution someone else has been working on and it's full of Controls with Ids like "label27" "textbox3" etc. One of the first things I do is either rename them or remove them if they are never referenced in code behind (as is usually the case with the labels).

[Code]...

View 2 Replies

C# - When Using FormView With Templates, Reference Controls Statically?

Jul 18, 2009

Having:

<asp:FormView ID="frmEmployee" runat="server">
<EditTemplate>
<asp:TextBox ID="txtFirstName" runat="server" />

[code]....

is there a way to reference this control statically, without having to use FindControl?

VB.Net
txtFirstName.Text = "George"
C#
txtFirstName.Text = "George";

View 1 Replies

Forms :: Reference Text Controls In Other Tabs

Sep 2, 2011

i am building a tab control (using VS 2010 and 4.0 framework). on Tab 0, this works as expected:

Me.ddUE_B1.SelectedValue = Me.B1.Text <-- changes the combo box selection to what is in the label.

on the other tabs this does not work. when I do a messagebox to show, say, Me.Ea1.Text on Tab 1, nothing is returned.

Is there an issue with referencing controls on tabs that I am missing? In general, I will need to set combo box's value to what is in the database when the form loads.

View 3 Replies

VS 2008 Reference Form Controls With Variables?

Nov 14, 2009

This code passes a button name ("Button2") and a value (4) to be displayed on it. Can the "UpdateButtonName" procedure be streamlined by replacing the "For Next" and "If Endif" code with something else since the button name is already known? It shouldn't have to check control on the form to see if it is the one I want.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code].....

View 11 Replies

Why Does The Way In Which Reference To Another Class Change The Behaviour Of .Value Controls

May 15, 2012

In my code I use two classes. One contains the UI form, the other containsa method to write to a file. During coding I found out some behaviourwhich I don't understand. The code below shows (what I believe to be)the relevant part. The file writing part is substituted by a MsgBox for simplicity.I have the following controls in one form:

NumericUpDown
Button
With the following classes and methods:

[code].....

View 2 Replies

.NET For Each Exception On Custom Controls?

Dec 9, 2011

in VB.NET i have 2 custom controls, one is a TextBox and second one is a ComboBox.These have custom values like Bool _IsHidden and are added on runtime to a form.Now, at some point in the code I want to check if the _IsHidden is set to True or False and display that information. Since the user can edit this values when creating the control these are not set on creation.

So what I tried is:(all of this is on MDI Forms)

For Each frm as CustomForm in Main.MdiChildren If frm.MyName = calledBy Then 'this part is just to know which form called the form to create the object For Each cntrl as CustomTextBox in frm.Controls'DO Something
Next End if Next

Now.. if the first control is a custom ComboBox it thorws an error since it sees that it does not match the custom TextBox control..how do i get around this? By my understanding it should just go through all of the controls on the said form and just check those who match CustomTextBox control ?

View 2 Replies

Arguments For Custom Controls?

Nov 24, 2011

I've created custom buttons in a .dll and they work fine, so I thought I'd have a go at creating my own sort of listbox to replace the standard one in my applications. It's basically a panel with a few labels and a button (eliminating the need to select an item in standard listbox then click a seperate button). I want to add these panels to a panel on a form, at run-time, based on rows in a db.

If I try adding any arguments in the New() section of the class file it won't let me use the panel in my toolbox. Is there a way to pass arguments to custom controls, I need a new custom panel for each row in a db so need to pass an id to it to specify records; or even load the records in my application and create a new panel for each record, using info passed to it to fill in the labels on it. Or can I create the panel at run-time and refer to labels within the custom controls, setting their .text properties that way?

View 5 Replies

How To Create Custom UI / Controls

Mar 19, 2011

I would like to expand my knowledge of VB.NET and was looking at creating custom user interfaces or custom controls. The type of things I am thinking of is: [URL]s. How are those controls created? I imagine it involves using the existing controls in Visual Studio as a starting point, and altering them to suit your design?

View 2 Replies

Resizing And Custom Controls?

Dec 10, 2010

I'm not going to post my code for my transparentlistbox class, but here is a link to it.It's been working fine as is, until early this morning when I tried to set a different size.[URl]..For the longest time I placed a normal listbox control on a form and resized that, setting a new public variable of transparentlistbox to the same size/location as the original listbox, setting the visibility of the original to false, and adding the transparentlistbox to the form (me.controls.add).It looked like this:

[Code]...

Now, since I've moved some buttons around on my main form, I resized the original listbox control to be wider (same height though). When I tested, the transparentlistbox (code didn't change still set to original listbox size/location), the size was that of what I had the original listbox set to, before resizing?

So, I commented out all of the custom drawing/paint events/etc I could find for the transparentlistbox and tested, still stuck to the original size. I stepped line by line debugging and verified that transparentlistbox1.size=listbox1.size indeed matched the new resized size (but didn't actually resize)?

Last I did was comment out the transparentlistbox.visible and put back the listbox1.visible and listbox1 does indeed show with the new resized size? I'm not quite sure what to test next?

View 2 Replies

Use SVG In .net To Draw Custom Controls?

Nov 3, 2009

Is there a way to use SVG in vb.net to draw custom controls? Or any other way?

View 3 Replies

Reference Controls - Create A Class With Several Text Manipulators?

Jul 28, 2010

'This code usualy works when placed within the forms code, however I am wanting to create a class with several text manipulators. The error says System.windows.Controls is not defined

Imports System.Object
Imports System.Windows.Forms.Form[code].....

View 3 Replies

Reference Controls/properties In An Ascx Control (asp.net, Written In Vb)?

Jun 27, 2011

I have a user control that I'm adding to a webpage dynamically. The ascx has a couple of controls that I want to have access to at runtime. I can access the ascx itself, but none of the controls on the ascx are available. I have tried adding a simple public variable and also tried adding a public property to the ascx, but I am unable to get access to either of them at design time (compile errors). I added the following to the code-behind of the ascx control:

Public Property areaCode() As String
Get
Return iebEmpPhoneAreacode.Text
End Get

[code]....

View 1 Replies

Custom Config File Entries Generated When User Adds Reference To Dll?

Jun 5, 2009

Don't know if this is possible, but I'd like a config section to be generated when another developer adds my dll to their project. This way they don't have to look up in code or a doc as to what they need to put in their config file.

View 3 Replies

Adding Controls To A Custom Control

Jun 19, 2012

Is it possible to have a custom control (inherits from Control) and add sub-controls to it (like, a label for example)? Basically I want a composite control. I know controls can contain other controls, but if I try to add a control to MyBase.Controls, this doesn't work because that's readonly.

[Code]...

View 2 Replies

Create Custom Controls For Apps?

Oct 14, 2011

i need to create custom controls for my apps so how can I do that? Do I need a special software to do that?

View 3 Replies

Custom Controls - .net Inherits 2 Classes?

Jan 16, 2012

inherit from two classes in VB.net?We are developing Custom User Controls that inherits from say System.Web.UI.WebControls.Label. We are planning on implementing a bunch of these controls but they will share mostly the same additional properties. We are hopeful about centralising these properties.I have looked into interfaces but it seems they only 'contract' properties you need to implement.

View 2 Replies







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