|
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
|
|
|
|
|
Yea thats probably the problem then i Have office 2000.
Nathan
|
|
|
|
|
I have office 2000 at home. If nobody else has given you an answer i will try to have a look later (baby boy allowing).
|
|
|
|
|
Thank I think with your help I got closer its now WordObj.PrintPreview = 4 now if i could just get it to stay open. Thanks again.
Nathan
|
|
|
|
|
I know the the thing closing the word document is WordObj.Quit but if i remove this the document does not even try to open. So what do i need to change WordObj.Quit to equal. Thanks
Nathan
|
|
|
|
|
Make the word instance visible like this:
WordObj.visible=true
|
|
|
|
|
Hello i've got a problem with deleting a postion with deleting the current (or selected) member (view my member form in the project link below).
http://rapidshare.de/files/1970958/FP2_FilmStore.zip.html
I can add and view next or previous members but how do i delete the currently selected member????
Any ideas as im totally stuck and have no idea.
|
|
|
|
|
what are you talking about ? combobox ? listbox ? datagrid ?
does the control have an arraylist as datasource ?
ps:there is nothing comparable to what you talk about in the link you provided. is the link broken ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
For the link go to FREE at the bottom of the page, the next page (again at the bottom) you can download my uploaded app.
And the Members (control) are stored in arraylist. Although there is nothing in there to start with.
The user enters member details (and films) when the app is run.
|
|
|
|
|
You can use class ArrayList . It has a method RemoveAt() . Or if you prefer to stay with your current array then you can use Array.Copy to copy your array to another one then copy back. Array.Copy allows you to specify how many objects to copy, what positions to copy, etc; however, it seems like a bad solution. I prefer ArrayList but the downside of using ArrayList is that you have to cast from object to your class when you get an object from the array.
|
|
|
|
|
Can you give me an example of the array.copy as i'm a newbie also how would i know which one to delete??? If you can would you be able to give an example?
|
|
|
|
|
Here is the code using Array.Copy, although it's probably easier to create a loop and copy all elements in an array except the one you want to delete.
Dim str As String = "This is my original string"<br />
Dim originalArray() As String = str.Split(" ")<br />
'now to remove the fourth word: (index 3)<br />
Dim indexToRemove = 3<br />
Dim newArray(originalArray.Length - 2) As String<br />
Dim numElementsToCopyFirst = indexToRemove 'copy everything up to index right before the element to be removed<br />
Array.Copy(originalArray, 0, newArray, 0, numElementsToCopyFirst)<br />
Dim numElementsToCopySecond = originalArray.Length - indexToRemove - 1<br />
Array.Copy(originalArray, indexToRemove + 1, newArray, numElementsToCopyFirst, numElementsToCopySecond)<br />
'now replace original array<br />
ReDim originalArray(newArray.Length - 1)<br />
Array.Copy(newArray, originalArray, newArray.Length)
|
|
|
|
|
hey guy, you will have to be more clear (2nd time !!!)
where do you get the selected item from ? a combobox ? a listbox ? a datagrid ?
i ask this because an arraylist cannot be displayed directly on a form as it is not a control (it is only a container class).
SO, i understand you want to delete an element from an arraylist with its index, but where do you get its index from ?? (see the question posted previously on this post)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
sorry, the member is select using a next/previous button to switch between members.
So for example when i click next, the textboxes will fill with the info of that particular member; Name, address, postcode, ID etc.
|
|
|
|
|
harrysk wrote:
sorry, the member is select using a next/previous button to switch between members.
ok, so if i well understand (you explaination is not well detailled yet but i start understanding what you mean), you have a textbox that display a part of a list, and you move into that list with Previous/Next buttons. so, if you reach doing this, you also have an index variable to point to the element you want to display, right ?
this way, your index variable is positioned on the current element, agree ?
so, you can do the easy following thing :
Dim MyList As ArrayList
Dim MyIndex As Integer = 0
'You fill your list...
'You use your list...
'Then, you remove the current element :
MyList.RemoveAt(MyIndex)
and that's all...
was is so complicated to find by yourself ? maybe you don't know where to find ?!
well, you go to the MSDN, filter by Visual Basic, then search for ArrayList (its the members), so read there what seems to answer to your problem...
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
hi all,
i'm having a problem in my web application. i'm using vb.net i want to create a table or grid on my webform by clicking a button which is displayed on the webform. and on which i can enter the data. the no of columns and rows will be specified at runtime by the user by entering into textboxes. how do i do this. please help me.
|
|
|
|