|
1) This is a security issue that is not supported by the web browser control. Imagine the security risk if someone could change settings for each of the different security zones. To disable scripting, I strip the script from the page. (An exercise left to the reader.)
2) My.Settings is perfect for what you want to do. Bring up the properties for the web browser control, select (ApplicationSettings) then (PropertyBinding), scroll down to Url, expand the drop-down list, then select "new..." The rest is up to you.
3) Use <code>WebBrowserShortcutsEnabled</code> property. Check the documentation for this property, specifically the Remarks and Example sections. Following is my standard initialization for a "concealed" web browser control.
Private Sub InitializeBrowserHelper()
_browseHelper = New System.Windows.Forms.WebBrowser
_browseHelper.AllowWebBrowserDrop = False
_browseHelper.IsWebBrowserContextMenuEnabled = False
_browseHelper.WebBrowserShortcutsEnabled = False
_browseHelper.ScriptErrorsSuppressed = True
AddHandler _browseHelper.DocumentCompleted, AddressOf _browseHelper_DocumentCompleted
End Sub
|
|
|
|
|
Hi
My VB.NET Library references ADODB. When I build it, the above message comes out.
Should I run tlbimp.exe ?
Thanks
Marcello Turnbull
|
|
|
|
|
It is possible you have the wrong ADODB version. Make sure you get the Visual Studio installed version that is located in the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies".
Delete the reference.
Clean Solution.
Verify Obj and Bin folders are empty.
Build Solution.
Ignore the errors.
Add the reference.
Make absolutely sure you select the correct ADODB reference!
The reference must be ADODB (upper-case on purpose) viewed from Solution Explorer.
The reference you are adding is adodb (lower-case on purpose) from the Add Reference dialog.
Component: adodb
Version : 7.0.3300.0
Runtime : v1.1.4322
Path : C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll
Rebuild Solution
|
|
|
|
|
Hello friends.
I want to create an application in .net or VB 6.0 to search file in my systems. file may be Word, Excel or PPT.
As in Windows Xp it is inbuilt file searching option but still i want to create an application like that. By which i can be able to search my files using the contents based. Any body please help me and if you have the code please mail me at anandbpsri@yahoo.co.in
with regards.
Anand Srivastava
|
|
|
|
|
|
see here[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Remove the Computer from your desk and buy an abacus.
Either that or forget the words VB6.0
You will get short shrift here asking VB 6.0 Q's.
Seriously, download VB.Net, it is free and available.
------------------------------------
"I am always serious about what I do, not necessarily about how I do it."
Tom Baker
|
|
|
|
|
Hello friends.
I want to create an application in .net or VB 6.0 to search file in my systems. file may be Word, Excel or PPT.
As in Windows Xp it is inbuilt file searching option but still i want to create an application like that. By which i can be able to search my files using the contents based. Any body please help me and if you have the code please mail me at anandbpsri@yahoo.co.in
with regards.
Anand Srivastava
modified on Tuesday, April 14, 2009 1:47 PM
|
|
|
|
|
anandbpsri wrote: VB 6.0
Actually, it would end in tears.No matter where.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Look into System.IO.Directory.GetFiles. You'll need to look into the various file extensions, but this information is easily available elsewhere on the internet
|
|
|
|
|
How to create the visual basic 6.0 class instance from c#?
Actually I add the one OCX file into my C#,Asp.Net application.
But when we create the instance of the visual basic class then it gives the error Class has no constructor defined.
Please help me about that.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Is the .OCX registered on the machine?? You really can't have a COM component without at least an empty constructor, so I question the error you got.
|
|
|
|
|
Hi,
i have a batch file kept in webserver(IIS 6.0) under a virtualdirectory and when im trying to invoke batch file from client thru URL it"s not accessible..and it"s working fine when i place the bat file in IIS 5.0 server...
Please help me out...
|
|
|
|
|
Are you saying that you want the batch file to run on the server and execute commands there or do you want the batch to be downloaded and executed on the client??
BTW, this question has nothing to do with VB.NET and should be asked in the ASP.NET Forum, where they normally handle Web Server based questions.
|
|
|
|
|
Thanks for ur reply.....ya i want the batch file to be downloaded and executed on the client from the server......
|
|
|
|
|
The web server doesn't dictate how and if that will work. The web browser's security settings do. Without relaxing the default security settings, that won't work. Yo ucan download the file, you just can't launch it from code running in the browser.
|
|
|
|
|
sounds dangerous but...your server
look for aspexec.dll this will allow you to execute exe's/batches/etc from an asp page.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
hi guys,
The code below works fine except when i open the windows task manager, i can still see EXCEL.EXE Running.
how do i close or exit it, should not objFso.Quit() Close Excel?
thanks
Dim objFSO, ObjWb, ObjWs As New Object
objFSO = CreateObject("Excel.Application")
ObjWb = objFSO.Workbooks.Open("c:\myapp.xls")
For Each ObjWs In ObjWb.Worksheets
MsgBox(ObjWs.Name)
Application.DoEvents()
Next
objFso.Quit()
|
|
|
|
|
Since you have work books open, it would probably prevent Excel from closing.
|
|
|
|
|
well this seems to work....
i have added this after the worksheets loop...
ObjWb.close()
releaseObject(ObjWs)
ObjWs = Nothing
releaseObject(ObjWb)
ObjWb = Nothing
releaseObject(objFSO)
objFSO = Nothing
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical)
End Try
End Sub
Private Sub releaseObject(ByVal obj As Object)
Try
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
obj = Nothing
Catch ex As Exception
obj = Nothing
Finally
GC.Collect()
End Try
End Sub
|
|
|
|
|
You also have to dispose the object
|
|
|
|
|
close the workbook also,
excel.workbook.close
|
|
|
|
|
mates,
i don't know where to post this, its about crystal report in visual basic.net.
I have a problem of the line size on report footer.
It will not follow the size(10) when page is more than 1.
heres the image: page 1 should the same line with page 2.
http://i40.tinypic.com/6enlmq.jpg
thanks in advance.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Hi,
if i am not mistaken, i would say that you have a drop shadow on your grid.
the last line is the bottom of the grid.
that bottom line will only display once .i.e at the end of the report/data.
so when you have data for only one sheet, you actually see the bottom of the grid on the same page.
when there is more data than one page then the bottom line will be on the last page.
notice on your grid that when 2 pages then the last line on first page is same size as all the other lines.
thanks
|
|
|
|
|
exactly. i have a line at the end of the report. that is why i put a line in a report footer. the page 2 is correct but page 1 the line doesnt show.
any suggestion, how will i add a line in every end of a report?
thanks mate.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|