Topics
-
- 2 replies
- 4.3k views
Hi, I added a row to the datagridview with following codes: Dim drx As DataRow drx = _DataSet.Tables(0).NewRow drx.Item(0) = 1 drx.Item(1) = id ... _DataSet.Tables(0).Rows.Add(drx) I want my datagirdview automatically selected this new row right after the codes above. How can this be done? Thanks in advance.
Last reply by Worrow, -
-
- Administrators
- 1 reply
- 1.1k views
I need to send a text file on the local machine to a unix server. I know the IP address, username & password to connect. I have tried using the following line of code: My.Computer.Network.UploadFile("c:\test.txt", "10.2.2.10", "username", "password") This gives me the following error: '10.2.2.10' is not a valid remote file address. A valid address should include a protocol, a path and a file name. Parameter name: address Do I have to specify the destination path on the remote server? If so how do I specify that with an IP address? Maybe like this ... 10.2.2.10/foldername/subfoldername/etc... ? I am able to ping the server & get a response. …
Last reply by PlausiblyDamp, -
-
- 2 replies
- 1k views
I have a windows app that i'm developing in vb.net running on an oracle9i db. I have some procedures that return data based on values input by the user, I now need to display the results of these procedures in graphs, I have never done anything like this so anyone that can point me in the right direction is much appreciated. I have attached a spreadsheet showing the exact graphs i'd like to recreate and some dummy source data. Cheers, Dan Graph_mock_ups.zip
Last reply by tfowler, -
- 2 replies
- 1.2k views
I have this code running in a thread, I want it to continue listen on that port for more incoming connections but can't get it to work, how to do this? ' Must listen on correct port- must be same as port client wants to connect on. Const portNumber As Integer = 8000 Dim tcpListener As New TcpListener(portNumber) tcpListener.Start() Try 'Accept the pending client connection and return 'a TcpClient initialized for communication. Dim tcpClient As TcpClient = tcpListener.AcceptTcpClient() Console.WriteLine("Connection accepted.") ' Get the stream Dim networkStream As NetworkS…
Last reply by W_Garabrandt, -
- 1 reply
- 1.5k views
Is it possible to change the value of an inserted item from within an insert trigger? Such as inserted.[field] = 1 There are several reasons, but one of them is to replace a value with a default if the value doesn't meet a FK Constraint so as to allow the insert to happen.
Last reply by Mister E, -
- 1 reply
- 764 views
I have been developing a program in visual basic.net for a long time and everytime i run debug or release it has always worked just fine. but all of a sudden when i run debug it will build it fine but then visual basic freezes up and it shows that its Not Responding and my program shows up in the taskmanager but does show on the screen. but what i found out is that it is actually building it just fine.. if i go to the .exe that it builds and open it, it will open just fine.. it seems like visual basic.net just can't launch it.. it started doing this just sometimes, but now it does it every time i try to run debug or release. any ideas? i have already tried uninstall…
Last reply by Lanc1988, -
-
- Leaders
- 1 reply
- 873 views
This may be far-fetched, but I was wondering, is there any way to disable the screen saver while a program is running, but also allow it to run while the program is closed? Thanks
Last reply by snarfblam, -
-
- 4 replies
- 1.7k views
*sigh* I'm almost embarrased to ask. This is in C# for Visual Studio 2005 by the way. I've spent a few hours last night and literally *hours* trying to figure this out today, and can't for the life of me get it to work. There's a fair amount of threads on this already, but the majority deal with accessing controls on Form2 from Form1, which I can do fine. What I'm having problems with is accessing properties on Form1 from Form2. That first thing I thought was just: Form1 firstform = new Form1(); firstForm.txtBox.Text = "test"; But it dosent work, and as I understand it the reason it dosent work is that I've created another instance of Form1 and I'm access…
Last reply by Joe Mamma, -
- 2 replies
- 2.9k views
Hey people! I have to build a payment page for a given site. The API from the payment processor permits us to send hidden values as a POST to a designated HTTPS address. The goal is to collect 3 text fields from our form and then pass those without the user seeing the values while redirecting the user to the actual secure form on the remote site. In other words, I don't want to use response.redirect since the user will see the values being passed. Is there another way ? Webclient ? Thanks
Last reply by laredo512, -
-
- Leaders
- Administrators
- 1 reply
- 1.4k views
Amongst other things the following link shows very good use of Partial Classes when it comes to code organisation as well as extensive use of VS 2005 features for resource management etc. Well worth a look. http://addressof.com/blog/archive/2006/02/16/9876.aspx
Last reply by Iceplug, -
-
- 2 replies
- 967 views
Hi all, I have a query to execute against an access database and is strange, because inside Access querys directly it executes perfectly, but inside my code its not executes, giving an error about the REPLACE keyword.The sql statement is the following: SELECT CODIGO,CODBARRA FROM ARTIGOS WHERE REPLACE(CODIGO,'.','')<>CODBARRA Note: I'm using Microsoft.Jet.OLEDB.4.0 as my Data Provider. with C# 2005 If anyone can help me about this, i'll be very thankfull Rgds Tiago Teixeira
Last reply by teixeira, -
- 2 replies
- 919 views
Stored Proc?...Trigger?...Other? Hi all, I have a project that I'm working on that involves a SQL database with multiple tables that are all linked to a general Users table. The Users table includes an Identity field as the primary key. The other tables use this field as an identifier for the user that the record is associated with. What method should I use so that if one of our apps inserts a record into a table, the "user information" is added to the Users table first, and then the Identity field is copied and combined with the rest of the information, and inserted into the original table? I'm vaguely familiar with stored procedures and triggers, but I have…
Last reply by Joe Mamma, -
-
- Administrators
- 9 replies
- 1.6k views
Application that acts as a "communicator" between database and external application Hi Guys, I have a question, i wish to design an application that acts as a "glue" between database and a window based application The main reason why i want to do this is that the database im using is oracle and we cant afford to have oracle client installed on each and every machine to support the window based application. So one possible solution is to have the oracle client installed on a machine that interects between the external application and database This means sending the relevant HTTP requests and and then, we get the response back maybe in some format like XML.…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 944 views
Hi, I currently have a web usercontrol (editcalendar.ascx) which is loaded into a webform (default.aspx). On the usercontrol is a textbox called txtStartDate and a button. On click of the button open another form name popup.aspx How do I reference the textbox from the popup.aspx window.opener.document.forms[0].txtStartDate.value = 'Test' thanks in advance
Last reply by Joe Mamma, -
- 2 replies
- 1.5k views
Wierd WebBrowser Problem in Mdi Application Someone please help me because I'm at my wits end. I'm developing a Windows MID Form application in VB.NET. Currently I'm working on a new version of the application (converting windows form app to an MDI app). The application includes an AxWebBrowser control which I use to Navigate2 a file (and it works great in the previous version which was not an MDI app). I'm trying to port the code to the new version; however, the WebBrowser control is not working. The form shows up, the WebBrowser is blank (wait cursor indicates the WebBrowser is working), and the form border is screwy. I figure it must be a reference or import …
Last reply by Joe Mamma, -
- 4 replies
- 890 views
I have a series of pages that display closed files in different folders. Some of the folders have many files and some have few. Is it possible to create an event that displays or hides the Pager based on the file count? Thanks in advance
Last reply by cyclonebri, -
-
- Leaders
- 10 replies
- 1.7k views
I have a program where when you click a button it saves the source code of a webpage in a .txt file. Now in that .txt file there are about 20 different numbers I need it to get and put in labels. Here is part of what is saved in the .txt file: <tr><td></td><td align="left"> <a href="overall.ws?table=0&user=lanc1988">Overall</a> </td> <td align="right">154,416</td> <td align="right">1107</td> <td align="right">5,465,821</td> </tr><tr><td align="right"> <img class="miniimg" src="http://www.runescape.com/img/hiscores/skill_icon_attack.gif"></td> <td align…
Last reply by Joe Mamma, -
-
- 1 reply
- 2.4k views
Hi, I'm writing an outlook 2003 plugin and encountered a problem. I'm creating a new AppDomain in order to load an assembly into it. I don't want to have this .dll loaded in CurrentDomain, so I can replace the file after unloading additional domain. I'm using addDomain.Load(bytes[]) method as it leaves the file untouched (that's what I read). But the assembly is also being loaded to CurrentDomain. So I wanted to add AssemblyResolve event as I read that returning Assembly from load causes loading assembly into currentDomain. Then I encoutered this: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0…
Last reply by johny_bravo, -
- 1 reply
- 3.9k views
I would like to dynamically change the coordinates on a lineobject in my Crystal Report (Visual Studio 2005, C#, Crystal bundled version 10). All the documentation and information I can find leads me to the LineObject properties Top, Bottom, Left and Right. They have set and get enabled, but there is a catch to their use which I haven't been able to figure out. Crystal supports only vertical or Horizontal lines. During design time, the designer, automatically changes the corresponding property value to keep the line object either vertical or horizontal. In a Horizontal line, left and right should be equal, and in a vertical line top and bottom should be equal. …
Last reply by teixeira, -
- 0 replies
- 906 views
When I view my report on a WindowsForm ReportViewer object, I notice I can select the individual reportobjects in my Crystal Report (Visual Studio 2005, Crystal Reports embedded for .Net version 10). Also, when I do a search, the ReportObject that contains the text is selected. I would like to obtain information from within my program to know which object was selected. I would like to copy the contents of that object into the clipboard, for example. Mouse Click and other mouse related events do not fire (Business Objects claim that it's a fixed bug -- for versions 9 or later, but nevertheless it doesn't fire for version 10 embedded). I tried browsing the object…
Last reply by cymdiaz,
-
Who's Online 0 Members, 0 Anonymous, 46 Guests (See full list)
- There are no registered users currently online