|
Hi..
I want to drag an image control and drop it outside my form..
and I want ot be notified when the drop occures .. how can I do it ?
|
|
|
|
|
Hi All,
I would like to know how Intellisense editors are developed. I am currently
trying to build one for SQL. I have a placed a text box control in VB form. When ever user types characters inside the text box, I am populating keywords in a combo box depending on the characters entered. How ever I have a difficulty in follwoing the cursor inside the text box. Let me know how I can get the x and Y co-ordinates of a cursor inside a text box
Thanks
bala
|
|
|
|
|
gbala wrote:
How ever I have a difficulty in follwoing the cursor inside the text box. Let me know how I can get the x and Y co-ordinates of a cursor inside a text box
Do you mean cursor or caret? The caret is the blinking beam you get when typing into the textbox. You'll have to use raw API for this, and here are the functions...
GetCursorPos()<br />
GetCaretPos()
Jeremy Falcon
Imputek
|
|
|
|
|
Hi Folks..
Im having a web form that has 2 select boxes.Now when one select box has a value chosen it must generate values for other select box.This can be accomplished by querying the dbase.Now to do this querying im using an ASP page.
1). My question is how do i run the ASP Page without it affecting the current window displaying my form??
2). Now my 2nd select box has to be refreshed for it to be populated with the values that the ASP Page generates.How can i refresh that control alone without touching the other contorls or rather refreshing the entire page..
Can someone give me links to articles regd this sort of stuff.I know im using a round about method..
Regards
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Hi
You can use HTTPREQUEST Object to call the page which can return the data for the other Select box. Use this data to fill in the same.
Ravi Shankar S
Programmer Analyst
iSOFT R&D Pvt Ltd
Chennai, INDIA
Ph: 91-44-4414980 Extn 1103
|
|
|
|
|
Hi all,
I wrote a wrapper around an OCX (making it a dll) to make the interface simpler for others to program around the OCX.
The problem is that when I try to use the Package & Deployment Wizard to package it, I get this message: "Below is a list of files for which dependency information could not be found. To proceed without the dependency information for the file(s) listed, click OK. To permanently mark a file as having no dependencies, select its checkbox."
3 Questions:
1) Is it unwise to wrap a DLL around an OCX?
2) How do I create a dependency file for the DLL?
3) If I don't need a dependency file, how can I be sure before actually building the project and installing it on some bare bones PC?
Thanks Guys and Gals,
Oh, yeah. I also get the dependency information message for:
dao360.dll.
How can I fix this, too?
|
|
|
|
|
Here are the answers to the questions I provided (If anyone cares.) Let me just say that everyone has a purpose in life and sometimes that purpose is to set an example. This is a case of an example of something to NOT do.
<<1) Is it unwise to wrap a DLL around an OCX?>>
This could be argued for or against, i guess; but, be forwarned - It's a bitch to get the thing working in a distributable package. That being said, I killed the dll project.
So, for a newbie VB Programmer, Yes. Without a doubt - don't try it.
I'm sure someone knows how to do this, though it ain't me.
<<2) How do I create a dependency file for the DLL?>>
The package and deployment wizard has a dependency file wizard that works pretty well. It detected all the dependency information for another dll we wrote. However, the one I was working needed much more information than it could generate automatically. Since sometimes "less is more,' I'm going to end with that.
<<3) If I don't need a dependency file, how can I be sure before actually building the project and installing it on some bare bones PC? >>
Now that I know a little bit more about dependency files, I'm no expert therefore I shall not even try to submit information to someone else on this as I may 'bum-dope' someone. I have my theories; but, they are largely untested.
In closing, it was a foolish idea to wrap an ocx in a dll and think that the interface I was writing would be 'easier.' But, hey, I learned something for it which is better than nothing.
Later.
|
|
|
|
|
OK.
Well, it was bugging me. I fixed my problem. Hmm, acutally, I worked around it. I wrote a script to copy the associated DLLs, TLBs and OCXs to the future installation directory then registered each and every one using regsvr32.
Then I ran the setup.exe. It worked great on systems that didn't contain any of the DLLs, TLBs or OCXs.
So, there!
|
|
|
|
|
Hello all, I am having a bit of a problem with databases. Right now I have an application that stores data into an access database. But when the database goes over 2 gigs the application crashes out and it starts over writting the header file. Please give me some suggestions with using other database collectors, that would be a great help. Thanks
|
|
|
|
|
hi
i want to know How can i create Folder on server
from client side the on network using VB.net
looking forwrd for reply
take care
|
|
|
|
|
Are you talking about a server with file sharring or a mapped drive? If so, try something like this -
Dim myDir as new System.IO.directoryInfo("\\ServerName\directory1")
myDir.CreateSubdirectory("New Directory")
Or are you doing this with remoting? In that case you'd create a public procedure in the shared server object that would look something like the above code. Then just access it from the client.
I hope this makes sense. If not or if you have further questions, just reply
-Steve
|
|
|
|
|
TRY THE OBJECT CALLED ASP UPLOAD 2.0 BY DUNDEE SOFTWARE.its good and easy to use and pretty decent documentation is avbl..i use it for my asp page..
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
hi all,
I am using "mciSendString" api function to record the wave audio through
microphone.
My question is how can i capture the audio data in Integer array while recording?
Because I have to Plot the line graph(spectrum) by using these values while recording(real Time)
Please help me.
Is there any other method to Plot the graph while recording(realTime)
Thank in advance.
|
|
|
|
|
Hi,
I want to know how to validate a property sheet and if validation is success, pass the control to the property page two and if not, pass the control back to page one.
Suppose I have 2 propoerty sheets in a page. I do some validation in page one and if the validation is a success, pass the control to page two, else have the control in page one itself.
Ravi Shankar S
Programmer Analyst
iSOFT R&D Pvt Ltd
Chennai, INDIA
Ph: 91-44-4414980 Extn 1103
|
|
|
|
|
Property sheets will advance based on the way in which you set your property page. As for not advanceing if the validation fails return -1 and you will stay on the same page.
|
|
|
|
|
I want my application to check for an active VPN connection.
Any ideas?
Thanks
A reasonable man adapts himself to the world. An unreasonable one persists, trying to adapt the world to himself. That is why all the progress in the world depends on the unreasonable men.
|
|
|
|
|
Back in the 'ol days of VB6, debuging a DLL was as easy as instanciating an object (set x = new ABC) in the Immediate window and stepping through the code.
IS there ANY sort of parallel in the .NET world? I've only been able to debug VB.NET dll's via a reference in a windows form project.
TIA.
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Hi! I got a file called "FILENAME_XXX_YYY_ZZZ.txt".
Is it possible to read the X,Y,Z information into some variables.
Thankx
Pat
|
|
|
|
|
write a parser that parses on "_"
Dim mystring As String
Dim resultstr(3) As String
Dim nStart As Integer
Dim nEnd As Integer
Dim cnt As Integer
mystring = "hfskh_XXX_YYY_ZZZ.txt"
nStart = InStr(mystring, "_")
Do While (nStart > 0)
nEnd = InStr(nStart + 1, mystring, "_")
If nEnd = 0 Then
nEnd = InStr(nStart, mystring, ".")
End If
resultstr(cnt) = Mid(mystring, nStart + 1, nEnd - nStart - 1)
nStart = InStr(nStart + 1, mystring, "_")
cnt = cnt + 1
Loop
|
|
|
|
|
Is there any way I can open pdf files from VB?
Or is there any way I can find the exe file of Acrobat reader?
|
|
|
|
|
|
I only want to execute reader 5 and open the pdf files i want by clicking on a button in an application i created.
|
|
|
|
|
Andy Chiang wrote:
I only want to execute reader 5 and open the pdf files i want by clicking on a button in an application i created.
In that case, read this article which explains how you can do what you want :-
http://www.codeproject.com/useritems/newbiespawn.asp
Nish
p.s. It's a C++ article, but you can use the same calls from VB I presume!
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I am trying to convert the C# example of MSHTML Advanced Hosting Interfaces to VB.Net. The article can be found under C# programming -> Com Interop -> Using MSHTML Advanced Hosting Interfaces, or at http://www.codeproject.com/csharp/advhost.asp
Anyways, this is the translated code but it doesn't seem to work. Any help would be greatly appreciated.
I tried to convert the code from C# to VB.Net but it doesn't seem to be working. The application won't pick up the Button Clicked Events. I have an html file called start.htm with two buttons...Open FileNew File. I'm not sure exactly what is wrong but here is my code.
Imports MsHtmHstInterop
Imports MSHTML
Imports AxSHDocVw
Public Class frmChild
Inherits System.Windows.Forms.Form
Implements IDocHostUIHandler
'Windows Form Designer generated code, including protected webStart as AxWebBrowser
Protected Sub InitializeBrowsers()
Dim o As Object
Dim theLoc As String = Application.StartupPath
webStart.Navigate("about:blank", o, o, o, o)
Dim cDoc As ICustomDoc = CType(webStart.Document, ICustomDoc)
cDoc.SetUIHandler(CType(Me, IDocHostUIHandler))
webStart.Navigate(theLoc & "\html\start.htm", o, o, o)
End Sub
Private Sub WebBrowser_DocumentComplete(ByVal sender As Object, _
ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) _
Handles webStart.DocumentComplete
' Get the document
Dim doc As IHTMLDocument2 = CType(webStart.Document, IHTMLDocument2)
' Get references to the buttons
Dim btnOpen As HTMLButtonElement = CType(doc.all.item("btnOpen", Nothing), HTMLButtonElement)
Dim btnNew As HTMLButtonElement = CType(doc.all.item("btnNew", Nothing), HTMLButtonElement)
' Attach the event handlers with the events interface
AddHandler CType(btnOpen, HTMLButtonElementEvents2_Event).onclick, _
New HTMLButtonElementEvents2_onclickEventHandler(AddressOf Me.ButtonOpen_onclick)
AddHandler CType(btnNew, HTMLButtonElementEvents2_Event).onclick, _
New HTMLButtonElementEvents2_onclickEventHandler(AddressOf Me.ButtonNew_onclick)
End Sub
Private Function ButtonOpen_onclick(ByVal e As IHTMLEventObj) As Boolean
MsgBox("Alert from the app: Received HTMLElement btnOpen.onclick Event!")
Return True
End Function
Private Function ButtonNew_onclick(ByVal e As IHTMLEventObj) As Boolean
MsgBox("Alert from the app: Received HTMLElement btnNew.onclick Event!")
Return True
End Function
'''''''''''''''''''''''''''''''''''''
' IDocHostUIHandler implementation '
'''''''''''''''''''''''''''''''''''''
Sub EnableModeless(ByVal fEnable As Integer) _
Implements IDocHostUIHandler.EnableModeless
End Sub
'ppDORet out
Sub FilterDataObject(ByVal pDO As MsHtmHstInterop.IDataObject, ByRef ppDORet As MsHtmHstInterop.IDataObject) _
Implements IDocHostUIHandler.FilterDataObject
ppDORet = Nothing
End Sub
'ppDropTarget out
Sub GetDropTarget(ByVal pDropTarget As IDropTarget, ByRef ppDropTarget As IDropTarget) _
Implements IDocHostUIHandler.GetDropTarget
ppDropTarget = Nothing
End Sub
'ppDispatch out
Sub GetExternal(ByRef ppDispatch As Object) _
Implements IDocHostUIHandler.GetExternal
ppDispatch = Nothing
End Sub
Sub GetHostInfo(ByRef pInfo As _DOCHOSTUIINFO) _
Implements IDocHostUIHandler.GetHostInfo
End Sub
'pchKey out
Sub GetOptionKeyPath(ByRef pchKey As String, ByVal dw As UInt32) _
Implements IDocHostUIHandler.GetOptionKeyPath
pchKey = Nothing
End Sub
Sub HideUI() _
Implements IDocHostUIHandler.HideUI
End Sub
Sub OnDocWindowActivate(ByVal fActivate As Integer) _
Implements IDocHostUIHandler.OnDocWindowActivate
End Sub
Sub OnFrameWindowActivate(ByVal fActivate As Integer) _
Implements IDocHostUIHandler.OnFrameWindowActivate
End Sub
Sub ResizeBorder(ByRef prcBorder As MsHtmHstInterop.tagRECT, ByVal pUIWindow As IOleInPlaceUIWindow, _
ByVal fRameWindow As Integer) _
Implements IDocHostUIHandler.ResizeBorder
End Sub
Sub ShowContextMenu(ByVal dwID As UInt32, ByRef ppt As MsHtmHstInterop.tagPOINT, _
ByVal pcmdtReserved As Object, ByVal pdispReserved As Object) _
Implements IDocHostUIHandler.ShowContextMenu
End Sub
Sub ShowUI(ByVal dwID As UInt32, ByVal pActiveObject As IOleInPlaceActiveObject, _
ByVal pCommandTarget As IOleCommandTarget, ByVal pFrame As IOleInPlaceFrame, _
ByVal pDoc As IOleInPlaceUIWindow) _
Implements IDocHostUIHandler.ShowUI
End Sub
Sub TranslateAccelerator(ByRef lpmsg As tagMSG, ByRef pguidCmdGroup As Guid, ByVal nCmdID As UInt32) _
Implements IDocHostUIHandler.TranslateAccelerator
End Sub
Sub TranslateUrl(ByVal dwTranslate As UInt32, ByRef pchURLIn As UInt16, _
ByVal ppchURLOut As IntPtr) _
Implements IDocHostUIHandler.TranslateUrl
End Sub
Sub UpdateUI() _
Implements IDocHostUIHandler.UpdateUI
End Sub
End Class
Thanks
|
|
|
|
|
Somewhere in there you need to connect to the browser instance to receive events. At least that's what I had to do under ATL. I don't see that anywhere in your code. I think I use AtlAdvise and AtlUnadvise?
Todd Smith
|
|
|
|