|
As this is the first time I'm using the Webbrowser control, there's a lot I don't know. It is an instance of IE within VB app - is it ? So I beleive everything applicable/available to IE applies to the webbrowser control ? And IE is required to be installed - is it ? What if Opera or Firefox is the primary browser ?
So fundamentally, the question comes to what is the relationship between IE (or any browser on the system) and the Webbrowser control ? Dependencies ?
|
|
|
|
|
Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number.
I have tried these line of code:
Label1.text = System.DateTime.Today.Month.ToString
and I have also tried
Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year.
Can anyone please help me...
Thanks cPod....
|
|
|
|
|
Not sure if I understand you correctly but if Im right you just have to combine your two statements:
<br />
Label1.Text = MonthName(DateTime.Today.Month)<br />
|
|
|
|
|
Hey Robert thanks a lot man. I thought I had tried that but I guess I didn't...
Thanks again....
Thanks cPod....
|
|
|
|
|
Install Framwork for Net 1.1 and my applications runs, however I cannot run my crystall reports.
I checked the help text and looked under deploying w/crystal reports. Told me to add a new project and do some addmerges, etc. However, that didn't work either.
When I try and run the crystal reports it says that it's trying to find some run.dll's.
Does anyone know how to deplosy or install where it will pick up the objects that are needed for crystal?
|
|
|
|
|
hi.. i used WMI to collect information from the remote pc's such as available disk space.. but the thing is 2 pc's has this exception:
System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at System.Management.ManagementObjectSearcher.Initialize() at System.Management.ManagementObjectSearcher.Get() at AutomationProject.WebForm4.diskdriveKMMARS() in C:\Inetpub\wwwroot\AutomationProject\WebForm4.aspx.vb:line 146
why is that so? the pc's were setup as " copied exactly from each other... any help? thanks...
|
|
|
|
|
RPC needs a windows service to be running. Look at the services list (somewhere in your control panel - Im using a german windows so I dont know how it is exctly called), find the RPC service and check if it is running.
|
|
|
|
|
The RPC service should always be running. I'd check to make sure that the two machines in question have the Windows Management Instrumentation service running, and that they are running with the latest service packs and patches.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
will, when i work with TextBox control on vb6,
i can writte from right to left or from left to right.
but, what is the problem?
the problem that i can not chang the direction of cursor itself?
can any one help me,i am waiting online..
|
|
|
|
|
Hi...,
1:I want to fix printer and paper seeting in Vb.Net or C#.
I want that when user click on Printpreview button than Paper size automatically fix on A4 and Margin left and right 0.3 and top and bottom margin 0.5.
Does any body now how to do this job.
2: In VB or C#.net how i export sql database data in access database file as in Sql own feature.
|
|
|
|
|
i want to ask if anyone can help me in the datagrid, how to save a record in the datagrid to the data base,
|
|
|
|
|
hi
im trying to make a combo box with a series of roof pitchs. 1 to 12, 12.5 to 22, 22.5 to 45 degrees
this all neds to work with cosign formulas.
every roof pitch has a different cos value.
ie 10 degrees cos = 0.984807753.
15 degrees cos = 0.965925826.
so in the end the formula would be somthing like this>
1/2 the span of the building / pitch.
pitch has to be in cos.
i have just started learning vbnet so any help would be appreciated
toe
|
|
|
|
|
OK, assuming you have created a combo box that has user friendly angles, like 10, 12.5. 15, etc, and your user has selected an angle here is how you would perform the calculations:
------------------------------------------------------------------------------------------
'Dim doubles to hold values
Dim dblAngle As Double = 0
Dim dblPitchCos As Double = 0
'Get the selected angle in degress from the ComboBox
'and cast the text value to a double
dblAngle = CType(MyAngleComboBox.Text, Double)
'Cos function requires converting the angle from degrees to radians
dblAngle = (dblAngle * System.Math.PI) / 180
'Calculate the cosine of the pitch angle
dblPitchCos = System.Math.Cos(dblAngle)
'Continue calculations ...
------------------------------------------------------------------------------------------
Robert
|
|
|
|
|
Hello basicly I'm working on a project where I need to save a file with one program and open it with a different program. the problem is it throws an error when I try to open the file in the second program
this is the save code:
<br />
Dim fs As filestream = New filestream(filename,filemode.Create,fileaccess.ReadWrite,FileShare.Read)<br />
dim sc as new StreamingContext(streamingcontextstates.File)<br />
Dim bf As New BinaryFormatter(nothing,sc)<br />
bf.serialize(fs,cmap)<br />
fs.close
this is the load code:
<br />
Dim fs As filestream = New filestream(filename,filemode.Open)<br />
Dim bf As New BinaryFormatter()<br />
variable.cmap = ctype(bf.deserialize(fs), gamemap)<br />
fs.close
I need to use binary because i don't want people editing the file
also if it helps bolth programs are using the same key
|
|
|
|
|
disks86@gmail.com wrote:
I need to use binary because i don't want people editing the file
So what? It can still be edited! A little hex editor and time and...
disks86@gmail.com wrote:
the problem is it throws an error when I try to open the file in the second program
And that error would be?
First, don't open the file in the first program as FileShare.Read. You don't want a serialized object being read while it's still being written.
Second, after your done writing the file, .Flush() , .Close()</code), then <code>.Dispose() the FileStream object. Calling .Dispose() will garantee the underlying unmanaged file handle is released when you want it to be, not when the Garbage Collector gets around to it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi im trying to write a small program that deletes the contense of the temp internet folder on xp home ed and the folder seems to have a spechial lock on it
i looked at the attrib's for it and they are all fine and as an experiment i tryed to drag and drop a .txt folder in to it and it wouldnt have it
im pritty new to vb but it works on all other folders so i dont think im over looking somthing stupid but it has been known heres the code im using...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Kill("C:\Documents and Settings\Chris\Local Settings\Temporary Internet Files\*.*")
End Sub
thanks for looking
if it aint broke u cant fix it........so break it first
|
|
|
|
|
Actually, you are missing something. You not really looking at a folder, but rather an extension to the file system, that in Explorer, LOOKS like a folder. Open a command prompt and use CD to navigate your way down to the same "folder", do a DIR and you'll see what I mean.
The Temporary Internet Files folders are managed by WinINet[^]. You'll be doing a bunch of calling into the Win32 API to get at this functionality.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks for your help
i think i was jumping in at the deep end
if it aint broke u cant fix it........so break it first
|
|
|
|
|
how can i read any sector from hard disk
in visual basic.
i mean, if i want to get data of any sector
defiened by head,cylinder,sector, can i
do this. if i can what is the function or procedure
|
|
|
|
|
It can be done. How much work do you want to put into this is the real question? You can start by reading CreateFile[^] on MSDN.
Keep in mind, your doing something that is best left to C++. 99% of the examples of DeviceIoControl you come acrossed will be in C++. It's up to you to do any translation of code to make it work inside VB6.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can I disable the file download dialog box of IE so that when I click on Word, powerpoint files it will directly open within IE without having to explicitly click on the 'open' button ?
|
|
|
|
|
You can't. You can't control how the client reacts to having these file type thrown at it. Security restrictions in IE will dictate how what it is capable of displaying and how it should handle file streams.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
So that's it then ? I am using the Webbrrowser control in VB form.
|
|
|
|
|
Since you are using the WebBrowser control, you have a fair amount of control over what happens, particular if you are also authoring the web pages that provide the download links.
Basically what you would do is when the user clicks on a download link, you must catch that event and then you can substitute your own download procedure. After the download completes you could automatically spawn the oFfice app, i.e. Word, Powerpoint, with the file you downloaded being opened.
It is doable, but not trivial. If you are going to substitute your own download process, you will have to write the code that determines a download is required, and then write all the appropriate code to handle the FTP transfer. You will also have to interface with the Office app Automation interface of interest to open the document.
There are a lot of steps involved because you have to control the entire process - from detecting that a user has requested a download, to implemmeting the download transfer itself, and then ultimately interfacing with the Office app that opens the downloaded file.
It is pretty much an all or noting deal. You can either live with the built-in downlaod functionality provided by IE - the nothing option. Or you can write your own download process, in which case it becomes an all propsition - you have to write code to handle evberything from start to finish. It can certainly be done, but you have to correctly put together all the pieces of the puzzle to make it work. It would represent a pretty substantial amount of code. I weould estimate several thousand lines of code to seamlessly integrate the entire process with enough error handling to make it reliable.
Good Luck,
Robert
|
|
|
|
|
You never said anything about that. All you mentioned was the "browser"...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|