|
Sorry for the late reply, time-zone difference and all. if the gmail doesn't work, send it to catpainter79 AT yahoo DOT com
"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.
|
|
|
|
|
I have been searching all over, but I cannot find a way to set properties like "Size" or "Font". Can anyone help?
Mike
|
|
|
|
|
That's because the ToolTip controls in the Shell Common Controls .DLL, that the ToolTip .NET Classes wrap, don't support changing the font. In order to implement new fonts and custom graphics, you would have to write your own ToolTip control, inheriting from the existing ToolTop Class and owner draw everything yourself. If your a beginner, I don't recommend tackling this.
But, if you want to do this, you can take a look at a couple of samples of this on GotDotNet:
Extended ToolTip (IExtenderProvider Sample)[^]
ToolTipClass - ToolTip with more features[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave,
Thanks very much for the link. As you noted, I can't change the font, but I was able to limit the width of the textbox.
Mike
|
|
|
|
|
Hello,
I am trying to initialize mssoap object in a vb macro but I get this error.Seems like the .wsdl file is not readable at all. I am using IIS 5.1 and winXP + MS Soap 3.0. I have installed all the DLL necessary and made configurations needed,
on the virual dir, read the docs on msdn but it still doesnt work. Someone please help !
my code is
<br />
WSDL_URL = http & "http://localhost/myapp/cfg.WSDL"<br />
WSML_URL = http & "http://localhost/myapp/cfg.wsml"<br />
<br />
Set soap_sql = CreateObject("MSSOAP.SoapClient30")<br />
soap_sql.mssoapinit WSDL_URL, "", "SqlSoapPort", WSML_URL <br />
<br />
error msg is:
"WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: Th
e download of the specified resource has failed.
HRESULT=0x1: Incorrect function.
- WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parame
ter is incorret"
|
|
|
|
|
I have always done this this way, hopefully it will help
Private m_strEndPointURL As String
Private m_strWSDLFile As String
'SOAP / SQLXML members
Private m_oNodeList As IXMLDOMNodeList
Private m_oSoapClient As New SoapClient30
Private Sub ConfigureSOAP()
'Location of the WSDL - XML catalog of the SPs
m_strWSDLFile = "http://localhost/SQLXML/SOAP?wsdl"
'Set the destination host - this is the URL to the server
'without the wsdl path so http://Localhost/MERCSQLXML/SOAP
m_strEndPointURL = Left(m_strWSDLFile, (Len(m_strWSDLFile) - 5))
'This method configures the various SOAP objects ready for use
Set m_oSoapClient = New SoapClient
m_oSoapClient.mssoapinit m_strWSDLFile
m_oSoapClient.ConnectorProperty("EndPointURL") = m_strEndPointURL
End Sub
'Call Soap
Set m_oNodeList = m_oSoapClient.Method(Args)
"If i was king cigarettes would be free."
|
|
|
|
|
thanks
but that doesnt seem to work for me
could it be something wrong with the IIS
I cant open the .wsdl file at all when typing
http://localhost/somedir/myfile.wsdl
|
|
|
|
|
your wsdl file url should be
http://localhost/somedir?wsdl
you need a ? not the direct path, try putting that in IE and see if it presented.
If its not it's your IIS VDs
"If i was king cigarettes would be free."
|
|
|
|
|
HI guys
I have a couple of questions on creating custom activeX controls. I have a customs activeX control with two constotutent controls An ImageBox and a label. I've exposed two properties namely Picture which corrsponds to the image boxes picture property and Caption which corresponds to teh labels caption.
At the moment I'm like setting the picture property by just passing it a string. But that's seriously not how it should be working I mean when you set the Image controls picture property you choose from a file dialog. My code is as below:
<bold>
Option Explicit
Public Event Click()
Private Sub Image1_Click()
RaiseEvent Click
End Sub
Private Sub UserControl_InitProperties()
With Image1
' .Picture = Nothing
End With
With lblRouterIP
.Caption = ""
End With
End Sub
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
BackColor = PropBag.ReadProperty("BackColor", BackColor)
With Image1
.picture = PropBag.ReadProperty("Picture", .picture)
End With
With lblRouterIP
.Caption = PropBag.ReadProperty("caption", .Caption)
End With
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("Picture", Image1.picture)
Call PropBag.WriteProperty("caption", lblRouterIP.Caption, "")
End Sub
'PROBLEM AREA
Public Property Get picture() As String
picture = Trim(Image1.picture)
End Property
Public Property Let picture(ByVal img As String)
Image1.picture = LoadPicture(img)
Call UserControl.PropertyChanged("picture")
End Property
Public Property Get Caption() As String
Caption = lblRouterIP.Caption
End Property
Public Property Let Caption(ByVal str As String)
lblRouterIP.Caption = str
Call UserControl.PropertyChanged("Caption")
End Property
it doesn't make any sense to return a picture as a string.
Also lets say that I want to create my own property for this active X control like uh the name of Status that can hold 3 values. How can I do that.
I've been using vb6 for a while but this is my initial attempt at activeX programming.
I'm using vb 6 and would greatly appreciate the help.
|
|
|
|
|
I don't understand your problem...what is it that you need? You want the user to be able to browse the windows to find the picture? If it's the case, it can be easily be done with the common dialog control...but what is that you really need?
|
|
|
|
|
Actually when I declare teh public Properties for the Picture element of the activeX control what sort of object do I pass to the property like in the following declaration:
Public Property Get Picture () AS ????
what do I get teh piucture as in what format a string or an image?
I also have another simple problem on how to create instances of the line control at run time through code.
|
|
|
|
|
The Picture component loads a picture file into its image. So to load a picture you usually specify the file name of the picture to be loaded...a file name is a string. So you need to GET the file name as string
Public Property Get Picture () As String
|
|
|
|
|
i am not able to handle events (SelectedIndexChanged) fired by a combo box inside a datagrid
this is in VB.net
can anyone help me
thank u
Srikanth
|
|
|
|
|
Hello,
I've a text box in a group box on a form and upon startup, this box is NOT enabled. My UI behavior is supposed to enable the box if the user double clicks on it (I cannot get messages from the box itself while not enabled). After a few hours of trying to find a method, I'm giving up and asking if anyone knows how to do this? I find it hard to believe that there's no "hit test" contained in the Rectangle or Point object types and that I cannot get a rectangle type directly from the text box itself!
thanks!
JennyP
|
|
|
|
|
By definition, the enabled property "Gets or sets a value indicating whether the control can respond to user interaction"-MSDN. It can't catch any user interaction, including the click, double-click events and the mousemove, mouseup, mousedown events that you may need to hittest. Try setting the read-only property instead. This makes the control able to receive user interaction but will still be uneditable. Good Luck!
|
|
|
|
|
Hello,
Thanks for the suggestion. I would rather not allow the user to tab in to the control (and any other UI features) associated with an enabled control.
In C++, there's hit test tools for obtaining the mouse position and comparing this to the object's rectangle and I can do most of this in VB, but cannot get the coordinates to match.... but I suspect that there is a simpler (and tried and tested) way.
thanks,
JennyP
|
|
|
|
|
You could place an image box over the control and when that is double clicked enable the text box, quick and dirty but effective
"If i was king cigarettes would be free."
|
|
|
|
|
Hi Jenny!
bitpusher wrote:
I've a text box in a group box on a form and upon startup, this box is NOT enabled. My UI behavior is supposed to enable the box if the user double clicks on it (I cannot get messages from the box itself while not enabled).
You're talking about a groupbox so I guess you're programming in Visual Basic .NET. I spent some thoughts about your problem and worte a little class which should do exactly what you want. Just give me another day or two to write an article and demo application.
|
|
|
|
|
Hi there!
bitpusher wrote:
My UI behavior is supposed to enable the box if the user double clicks on it (I cannot get messages from the box itself while not enabled). After a few hours of trying to find a method, I'm giving up and asking if anyone knows how to do this?
Well, I just finished my new article. Maybe this will help (if it doesn't let me know):
http://www.codeproject.com/useritems/CtrlActivator.asp[^]
Best regards
Dennis
|
|
|
|
|
A button's functionality in a Word 2003 form is to prepare an e-mail to be sent, with the form as an attachment. Here is the code I used in the click handler:
ActiveDocument.HasRoutingSlip = True<br />
With ActiveDocument.RoutingSlip<br />
.Subject = "New subject goes here"<br />
.AddRecipient "email@company.com"<br />
.Delivery = wdAllAtOnce<br />
End With<br />
ActiveDocument.Route
It worked ONE time, and ever since has caused Word to crash on the .AddRecipient line. My co-workers and I are a bit confused, can somebody provide some insight? Thanks.
|
|
|
|
|
How can retrieve data from DataGrid.
|
|
|
|
|
99% of the time, a DataGrid just displays whatever data it is bound to. So, to answer your very vague question with a general answer, you already have the data. There's nothing to retrieve from the grid. All you have to do is look at the object that you bound the grid to and there it is.
You might want to explain what your trying to do and how trying to go about it. Without any more specific information, it's going to be very difficult giving you a helpful answer to your problem.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Go to the property builder of YourDG and add something like a Select Button Column. Then do this:
Private Sub YourDG_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles YourDG.ItemCommand
e.item.cells(2).text.trim
End Sub
This way when you click Select, it will grab what's in the 3rd column of the selected row(DG columns are zero-based).
You can also read cells when the DG is bound using this:
Private Sub YourDG_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Handles YourDG.ItemDataBound
YourDG.Items 'etc
End Sub
|
|
|
|
|
How can I in VB.net get the ip of a client that is connecting to my server.
I am using the TCP class.
Thanks
|
|
|
|
|
.NET Framework Class Library
Socket.RemoteEndPoint Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketstcpclientclassclienttopic.asp
|
|
|
|