Topics
-
- 1 reply
- 1.1k views
How to integrate Paypal API (SOAP Interface) with ASP.Net? Please tell me the procedure with sample code.
Last reply by Nate Bross, -
-
- *Experts*
- Administrators
- 8 replies
- 5.7k views
Hi guys, I got my app' to minimize to the tray ok that was easy enuff and I've got a doubleclick event for the trayicon to restore the form using windowstate.normal and this was all working fine. Now I've added a couple of lines of code so that when the form is open form1.showintaskbar = true and trayicon.visible = false and then when the form gets minimized form1.showintaskbar = false and trayicon.visible = true. The problem I'm having since I made these changes is that double clicking on the trayicon restores the app' but only to the taskbar and assumes that as being its 'normal' state. The only way I can see the form after that is to maximize it. Can't find…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.2k views
Hi I am writing a program to create a document in word using VSTO, the problem I am having is to do with inserting a picture. I can add the picture using a bookmark and the inlineshape object but what I also need to do is set the picture layout to Behind Text. Does anybody know how to do this? Thanks
Last reply by pendragon, -
- 2 replies
- 1.2k views
I have an application that prints PDF files using Gnostice PDFtoolkitX. The app looks in a directory and prints each PDF using a foreach loop. If the files are smaller (<5mb) it works fine. However, the actual files will be from 10 - 20 MB and the app crashes (Catrostropic Failure exception) with large files. I'd like to try to introduce a delay after it sends each file to the printer. (Speed really isn't an issue) I think my options are System.Threading.Thread.Sleep or using a Timer. This app does not have a UI so I'd rather not use the Timer. Does just wondering if Thread.Sleep would also stop the processing of the file by the print spooler? I'd just like…
Last reply by jrm82, -
- 1 reply
- 632 views
Hi! I have a program in C# which has two forms. I would like to put a button on Form1, and then the user can change the button's settings On Form2. The problem is- how do I access the button that's on Form1- from Form2? On Form1- the code is: Button Button1 = new Button(); On Form2- for instance- the user can choose the buttons text- and write it in a textbox on that form. When the user clicks ok- I want to implement the text written in the textbox on Form2- to button1- on Form1. How do I do this when the button is on the other form? Please help. Thanks!
Last reply by Nate Bross, -
-
- Administrators
- 7 replies
- 3.7k views
I am using a windows 2000 server on which I am deploying a simple web application with some of the web.config elements encrypted. I have generated a machine level key container using the following: Aspnet_regiis �pc �CustomKeys� �exp I have exported the key to my server using: Aspnet_regiis �px �CustomKeys� �C:\temp\CustomKeys.xml� �pri and Aspnet_regiis �pi �CustomKeys� �C:\temp\CustomKeys.xml� I have granted access to the Custom Key Store to the ASPNET account using: Aspnet_regiis �pa �CustomKeys� �ASPNET� However, when I try to do the same for the "NT Authority\Network Service" account I am prevented from doing so. Apparently "NT Authority\Netwo…
Last reply by mike55, -
-
-
- Administrators
- 5 replies
- 3.4k views
After spending the last 4 years writing in VB.Net I have decided to bite the bullet and all code written at home will be written in C#. Given time I think I might try to move into a C# position if things go smoothly. Anyway in the past I did some training in Java so the syntax is reasonably familiar and VB and C# are closer than ever now. So the first question is quite simple. It is regarding the use of @ in C#. If I put the line: folderToDelete = folderToDelete.Substring(0, folderToDelete.LastIndexOf("\")); It would fail, this is to do with the backspace. It is simple to fix it: folderToDelete = folderToDelete.Substring(0, folderToDelete.LastIndexOf(@"\"));…
Last reply by Nate Bross, -
-
-
- Administrators
- 8 replies
- 6.5k views
Hi, I am writing an application that will be distributed to our clients, who may and may not have a proxy server. There are numerous calls to a web service that is on our public server. We use a proxy server at our company and when I run my application and it hits a call to the web service it fails: I can get the code to work if I hard code the values that work for our proxy server i.e. Dim WebServices As New WebServices.GeneralWebServices Dim dsResults As New DataSet Dim nc As New Net.NetworkCredential("user", "password") Dim wp As New Net.WebProxy("http://1.1.1.1:8000") wp.Credentials = nc WHLWebServices.Proxy = wp dsResults = WebServices.call() But in…
Last reply by davearia, -
-
-
- Leaders
- 2 replies
- 1.3k views
Hi, I am creating an instance of a control within my form programatically like so: Private Sub SetUp() For Each r As DataRow In dvFilter.ToTable.Rows Dim o As New ctlMachine(sPath, r) Next End Sub Within this control there is this event: Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick RaiseEvent MouseClicked(dr) End Sub This in turn is handled by this event declaration in the same control: Public Event MouseClicked(ByVal r As DataRow) But I am struggling to reference this event at form level. How do I wire this event up to the form? Cheers, D…
Last reply by davearia, -
-
- 0 replies
- 766 views
My below logic and code works fine in VB6 but after migrating it to VB.net it is not working.... I have two projects- Framework and View. In framework i have a form containing webbrowser control in which Main.htm is loaded. This main.htm is as follows... <HTML> <BODY> <OBJECT id=objView tabIndex=-1 height=0 width=0 classid=clsid:5022B24E-FC65-40f7-9623-7D54F4B98FBC></OBJECT> <OBJECT id=ctlView1 classid=clsid:CDF10BE8-0FAC-44cd-A8F6-1E7DAF83F2DB height=100% width=100%> <PARAM NAME="_ExtentX" VALUE="5477"> <PARAM NAME="_ExtentY" VALUE="6985"> <PARAM NAME="Appearance" VALUE="0"> </OBJECT> <input ty…
Last reply by vidhi, -
-
- Administrators
- 2 replies
- 1.1k views
Hey guys, quick question - this one's been bugging me for some time, and google hasn't been my friend on it. I've set up a httphandler in my web.config to transfer a url. For example, typing the following into the address bar: http://mysite.com/Articles/Default.aspx will transfer the user to: http://mysite.com/content.aspx?type=articles However, the user must explicitly type: http://mysite.com/Articles/Default.aspx Is it possible to account for this so that the user can miss off the filename, and it will default to default.aspx? Cheers in advance!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 4 replies
- 1.5k views
I have coded in VB6 for a while now and I've decided to code in VB9. I have the OpenFileDialog(Dim ofd As New OpenFileDialog), It loads my .txt files into my List1. How can i save my list2 to any file, preferably .txt I would obviously have, .Filter = "Text Files (*.txt)|*.txt| All Files(*.*)|*.*" I'm just confused about the code for saving. Isn't like VB6. Any help would be appreciated. ty -Gabriel
Last reply by __Doc_, -
-
- 1 reply
- 812 views
Hello, I have 2 questions: 1. I know I can use System.IO.File.ReadAllText() to read the contents of a text file, but that's unneccessary, I just need to read the 1st line of my text file, how can I do it? 2. Also, how can I get the total number of lines in my text file? Thanks for your help.
Last reply by MrPaul, -
-
- Administrators
- 1 reply
- 1.3k views
I've left my job (pssst...they're looking for a replacement with .Net experience) and started studying at university again so I won't be around on the 'boards here so much anymore. It looks like the major projects I'll be working on at school will be in Java land. I just wanted to say thanks before I disappeared indefinitely to all the volunteers who filled this board with all the great information that brought me here in the first place. I may lurk occasionally, but since I won't be coding in .Net that often it doesn't make sense for me to waste my time around here. ;) Good luck in to all in your .Net adventures. And seriously, Black Knight is awesome and the…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.4k views
Hi I'm writing an application which has script/plugin system. I want to provide a central place where settings are stored/recalled, dividing settings into private and public ones (per plugin). So basically my question is: Is there a reliable way to know from which dll the Property was called? (Without relying on the plugin, giving its name as a parameter) Simplified example: Class cMain Sub new(Main as cMain) Dim P1 = new cPlugin(Me) Dim P2 = new cPlugin2(Me) End Sub Public Property Settings(Key as String) as Object 'Get: Return GetSetting([Pluginname], Key) 'Set: GetSetting([Pluginname], Key) = Value End Property End Class Class cPlugin Sub new(Main …
Last reply by snarfblam, -
-
- 1 reply
- 671 views
Hello Im trying to create a Tool to create demos / presentations and for this I need to record mousemovements and clicks ( outside of the Form )as well as i need to simulate them. Recording and replaying the movement already works fine, but I cant figure out how to capture klicks ( maybe mousedown and up on their own ). Im googling since hours, but all I can find are codesnippets that SHOULD do the Job, but do not :( Anyone here has an Idea how to do this ? Do I have to use DLLs for that ? If yes, HOW do I include a DLL and which one do I need? You may have already recognized that I am still a VB.net beginner and my english is not perfect ;) so plz forgive me …
Last reply by Nate Bross, -
-
- *Gurus*
- 3 replies
- 4.7k views
I'm populating a TreeView control at run-time and I want my first-level nodes to be in bold text. When I change font via TreeNode.NodeFont, the node isn't resized to fit with the new text size and it appears only partialy. I know I could change the width of the node, but it won't fit to the text. Isn't there any other way?
Last reply by willemf, -
-
-
- Administrators
- Leaders
- 11 replies
- 3.4k views
Can the advert listings which are now inside posts be modified so that they appear above or below the post itself, rather than alongside? Posts are squashed and it makes code extremely difficult to read properly. Horizontal space tends to be at a premium. See screenshot below.
Last reply by Nate Bross, -
-
-
- Leaders
- 7 replies
- 2.1k views
I'd like to add a button to the toolstrip in the Save File Dialog, to deal with password protection of files. For the print preview dialog I could do this quite easily by getting a reference to the toolstrip through the Controls property of the dialog. But there is no Controls property of the Save File Dialog. How would I go about this?
Last reply by rbulph, -
-
Option Strict and FileGet
by Guest makai-
- *Gurus*
- 4 replies
- 3.7k views
the following code works just fine: Public Class Form1 Inherits System.Windows.Forms.Form Structure x Dim j As Short End Structure Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim y As x FileOpen(1, "c:\t1.txt", OpenMode.Random, , , Len(y)) FileGet(1, y, 1) FileClose(1) MsgBox(y.j) End Sub End Class but if I put in Option Strict On the line FileGet(1, y, 1) will not compile due to the fact that y is not in the overloaded parameter list 1. Does anyone know the correct conversion code? 2. I like the idea of sticking with…
Last reply by rt3, -
-
Who's Online 0 Members, 0 Anonymous, 52 Guests (See full list)
- There are no registered users currently online