Topics
-
- 3 replies
- 3.8k views
Is there a simple way to output a datatable to a file, i.e. a text file or XML file etc. Then a simple way to load the file back into a datatable? Thanks
Last reply by amir100, -
- 4 replies
- 960 views
There's something I need to know in Web Application development. Perhaps this is a silly question. But I was wondering would a DataGrid with "Allow Paging" enabled loads faster than with "Allow Paging" disabled?
Last reply by amir100, -
-
- Administrators
- 3 replies
- 1.2k views
I am creating an application that will interface with an old service. I need to put a single line code into a text file to get it to do stuff elsewhere on the network. One of the requirements is the code must be a single line with no new line or whitespace beginning or end. Here is the code I am attempting to use. When I write the single line to the file and then read the file it shows as 4boxes (unrecognized char code?). Thanks MTS //c# public Int32 IssueSerialNumber() { //Writes to a file monitored by a server service. When the service detects the appropriate code Int32 PassFail = LocalError.ERROR_GEN_PASS; StreamReader…
Last reply by MTSkull, -
-
-
- Administrators
- 11 replies
- 1.2k views
I use Lists from System.Collections.Generic constantly. Love em, love em, love em. Here's my question though. I would like to broaden some functions to work on many different lists that I have. I usually avoid using variables defined initally as 'Objects' just because it seems safer to use variables defined as the type of object that you're going to use. But, for this, it looks like defining an object and assigning the proper List to it might be the only way to accomplish what I want. My guess is that using the Object variable really shouldnt be bad as long as I only use functions that the List object has. I'm trying to cut down on code, but not at the cost of stabi…
Last reply by NeuralJack, -
-
- 0 replies
- 731 views
Hello Everyone i always use iTunes for my music but when i am on another program internet explorer for example i cannot use the extra keyboards functions to skip the track or pause it etc. i was wondering if there is a way for a program to run in the background so that when i am on internet explorer i can skip the track easily by using the extra keyboard functions? any help would be much appreciated Thanks Bluejag
Last reply by bluejaguar456, -
-
- Administrators
- 3 replies
- 1.3k views
Ok, I'm writing a user database for my company's intranet. The database uses an sql file to store user details. These details are displayed in a data grid. At the end of the datagrid, there is a button that allows the administrator to vnc onto a user's computer. Now when i run the application through visual studio, it works fine. When the application is run through iis, over the intranet though. nothing happens when the button is clicked. Protected Sub usergrid_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles usergrid.RowCommand ' If multiple ButtonField column fields are used, use the …
Last reply by PlausiblyDamp, -
-
- 2 replies
- 2.7k views
Hi, I'm trying to send a text file through the serial port to a blood glucose meter. When using the hyperterminal, that comes with Windows, it works, but when I try do it on my own using C# it doesn't. How does the hyperterminal send text files using the serial port? And how can this be done using C#?
Last reply by flowjob, -
-
- Administrators
- 6 replies
- 5.4k views
Hello! I wasn't sure if this should go into the ASP.NET forum, or the Database forum, so I'll cross-post in both. Anyway, I have just started getting this error (trapped by a try...catch...end try structure) in an app that has been functioning well for over 18 months. I am getting this in my development environment (Windows XP machine with a Windows Server 2003 SQL virtual machine), and since I am trapping the error, I don't get the full stack trace. Anyway, I don't believe that there is a single set of commands that trigger the error, since I can comment out one of the subs with DB access, and I still get the error. Just for reference, here is one of the DB r…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 856 views
hi all I have a gridview on my page, I happen to be looping through the grid row by row, at certain times, it is necessary to go in and retrieve a certain value in a cell in the particular row. I know that I can using the following cmd to access a cell once I know what cell I need: gvMembers.Rows(gridRow).Cells(1).Text But is there anyway that I can replace the cell number with the name of the cell, or the underlying datatype? Mike55.
Last reply by mike55, -
- 1 reply
- 3.9k views
Hi all. I'm wondering do we need extra code when we need to navigate through crystal report in ASP .Net Application? Like when handling DataGridPageIndexChanged on ASP .Net, we need to set the new page index and then re-bind the data source of the datagrid. I'm asking this in the context of ASP.Net Application since I know we don't need explicit re-bind in Windows Application. Thx for the help.
Last reply by amir100, -
How to add a font from windows...
by Guest -OniKaze--
- Leaders
- 4 replies
- 915 views
Hello every1! my problem is quite simple i guess...but i don't know how to solve it..=D i'm trying to add a windows font, in my case Arial, in vb .net 'cause it doesn't come with it, but i don't know how!!! Can any1 PLEAAAASE help me??? Tnx!!
Last reply by MrPaul, -
-
- 1 reply
- 1.9k views
Hello, I would like to display small window with web page inside window of antoher web page. is it possible? how to do this using HTML? Thanks! cyberjoe
Last reply by MrPaul, -
- 2 replies
- 5k views
Hi there, I'm a relative C# noob, trying to develop an app that will help me automate some of my everyday processes that are very basic and repetitive, but require me to pass variables between programs etc. I've been scouring the MSDN pages and http://www.pinvoke.net amongst other places to find out about mouse and key automation, and i have 90% of what I need - how to call functions from Win32 dll's, marshal the data etc, the only thing I'm in not sure of is how to actually execute it: Found this very useful snippet at http://blogs.msdn.com/robgruen/archive/2004/05/10/129221.aspx [DllImport("User32.dll", SetLastError=true)] public static extern int SendInp…
Last reply by monolith, -
-
- *Experts*
- Leaders
- 5 replies
- 7.1k views
The Undo/Redo is such a common theme in Windows apps that I'm wondering if Windows has a useful class to use that will make things easier on me. I dont know how it'd do it exactly, but asking all the same. What I want to do, basically, is Undo/Redo changes to a datagridview and some internal variables. The Changes that might occur from a user include row deletions, additions, insertions. But many internal variables are changing with this stuff too. Is .Net's UndoEngine what i'm looking for? Something else? Or do people usually just code their own undos?
Last reply by rbulph, -
-
- 0 replies
- 730 views
Hi, I'm not really sure where I should be posting this one, it's in the area of Word Interop, Windows Services and Asynchronous programming... I have a Class Library DLL, which contains a function that processes a Word document (opens Word, does some stuff, quits Word). The class library contains another function that basically just wraps this to allow it to be called asynchronously. When I include the DLL in a Windows Forms project I have and run it - it works fine, but when I include the DLL in the Windows Service project, it fails to process the Word Document, and also leaves Word open - even though the code goes into the catch section of the Try catch block w…
Last reply by joker77, -
- 0 replies
- 836 views
how can i use external font (font in same application directory) file (ttf) in my forms?
Last reply by hamid, -
-
- Leaders
- 3 replies
- 1.2k views
Hi, This may be a fairly straightforward one, but not having done much work in this area I just wanted to throw it out there I'd like to take a file, and prepend some data to it. This has to be done for several file types: PowerPoint presentations (.ppt) - take an existing presentation, and insert a new first slide Word Documents (.doc,.docx) - take a word document, add a new first page Sound Clips, Podcasts (.mp3,.mwa) - take a clip, and prepend a new start section Video Clips (.wmv,.mpeg) - same as for sound except with video Anyay, you get the general jist! Is this a case of just using a StreamReader and Streamwriter to create a new file based on mergin…
Last reply by snarfblam, -
-
-
- *Experts*
- 0 replies
- 15.2k views
Were happy to announce that Syntax Highlighting is back! The following tags are supported natively: vb vbnet cs csharp Usage is: [ CODE=visual_basic]VB code here[/code] The syntax highlighting system has support for many other languages. Usage is: [ code=<language>]Code goes here[ /code] Where <language> is a supported type (see below). So you cant use [ xml] ... [ /xml] but you can highlight xml through the syntax above. We've also turned on "Similar Threads". If you scroll to the bottom of a post, past the Reply box, you'll see a grid of similar threads that may be of use. Thanks, The Team at .Net Help Community L…
Last reply by Nerseus, -
-
- 6 replies
- 2.1k views
Hi all I am creating an anchor tag on my page, and I am placing a div tag inside that. Inside the div tag I am placing various asp.net controls. When the page loads the visible property of the anchor tag should be false. <a id="dControls" runat="server" visible="false" > <div runat="server" style="width: 301px; height: 64px" id="test"> <asp:CheckBox ID="CheckBox1" runat="server" /> <input id="Button1" title="Close" type="button" value="Close" onclick="Hide();" /> </div> </a> I have a html button outside of the anchor tag that should set the visibilty of the anchor tag to true using javascript. I also have another …
Last reply by mike55, -
-
- *Experts*
- Leaders
- 10 replies
- 1.4k views
According to MSDN,
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online