
woklet
Avatar/Signature-
Posts
29 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by woklet
-
I've got two seperate directories on the same server. ValidPath = "\\imgnas1\vol1\TESTVOL\VOL01238\IMAGEVOL\2003091600603" & ValidPath = "\\imgnas1\vol1\imagevol\vol01238\imagevol\2003091600603" The only difference is on the "imagevol" dir I have read and execute permissions whereas "testvol" I have all permissions. I'm getting an accessed denied when I execute this line of code: Dim dirs As String() = Directory.GetFiles(ValidPath, "*.*") The directory that I'm getting the error on is the "testvol" directory; the one I have full permissions to!! The other directory works fine. Can anyone point me in the right direction on where to go to debug this and figure out why I can't perform a simple getfiles command? Thanks in advance Ben
-
I'm sorry...thanks for the quick response; but I just figured out what I need to do. I use the Application.ThreadException
-
I am trying to write a "global error handler" in vb.net. I'm trying to do something like this... Module Module1 Public mainForm As System.Windows.Forms.Form Sub Main() Try mainForm = New Form1 Application.Run(mainForm) Catch ex As Exception MsgBox("error has occurred") End Try End Sub End Module The program runs, but when I get an error it gives me the "normal" windows/.NET error box; not my msgbox(). Any thoughts??? Thanks Ben
-
Yeah, that's a good idea and I'm sure it would work. However, if I could find a way around keeping track of a public variable that would be ideal. I can't find any z-order assistance in the .NET help files...there's a surprise.
-
Hello fellow Fox coder... I think I may have some code that would be helpful. imageList.Images.Add(Bitmap.FromFile("c:\weblookup\exclem.ico")) imageList.Images.Add(Bitmap.FromFile("c:\weblookup\misc02.ico")) lbHistory.SmallImageList = imageList Me.lbHistory.Items.Add(strWork, 0).ForeColor = System.Drawing.Color.Fuchsia These four lines of code should come in handy. Let me know if you need further help. I'm doing this in the current VB.NET app I'm working on; so I ought to be able to help... Good luck Ben
-
I have a form with 5 different web browsers and depending on which site I need to navigate to I invoke that particular web browsers bringtofront method and sendtoback on all the others; thus making the appropriate one visible. I need a way to determine which one I have on the top. Is it the z-order? How do I interrogate a web browser control's z-order? Any thoughts? Thanks Ben
-
From my main form, in a combo box, I call a second form like this: dim NewForm as form2 NewForm = new form2 NewForm.show After the user completes their work in form2, I need to get back to form1. How can I do this? If I do this from form2... dim OrigForm as form1 OrigForm = form1 form1.show ...it creates another instance of form1. I need to get back to my original form1. How can I go back and forth from one form to another without re-creating them each time? Thanks in advance Ben
-
Outlook email in VB.NET causes error
woklet replied to woklet's topic in Interoperation / Office Integration
Nevermind...figured it out. I had to add the Microsoft.Office.Interop.Outlook assembly to the C:\WINDOWS\ASSEMBLY directory...then it worked. Thanks PD, you got me headed in the right direction! -
Outlook email in VB.NET causes error
woklet replied to woklet's topic in Interoperation / Office Integration
Outlook is on the other machine and yes it is the same version. But I don't think Office is installed on that PC -
When I run this code on my PC, it works fine - I send the email to myself and it works. But when I deploy it to another PC, it gives me some Microsoft.Office.Interop.Outlook dll error. I'm assuming I need to make a setup project for deployment purposes; but what dll/files do I need to add? Here is my code... Imports Microsoft.Office.Interop Public Class Form1 Public Sub Send_Email() Dim oOutlook As New Outlook.Application Dim oMailitem As Outlook.MailItem Dim oAttach As Outlook.Attachment oMailitem = oOutlook.CreateItem(Outlook.OlItemType.olMailItem) oMailitem.To = "johndoe@somewhere.com" oMailitem.Subject = "My Subject" Try oMailitem.Attachments.Add("C:\TEST.TXT") Catch ex As Exception End Try oMailitem.Send() End Sub End Class Any thoughts would be helpful, Thanks Ben
-
Hey cool, that works...thanks!
-
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 For i = 1 To 100000 Me.Label1.Text = Str(i) & " of 100000" Me.Refresh() Next End Sub When I click my Button1 and then click on another window, say Windows Explorer or Outlook, etc., my VB.NET form obviously loses focus. When I come back to it it doesn't refresh until the loop is completed. Is there anyway to either keep the VB.NET form modal; not just within my VB.NET app but throughout all of the windows that are up on my PC? Or is there a way to keep it running in the background or refresh it upon activating? I've tried the activated event, but it still waits for the for loop to finish. Any thoughts? Thanks Ben
-
Well I figured out how to capture the Web Browser, scroll down a page, capture again, and continue until I'm at the end. Then I just concatenate all the images together into one. It's "flashy" and a "tad too early 90s", but it works. Anyone have a method of capturing the Web Browser in one quick, swift stroke? VB.NET Thanks Ben
-
I'm sending data to the mainframe using a CICS buffer in VB.NET and I need to figure out how to send it COMP-3 fields (packed data). Does anyone know how this might be done? Thanks in advance, Ben
-
Thanks a ton, to both of you!
-
I'm looking for source code in VB.NET on how to concatenate two bitmaps together, top and bottom. I've tried using the BitBlt function but can't quite seem to get it. Thanks in advance, Ben
-
Trouble in Rivercity... Hello once again. I ended up downloading the IECapt.exe program, which does a great job of capturing a url to an image. However, if the url is generic and not a direct reflection of the web page itself, it does me no good. Is there anyone who could help me save the contents of my axWebBrowser to an image??? I would be forever grateful. Thanks again in advance, Ben
-
Ahhh, nevermind... I just found the listview control. Does everything I need. Thanks anyway though, gang.
-
Thanks for the quick response! Here is my code... myListBox.Items.Add("Hello World") myListBox.Items.Add("Hello World1") myListBox.Items.Add("Hello World2") myListBox.Items.Add("Hello World3") Me.myListBox.Items(1).foreColor = color.Red Here is the error I get... An unhandled exception of type 'System.MissingMemberException' occurred in microsoft.visualbasic.dll Additional information: Public member 'foreColor' on type 'String' not found. I know...I'm probably doing something really dumb; but I still can't get it to work. Any thoughts... Thanks Ben
-
I'm programatically adding items to my listbox in vb.net and would like to change the color of a line to red if its an 'important' item. Does anyone have any code snippets on how to change the color of a particular line in a listbox; or upon adding it if there is a way to set the color? Any help would be appreciated, Thanks Ben
-
Okay, so I tried your sample code on a different website, cars.com and used "locationzip" as the web text box field to test this with. I get no errors, however I'm not quite sure what to do next. If I perform an HTTPWebRequest on locationzip and plug in a zipcode, isn't that like simulating if the user were to enter in the zipcode and hitting the enter key?
-
An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed: Could not establish trust relationship with remote server. That is the error I get when this line of code is executed: Dim requestWriter As StreamWriter = New StreamWriter(webRequest.GetRequestStream()) Does this code build my variables into the HTTP address? Because when I manually navigate through the website and enter in policy and vin info and hit the search button it does not display my search criteria in the address... I don't know if I'm making any sense but if you could give me a few more pointers that would be great! Thanks again Ben
-
Thanks for the quick response... We have data entriest performing web lookups. My VB app pulls down the 'next guy to lookup' from the mainframe; to verify if he's got valid insurance coverage. The user will then enter VIN and policy number to a web page (my axWebBrowser) If the guy has valid insurance do this...else do this... So idealy I would like to automatically plug in the VIN and Policy number into the corresponding text boxes on Allstates website, or Statefarms website, etc... Does this help? Could you elaborate on the HttpRequest, please. Ben
-
Where to start with Win32 API??
woklet replied to fsuorange2's topic in Interoperation / Office Integration
try this http://www.mentalis.org/index2.shtml -
I�m looking for some code snippets on how to identify and change the value of a text box within a webpage in VB.NET and Internet Explorer. I�m using the axWebBrowser control on my form to display the web page and then do a directcast of my axWebBrowser to get my HTML doc. Dim doc As mshtml.HTMLDocument = DirectCast(Me.AxWebBrowser1.Document, mshtml.HTMLDocument) If I navigate to a web page, let�s take http://www.yahoo.com for example, how can I determine how the search text box is referenced and how I could send keystrokes to that search text box in my axWebBrowser control? Any thoughts on this would be appreciated Thanks in advance Ben