|
Don't know if 've understoog your application but why don't you use an Imagelist to store and load images. It's easy to access and use.
|
|
|
|
|
i want to make a custom checkbox that uses several predefined bitmaps. how and where do i store the images and call them. i want to be able to use in any project. i have come close but the project i want to use it in has to be add to the usercontrol solution or it will not work.
Mark Thibodeaux
|
|
|
|
|
I bound some textboxes to a well-defined datatable. By well-defined I mean I created each columnn of the table manually and defined the dataTypes of each column.
If I try enter in non-Date data into one of the textBoxes bound to DateTime Column, the original date value gets reverted once I change focus. This is GRRRREEAT! but how do I alert the user on why this has happened. I need to somehow intercept this event.
|
|
|
|
|
someone please send me an article/link to one on validating data entry controls for vb.net forms.
I have an application with 5 different developers working on their own forms. The challenge is to create some sort of base class that will force the developers to use the same validation controls and or regular expressions on string textboxes, date textboxes, integers and so forth.
|
|
|
|
|
|
I am an experienced VB.NET programmer who has a 13 year old son who wants to learn to program during the summer. Having been homeschooled for several years he is good at independent learning. Does anyone have any good recommendations for books, web-based classes, video tutorials, etc. that do a good job of teaching beginning programming using VB.NET? He could study it during the day, and then I could tutor him after I get home from work. FYI, he is an A student and learns quickly.
Mark Kettlewell
|
|
|
|
|
Hi Mark,
I just purchased and finished reading this book Mastering Visual Basic.NET[^] from Sybex. The coding starts out very basic and moves through VS.NET and the VB.NET classes. The coding may be just barely over his head at 13, but if he's making A's in school I'm sure the reading context is right at his level.
Otherwise, I have read several of the "Dummy" series of books relating to VB.NET, ASP.NET and Database technology, all of which where great reads because the content is almost humorous but can teach even the most veteran of us a few things here and there.
Hope this helps!
Scott Page
|
|
|
|
|
Thank you very much!
Mark
Mark Kettlewell
|
|
|
|
|
I recomand you to begin learning C# because it is more strong,security and logical language then VB.NET....
I was been programmiming in vb.net but i paste in C#.
here is one link http://www.projectw.org here u have to register and search for books, applications, and much things.
I hope this helps to you.
|
|
|
|
|
*sigh* I was hoping to recommend you learn C#....
The best thing to give him is the URL to this site, and a decent book. If he can ask you questions, and ask them here, then he should be right. Video tutorials/web based classes are a waste of time for anyone with more than 3 brain cells IMO.
MSDN samples are another good place to start.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks. As a matter of fact, I do know C# and can develop with it. Before .NET I have about 10 years experience teaching and developing in C++. However, for various reasons, I simply prefer VB.NET - just as some prefer Mac's or Windows environments.
I have never used a video tutorial, so I appreciate your warning.
Mark
Mark Kettlewell
|
|
|
|
|
Kettlewell wrote:
I have never used a video tutorial, so I appreciate your warning.
A video tutorial is like a teacher you can't ask questions And online classes aren't going to offer any more than posting questions here will, IMO.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I was wondering if there is a way in VB6 to programmatically prevent a listbox from droping down?
|
|
|
|
|
I own a licensed copy of Visual Basic 6.0 and recently reloaded Windows XP and Visual Basic 6.0. I cannot use F1/Help - it gives message: "The MSDN collection does not exist." But Visual Basic 6.0 did not come with a MSDN CD/CDs. I had this capability before (Press F1, Help opens).
I know that MSDN is available online, but I need it on the road, local on my machine. I have searched long and hard for answers, but can't find how to re-install MSDN with my Visual Basic 6.0 package or anything online.
I'm sure I'm not the first one to have this problem. It might be useful to provide a solution on this site.
I am running Windows XP with SP2 updates. My Visual Basic 6.0 package includes one CD, plus Visual Studio 6.0 Service Pack 4 (I downloaded Service Pack 5). No MSDN CD.
When I run the setup.exe from the Visual Basic 6.0 CD, all the options I get are:
Microsoft Visual Basic 6.0
ActiveX
Data Access
Professional Features and Tools
Graphics
Tools
When I "Change Option" Microsoft Visual Basic 6.0, I get the following "sub"-options:
Microsoft Visual Basic Core Files
Package & Deployment Wizard
Wizards and Templates
WebClass Designer
Nothing about documentation. That won't happen, I suppose, unless I had a MSDN Libary CD, which the install asks for at the end of installing Visual Basic 6.0. But I know I never had a MSDN Library CD. How, then, did I have it working before? That is the current mystery.
I'll continue to be on the hunt for a solution.
Bryan Borough
Orem, UT
|
|
|
|
|
"But Visual Basic 6.0 did not come with a MSDN CD/CDs" ???
Every version I have seen, Did come with the CD's
I don't know that this is of much help to you.
sorry,
progload
|
|
|
|
|
You'r going to have to find that CD. The current versions of MSDN no longer integrate with Visual Studio 6, or any sub-version thereof.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks, Dave and progload - I guess from two sources, I need that CD. I think I have a copy of Visual J++ from the Visual Studio 6.0 line - it's stored away in a trailer. Perhaps that box should include the MSDN CD with Visual Basic 6.0 Documentation?
Bryan
|
|
|
|
|
MSDN isn't really published on a "per language" basis. It's, AFAIK, all of nothing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to create an iframe server control that has a src that can be set in code behind, and also that checks to see if the client has changed the src and control will maintain the current src on postback. Here is my code:
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.ComponentModel
Namespace IMCControl
<defaultproperty("src"), _
="" toolboxdata("<{0}:iframe="" runat="server">")> _
Public Class IMCIFrame
Inherits System.Web.UI.WebControls.WebControl
Implements INamingContainer
Implements IPostBackDataHandler
#Region " Windows Form Designer generated code "
'UserControl overrides dispose to clean up the component list.
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container
End Sub
#End Region
Private m_src As String = String.Empty
Public changed As EventHandler
Public Sub New()
MyBase.New(HtmlTextWriterTag.Iframe)
End Sub
<bindable(true), category("navigation"),="" defaultvalue("")=""> _
Public Property [src]() As String
Get
If Not viewstate("IFsrc") Is Nothing Then
m_src = viewstate("IFsrc")
End If
Return m_src
End Get
Set(ByVal Value As String)
viewstate("IFsrc") = Value
End Set
End Property
Protected Overrides Sub RenderContents(ByVal writer As System.Web.UI.HtmlTextWriter)
MyBase.RenderContents(writer)
End Sub
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
If Me.src = String.Empty Then Exit Sub
MyBase.Render(writer)
End Sub
Protected Overrides Sub AddAttributesToRender(ByVal writer As System.Web.UI.HtmlTextWriter)
writer.AddAttribute(HtmlTextWriterAttribute.Src, src)
MyBase.AddAttributesToRender(writer)
End Sub
Public Overridable Sub RaisePostDataChangedEvent() Implements IPostBackDataHandler.RaisePostDataChangedEvent
OnChange(EventArgs.Empty)
End Sub
Public Overridable Function LoadPostData(ByVal postdata As String, ByVal collection As Collections.Specialized.NameValueCollection) As Boolean Implements IPostBackDataHandler.LoadPostData
Dim origval As String = src()
Dim postedval As String = collection(postdata)
If origval = String.Empty Or origval <> postedval Then
src = postedval
Return True
Else
Return False
End If
End Function
Sub OnChange(ByVal e As EventArgs)
If Not changed Is Nothing Then
changed(Me, e)
End If
End Sub
End Class
End Namespace
My problem is that the IPostBackDataHandler subs and functions don't fire. and the only src that the iframe remembers is the one initially set on code behind, and any subsequent changes to the src property made on the client (by javascript) are lost on postback. PLEASE HELP!!! Any and all comments are appreicated!
|
|
|
|
|
Hello everyone,
How can i check the Compression of any TIFF file in VB.NET. I want to find out the Compression of the TIFF file like is it LZW, CCITT G4/G3, JPEG e.t.c
Can enyone help in this issue, Thanks in advance.
Khurram Rathor.
|
|
|
|
|
check this, it's in cs, but it may be of help to you.
http://www.codeproject.com/cs/media/photoproperties.asp
|
|
|
|
|
Here the code im using to print the word document but I need to know how to have it just open up for preview.
What do i need to change:
Function PrintDoc()
Dim WordObj As Object
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open "C:\Wordtest.doc"
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
End Function
Thanks For any Any Help
Nathan
|
|
|
|
|
WordObj.Documents.Open "C:\Wordtest.doc"
change to:
WordObj.Documents.Open "C:\Wordtest.doc",,Readonly
wordobj.printpreview will open it in print preview view (needs to be after the above line).
Also a small tip.
I know whan dealing with office automation you really need to use late binding because you can never really be sure what version of word the user will have, but it does help to use early binding when developing then change it later. With such a large object model as office has the intellisence really helps you a lot.
Jonathan
|
|
|
|
|
I tried that and all I got was a Runtime error that said PrintPreview is nat a method. Thanks for any more help. still kinda new to this whole VB thing thanks.
Nathan
|
|
|
|
|
What version of office have you got?
Try referenceing the word object library then either have a look in the object browser or use the intellisence. I am using office 2003 and it works fine.
Jonathan
|
|
|
|