I want to pop up a dialog box when the user disturbs the screensaver. Both the MsgBox and the InputBox work. When I try to pop up my own form using MyForm.ShowDialog(), it doesn't work. What's the difference between those boxes and mine? What do I have to do to make mine work like they do?
You can open and read the file in Binary mode all you want. The .NET Framework doesn't have any support for interpreting and manipulating the contents of a PDF file though. If you wanted to manipulate the file, you'd have to have a library to do it for you, like the PDF.NET or something similar.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
i have an com application which keeps track of another application and displays the message accordingly made in vb6.
but it gives error70 when we handle the application to and fro very frequently.
can anyone help me on Error-70 or any idea about the possible reasons.
Thanks, i tried to get rid for the issue. now i'm thinking to convert code from the dll into exe, so even if the server is busy or timed out , we don't get the error in running application. can you please suggest is it possible or not and how.
Just converting it to an .EXE won't do anything. It appears as if you have a performance problem with your server code. You have to figure out what that performance issue is and correct it. The questions you have to start asking yourself are: Which method has the problem and why is it taking so long to return a result? Is there another way to implement this class to respond faster?
Thanks for your suggestion, i trace that error is due to clients' next request before the first complets and then there is no room to show the result for first one , hence if user sends request very fast the com gets busy and returns the error, while if user goes sequentially then the results are appropriate.
I'd like to copy an image with the File.Copy option. But, if i have the image loaded in a picturebox, it won't copy because the file is in use. I tried the picturebox.dispose option, but then i get an error message saying: invalid parameter used. Can anyone help me with copying an image loaded in a picturebox?? Thanks, Zaegra
I have 1 subreport on my main crystal Report.
I want to calculate Total of fields. one field from 1st main report & 2nd field from my subreport . Will Anyone Tell me how to do it.
i m using vb.net &crystal rpt.
I've been trying to obtain the email header from messages in Outlook using VBA. I have done some investigation and found that in outlook they are stored separately and require use of the CDO library to get hold of the header. So, I used Tools-Reference to enable the CDO Win 2000 library, cdosys.dll and employed the code below - but on compiling in the Outlook VBA Editor it gives me errors in all references to that CDO library. Can anyone assist here? Many thanks
Public Function InternetHeaders() As String <br />
Dim objOutlook As Outlook.Application <br />
Dim objItem As Outlook.MailItem <br />
Dim objCDO As MAPI.Session <br />
Dim objMessage As MAPI.Message <br />
Dim objFields As MAPI.Fields <br />
Dim strID As String <br />
Const CdoPR_TRANSPORT_MESSAGE_HEADERS = &H7D001E <br />
On Error Resume Next <br />
' Instantiate an Outlook Application object.<br />
Set objOutlook = CreateObject("Outlook.Application") <br />
'Find the current email item and get its EntryID<br />
Set objItem = objOutlook.ActiveInspector.CurrentItem <br />
strID = objItem.EntryID <br />
'Then set up a CDO Session using a piggy-back login<br />
Set objCDO = CreateObject("MAPI.Session") <br />
objCDO.Logon "", "", False, False <br />
'Now get the item as a CDO Message<br />
Set objMessage = objCDO.GetMessage(strID) <br />
'Now get the headers from the message<br />
Set objFields = objMessage.Fields <br />
InternetHeaders = objFields.Item(CdoPR_TRANSPORT_MESSAGE_HEADERS).Value <br />
'Now that the headers are captured in a string you can do whatever you want with them<br />
objCDO.Logoff <br />
Set objFields = Nothing <br />
Set objMessage = Nothing <br />
Set objCDO = Nothing <br />
Set objItem = Nothing <br />
Set objOutlook = Nothing <br />
End Function <br />
Normally, if I hear display Image randomly in asp.net, I think of an AdRotator. If you set up one of your columns in the datagrid as a template you should be able to add the adRotator control to it. I guess I am assuming you are working with Visual studio 2005 ASP.net 2.0. I don't think that control exists in VS 2003. Anyway, I hope that helps.