|
I have seen a few posts about getting outlook's calendar information aka appointment items. Here is a quick way of getting the information
Imports Microsoft.Office.Core
Imports Outlook
Function Test()
Dim myOlApp = CreateObject("Outlook.Application")
Dim myNameSpace = myOlApp.GetNameSpace("MAPI")
Dim myCalendar = myNameSpace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar)
Dim myItems = myCalendar.Items
Dim apptItem As AppointmentItem
For Each apptItem In myItems
If apptItem.Start >= Date.Today Then
Debug.WriteLine(apptItem.Subject & " : " & apptItem.Start)
End If
Next
End Function
|
|
|
|
|
Hi ,
I want to compare the text of two html pages and then highlight the changed text.Do you have any idea on how to do this
|
|
|
|
|
Are the pages similar ? That is, do they have the same layout except for the text ? Perhaps you can just load one, then compare the two as strings, and do an insert where text is different to make a new composite document ?
Is it XHTML ? If it is, then you can do it by comparing XML nodes, and building a new document that highlights in one colour for stuff only in the first document, and another for stuff only in the second.
The XML way is definately cleaner, if it's possible.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
actually I need to check a two versions of the same page but if I compared the two versions as text I will not get an accurate result for instance maybe a picture has been changed and even the font size might change I just want to highlight the changed text
|
|
|
|
|
Then, is it XHTML ? Can you make it XHTML ? XHTML is HTML that is valid XML, it means you could load it into an XML document and compare it as XML.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thank you for your response.
actually the page is a regular html page .DO you have any suggestions on how to highlight the changed text only.
|
|
|
|
|
Mohsen Saad wrote:
actually the page is a regular html page
Can you convert it to XHTML ? All you need to do is make sure that the nodes match ( which they probably do ) and turn tags like <br&gr; into <br/&gr;. Otherwise, you're going to be parsing the nodes as well as the text.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am creating an image map and want to fire an onclick event instead of jumping to another page. What is the best way to do this using VB.Net?
Thanks for any help!
Steve
|
|
|
|
|
I'm under the impression that the control to do this is new in ASP.NET 2.0.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It is but it is a timing thing! The 2.0 release is still in beta, and my hosting service will not load 2.0 until it is released and even then probably not for a couple of months.
Cheers:
Steve
|
|
|
|
|
Web hosts are allowed to host the beta 2, they just have to sign a guarentee that they'll upgrade to the full version on release.
It's possible that you can hack something in 1.1, but I wouldn't recommend it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian:
Thanks for the quick replies!! I am new to .NET and have been looking all over thinking this should be a slam dunk. To hear that it will not be so easy was reassurance that I had not missed something.
Thanks again!!
Steve
|
|
|
|
|
No worries. If I had to do it in 1.1, I'd chop up the image into smaller ones, so I had a single image that I wanted to be an onclick entirely.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi.
I have a VBA two functions inside MS Access. The functions take in Double and String as arguments
and pass back results thru these arguments.
One of these functions is failing me - a Run-Time crash.
Here are my VBA function prototypes:
Private Declare Function Convert_MGRS_To_Geodetic Lib "ConvertSystems.dll"
(ByVal strMGRS As String, ByRef Lat As Double, ByRef Lon As Double) As Long
'this has runtime crash
Private Declare Function Convert_Geodetic_To_MGRS Lib "ConvertSystems.dll"
(ByVal Lat As Double, ByVal Lon As Double, ByVal Precision As Long, ByRef strMGRS As String) As Long
My VC++ functions are:
long __stdcall Convert_MGRS_To_Geodetic (char* MGRS,
double *Latitude, double *Longitude)
long __stdcall Convert_Geodetic_To_MGRS (double Latitude,
double Longitude,long Precision,
char* MGRS)
The problem is with the second function. I want to return a valid string back in strMGRS (the 5th argument).
Help - I have tried changing ByRef to ByVal and both have same results - runtime crash.
Thanks,
Johnny
|
|
|
|
|
Hi. I think I solved my problem. I changed my VC++ function to use char MGRS[16]:
long __stdcall Convert_Geodetic_To_MGRS (double Latitude,double Longitude,long Precision,char MGRS[16])
And then I changed my VBA code to declare strMGRS as:
Dim strMGRS As String*15
The biggie was probably in the VC++ side (the .DLL).
Regards,
Johnny
|
|
|
|
|
Have a VB.NET application (inventory system) built by 3rd party that uses MSDE for backend. The program is v-e-r-y s-l-o-w making requests to the database. I have been told that there are too many connections, wrong connection type, etc, etc. No stored procedures have been created. Need help to understand the optimum design (maybe a "how-to" overview) to retrieve data from maybe 3-5 tables, in order to fill a datagrid just to list the contents of the inventory. Also, the form that contains the datagrid also contains several drop-down list that can be used to filter the results. Should I be using stored procedures? What do I do with the data for the drop-down list data -- can they be stored in memory so that I don't need to get the same info every time I make another call to the DB?
Really a newbie at this and need a starting point... all feedback is most appreciated.
Rob S
|
|
|
|
|
Rob570 wrote:
I have been told that there are too many connections
MSDE has a limit on the number of concurrent batch workloads that can be processed at once. If you have a large number of clients this could be a big part of the performance problem and new code may not make much of a difference at all.
Rob570 wrote:
Should I be using stored procedures?
Yes. Stored procedures are not only more secure but they are also much faster.
Rob570 wrote:
What do I do with the data for the drop-down list data -- can they be stored in memory
It really depends on how often the data changes. If it doesn't change very often or the new changes are not required immediately then storing it in memory may help the performance of your application.
|
|
|
|
|
Hi,
How can I display my hard disks free space in vb.net
|
|
|
|
|
hey here is a loop that will find the free space and save it as a variable:
'needs this
imports system.xml
'the loop that runs a test on 4 drive with specified drive letters but you can change that to where it uses all drives on the machine
Dim fso As New Scripting.FileSystemObject
Dim drv As Scripting.Drive
For Each drv In fso.Drives
If drv.IsReady Then
If drv.DriveLetter = strDrive1 Then
decDrive1 = drv.FreeSpace
FreeDriveSpace1 = ((decDrive1 / 1024) / 1024)
End If
If drv.DriveLetter = strDrive2 Then
decDrive2 = drv.FreeSpace
FreeDriveSpace2 = ((decDrive2 / 1024) / 1024)
End If
If drv.DriveLetter = strDrive3 Then
decDrive2 = drv.FreeSpace
FreeDriveSpace3 = ((decDrive2 / 1024) / 1024)
End If
If drv.DriveLetter = strDrive4 Then
decDrive4 = drv.FreeSpace
FreeDriveSpace4 = ((decDrive4 / 1024) / 1024)
End If
End If
Next drv
Hope this helps you out.
ccotton333
|
|
|
|
|
You can DISPLAY it any way you choose...
A quick search on Google gives may ways to GET it though. Here is one:
http://www.freevbcode.com/ShowCode.asp?ID=5588[^]
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
I set form autoscale property to false. But the label font is still autoscaled. How can I disable the font size from auto scaling?
|
|
|
|
|
Here's an odd problem. I created a datagrid to allow the user to select a record from a list and then return to the main program. If the user types somthing into a row (like a name) and hits enter the grid drops down to the correct spot. The only problem is that what ever the user typed into the row is saved to the DS on the record that was at the top of the display. The other items in the row remain unchanged. this makes it look like the all the data in the row is related to the one changed text box. The changed text stays until the data set is re-read.
|
|
|
|
|
Hey all,
I was wondering if there was a way to use sockets to check if a file exists on the remote machine, and if it exists, read the data from the file and store it into another file on the connecting machine. I'm new to sockets and i have never done anything with them, but if someone could help me or tell me if this is even the right direction to go with what i'm trying to do, I would greatly appreciate it.
Thanks everyone,
ccotton333
|
|
|
|
|
i have tried this and it won't work because oa a blank password issue does anyone know how i could resolve this here is my code:
Try
Dim sinfo As System.Diagnostics.ProcessStartInfo
sinfo.Arguments = "use z: \\server1\alarms /user:Administrator "
sinfo.FileName = "c:\windows\system32\net.exe"
System.Diagnostics.Process.Start(sinfo)
Catch
MsgBox("the mapping didn't work")
End Try
thanks for all your help,
ccotton333
|
|
|
|
|
If the machines your using for this are in the same domain, this wouldn't be necessary as each machine in the domain shares the same trusted accounts and tokens.
Since it is asking for a password, I take it the machines are in workgroup mode. This means that each machine maintains its own accounts and doesn't trust accounts and tokens from any other machine.
You need to supply a valid account and password for the machine that your trying to map a drive to. You might have to fiddle with this to get it to work, but your command line should be something more like:
NET USE Z: \\machineName\shareName myPassword /USER:machineName\Administrator
Try typeing it at a command line first. Get it to work there, ther you can move what works for you into your code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|