Topics
-
-
- Administrators
- 4 replies
- 1.4k views
Ive figured out a way to read a text file while in use and read each line when two files are not the same (the one being used by another process and duplicate one i made for vb access.) The problem lies in this text file being somewhat large >1MB and you know when my timer keeps checking for changes and loading the text file all over again it MAJORLY hogs up cycles. My question is: Is there a way to keep it so the text file in question is loaded into the ram or something? Maybe buffering if i understand what that means correctly. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'check to see if fil…
Last reply by neodammer, -
-
- 6 replies
- 1.4k views
Hi All, Does anyone know how I can read from an Excel file? Any help will be greatly appreciated.
Last reply by SonicBoomAu, -
- 6 replies
- 1.3k views
I've been working with the Windows Forms datagrid (groan) for some time, and have built up a small collection of classes (that are by no means complete), that handle things like combobox columns, multiline textbox columns, clickable boolean columns, and coloured rows based on values. I'm wondering if some enterprising person would like to take a copy of these and host them somewhere (in source form) so that we, as a community, can create a complete datagrid control that exceeds the capability of the base Datagrid class. They're not very neat, and some work could be done to merge the functionality of them (for example, the colored rows code could be merged into the b…
Last reply by mskeel, -
-
- Administrators
- 14 replies
- 1.7k views
How can I determine on a computer if it has the .NET framework installed? Some registry key?
Last reply by JDYoder, -
-
-
- Administrators
- 9 replies
- 1.1k views
How does one replicate such a lovely menu? I'm creating an application but when I add the main menu I get ye old'e internet explorer one... where I'm actually after the lovely multi-coloured .Net menu with the nice icons. I've looked around on the net and the solution seems to be either huge amounts of coding (which I've failed to get to work) or an external .dll which is not an acceptable solution atm (all coding must be my own). Any ideas guys? I'm pretty new to .Net but want to learn with the hands on approach. Favoured language is C# but any example code or pointers will be warmly greeted. Thanks!
Last reply by Goksly, -
-
-
- *Experts*
- 4 replies
- 1.6k views
I have a new error on my page. I enter in a new grant, it does not have any budget data. When I click on the tab, this new error comes up. In the application, the user enters in a new Grant. There is in Budget data for the Grant. When a user selects the Budget tab, the page tries to retrieve the Grant's Budget data, but there is none in the table. The previous developer did not understand that with ASP.NET, you cannot get an empty record set. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it origi…
Last reply by Bucky, -
-
- 1 reply
- 1.2k views
When I enter in aaa'aaa4"4aaa then try to excute the save query, I received the following error. I believe this is caused by the text sting going into the query text. Is there anyway around this error? Server Error in '/' Application. -------------------------------------------------------------------------------- Line 1: Incorrect syntax near 'aa1'. Unclosed quotation mark before the character string ''. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlExcept…
Last reply by kahlua001, -
- 2 replies
- 1.1k views
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
Last reply by woklet, -
- 2 replies
- 1.3k views
We have a test webserver. It points to our test database. I compile the code in "release" mode and have it on the server. Only maybe 10 people use this test server. From time to time, we get errors like "page cannot be loaded" or "server is not available". If we keep retrying, then it connects. If I delete the "asp.net" folder, recompile, reboot..it acts normal for couple of days and then it restarts the errors.. What do I need to do?
Last reply by eramgarden, -
- 5 replies
- 867 views
Well. . . I bought Infragistics NetAdvantage 2005 v2 with subscription and I must say it is quite a package. It comes with COM controls (for native development in Delphi, VB.Sux among others), ASP.NET controls and Windows forms controls. The subscription also comes with complete source code (worth the price of admission, itself!) I highly recommend the product. Anyone else using Infragistics?
Last reply by Joe Mamma, -
- 1 reply
- 1.7k views
Hi, Have a checkbox on my form, that has the postback enabled. What I would like to do is to display a confirm dialog asking the user are they sure they want to do this if the checkbox is checked true. If they click ok, then that no problem, however if they check cancel, I want to reset the checkbox back to its previous value. The approach that I am using to display message dialogues and confirm dialogues is as follows: 1. I add the following between the </form> and </body> tags <script> <asp:Literal id="ltlAlert" runat="server" EnableViewState="False"> </asp:Literal> </script> 2. I add a withEvent declaration into the…
Last reply by eramgarden, -
- 0 replies
- 711 views
I'm trying to get the Active Title Bar colors from my system settings in code. I see the active title bar color the SystemColors collection but I can't find the 2nd color that creates the gradient. Any help?
Last reply by kasdoffe, -
-
- Leaders
- *Experts*
- *Gurus*
- 56 replies
- 5.8k views
What age did you start programming (with visual basic.... or something related)? Well.... I'm 12 years old, Im halfway done reading "Visual Basic.NET 2003 Step by Step", and I can program O.K. with VB. I also know Photoshop 7.0 really well. And I know practically everything In Microsoft Frontpage 2000. Also, Macromedia Flash MX is another thing i am a *expert* at. I have months of experience with these programs. Next year I will be learning OpenGL (no joke). I take my time and effort for everything that I do. I hope eventually when I grow up these skills will do me good and look good on my resume :cool: . At school I know everything about computers (im a comp. geek;) ) pe…
Last reply by neodammer, -
-
-
- Administrators
- 5 replies
- 887 views
Hey peeps, need some help if possible! I have developed an application for work that displays our warehouse graphically using the fillRectangle method of the graphics class. Now what we have at the moment, is when the user resizes the form, it does redraw the data in the way we intend it to, but also keeps the original drawing in place, so infact we now have two different sized array of drawings, View attachment for a visual representation. ( Totally skinned down gif, no color no fancy graphics, just b&w pure filth ) For coding, I have added the text to text files rather then adding the whole project. Gav Cheers all Gav form1.txt generic.cs.txt
Last reply by gRoberts12, -
-
- 9 replies
- 1.3k views
Lets say I have a web pages html code right? with 100's of jpg links saved to a variable. I was wondering how would one program (vb.net) to extract the links. If you think about (most) links to jpg's are ...../picture.jpg right? so then i guess if one could maybe loop a search function into pulling out everything from the "/" to the "g" it wouldnt be so hard then you could just add on that /picture.jpg to the entire path and just use a simple download control. Any suggestions as to how to write this? ive tried searching on this forum and MSDN on how to do this but cant find exactly what im looking for.
Last reply by Joe Mamma, -
-
- *Experts*
- 2 replies
- 971 views
For some reason, my ASP.NET web service will not correctly return exceptions to the client machine. The .NET Framework SDK says that a web service should return a SoapException whenever a server-side error occurs, and the client should see some sort of <fault> element. All the client sees, however, is a generic "HTTP 500 Internal server error". I even tried explicitly throwing a new SoapException, but with the same result. I'm thinking that there is a certain project property that is not set correctly, but I can't find it for the life of me. What do I need to do to allow the web service to return exceptions to the client? Thanks.
Last reply by Bucky, -
-
- 4 replies
- 1.7k views
I have a datagrid for a user to edit records. It will load "ALL", "OPEN" or "CLOSED" records depending on a value selected from a dropdown. With "ALL" and "CLOSED" records, any records that are closed are not (or should not) be available for editing. It will depend on whether or not the cell containing the close date has a value. Is there a way to disable a row when a date is present in the "close date" cell? Thanks in advance.
Last reply by lorena, -
- 3 replies
- 1.7k views
Whew, the title was tough in itself... now for the question... The background: I have an app that tracks problems and fixes. With each problem there is a date that is set that the problem has to be fixed by. All problems and their dates are stored in a sql server db. Along with all project leaders, assignees and their contact information. The problem: An email needs to be sent to the project leader if the date is 2 days away, the current date or if it is overdue. With a status or a reminder that says "Hey, your people need to get on the ball, time is coming (passed or today) etc." It also needs to have minor details about problem. So basically, it needs to check…
Last reply by college_amy, -
- 3 replies
- 2.4k views
Hi all, Went looking on the net and found the following procedure that takes a comma seperated value as an input parameter and then processes it: CREATE PROC dbo.GetOrderList2 ( @OrderList varchar(500) ) AS BEGIN SET NOCOUNT ON CREATE TABLE #TempList ( OrderID int ) DECLARE @OrderID varchar(10), @Pos int SET @OrderList = LTRIM(RTRIM(@OrderList))+ ',' SET @Pos = CHARINDEX(',', @OrderList, 1) IF REPLACE(@OrderList, ',', '') <> '' BEGIN WHILE @Pos > 0 BEGIN SET @OrderID = LTRIM(RTRIM(LEFT(@OrderList, @Pos - 1))) IF @OrderID <> '' BEGIN INSERT INTO #TempList (OrderID) VALUES (CAST(@OrderID AS int)) --Use Appropriate conversion END SET …
Last reply by mike55, -
- 4 replies
- 5.4k views
I was wondering if someone could help me out with being able to double click an item in a listview, and then have that item appear in a textbox. What is in the listview is just strings from a database.
Last reply by Talk2Tom11,
-
Who's Online 0 Members, 0 Anonymous, 63 Guests (See full list)
- There are no registered users currently online