Topics
-
-
- Administrators
- 2 replies
- 1.4k views
Hi, Wonder if you could help me. I�m trying to create a text file with file names found in a directory and then add various characters. This works fine however I really don�t want the directory location inserted in the file, only need the file name. Is there anyway of manipulating my code to do this? Here is the code: ' Specify the directories you want to manipulate. Dim d() As String d = System.IO.Directory.GetFiles(StartForm.pdfloc) Dim en As System.Collections.IEnumerator en = d.GetEnumerator ' Create an instance of StreamWriter to write text to a file. Dim sw As StreamWriter = New St…
Last reply by JumpyNET, -
-
-
- Moderators
- 1 reply
- 726 views
Whats the fastest way to search a piece of text for a particular word??? Mike55
Last reply by Robby, -
-
- 1 reply
- 732 views
Hi, I have a C# program that calls a SP (MSSQL 2000) and I want my SP to first SELECT some rows and then UPDATE ONLY those selected rows. As my SP will run for quite a long time, I want my SP to allow other users to insert rows while the SP is running but I don't want other users to modify the rows I have selected to update rows that are inserted between my SELECT and UPDATE Here is my SP (simplified version) SET TRANSACTION ISOLATION LEVEL REPEATABLE READ /* Store the required rows in a table variable */ DECLARE @SelectedID TABLE (ID char (10) NOT NULL PRIMARY KEY) INSERT INTO @SelectedID SELECT ID FROM tableA INNER JOIN tableB ON ... WHERE ..…
Last reply by michael_hk, -
- 0 replies
- 1.6k views
Eg. "This is Line 1.\r\nThis is Line 2" Before exporting, c# will print out correctly, This is Line 1. This is Line 2 After the string, "This is Line 1.\r\nThis is Line 2" being export into xml. and import back, output or print the string.... it is literally the string "This is Line 1.\r\nThis is Line 2" is there anyway to preserve the line break after xml export/import. using replace \r\n with line break after xml export/import is not really a good idea. because sometimes the real text might have \r\n that dont mean to be line break. Please advise.
Last reply by pelican, -
- 6 replies
- 11.1k views
Is there any way to reverse the "Regular Expression Validator" to check for illegal characters. For example: If a string contains any of a,b or c I want the RegExp Validator to generate an error. If it contains any other characters I want it to pass. Any help would be much appreciated! // Kristoffer
Last reply by HJB417, -
-
- Administrators
- 7 replies
- 864 views
Hi Guys, I got a slight problem that could be very funny but i need help and fast. I am trying to create a logon page that takes the logon credential from a database but once i am using the multiple parameters the code does not check the parameters and just logs on even with wrong details....... This is the code for select statement Me.OleDbSelectCommand1.CommandText = "SELECT USERNAME, PASSWORD, GROUPTYPE FROM DBUSERS WHERE (PASS" & _ "WORD = ?) AND (USERNAME = ?)" Me.OleDbSelectCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("USERNAME", System.Data.OleDb.OleDbType.VarChar, 20, "USERNAME")) Me.OleDbSelectCommand1.Param…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.5k views
Hello all, I need help serializing a collection that is a property coming from the Iextenderprovider. The canextend is set to textboxes. I have it working when adding/removing components to the collection when the parent component(the extender) calls the collection editor. However, when I try to add a collection through Iextenderprovider with the set/get methods I am able to call the collection editor and add a sub component but when I recall the collection editor the components that I added are no longer there. I've searched for a few days trying to located a single instance in ether c# or vb.net where a collection is utilized in this way but havent had any luck…
Last reply by scali, -
- 2 replies
- 1.7k views
Hello, Is there any special reason, a timer not to work when used in a windows service application? I am using a VB .NET, below is the code of the OnStart method. Protected Overrides Sub OnStart(ByVal args() As String) Me.Timer1.Interval = 1000 Me.Timer1.Enabled = True End Sub If you need any more info, please do not hesitate to ask. Thanks, Aleksandar
Last reply by Alex_bg, -
- 0 replies
- 2.3k views
Are there any open source projects working on this? � I've found two commercial applications that do this, one is a converter that costs between 1k and 20k depending on what you want - and another is a plugin for Visual Studio allowing you to program in your language and export your project to a java project. � I know it sounds like a moocher, but I'm not doing commercial applications right now - so I prefer not to spend 1k+ for the convenience of OSX and Linux people. � I know Mono is doing pretty well, but I havn't tested Mono on OSX yet ( and I have no Linux box) so I was looking for another alternative. � As a note, there are quite a few Java Byte Code to IL/C…
Last reply by Denaes, -
-
- Administrators
- 1 reply
- 933 views
I keep receiving an error on my asp.net application which says: Server Error in '/' Application. -------------------------------------------------------------------------------- Line 1: Incorrect syntax near ')'. 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.SqlException: Line 1: Incorrect syntax near ')'. I believe this may be because I am passing a session variable into my SQL statement to search records. Because the user has kept the browser open and inactive fo…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 6.1k views
Hi There, I don't understand this one bit. I have created the crystal report from within visual studio, and i have created an aspx page that has the viewer on it, which references the report. When i build the solution, i get the following build errors: 1. Type 'ReportClass' is not defined. 2. Property 'ResourceName' cannot be declared 'Overrides' because it does not override a property in a base class. 3. Type 'Section' is not defined. 4. 'ReportDefinition' is not a member of 'QUIPS IS1.Rpt_REMSLabels_MembershipFile'. (Errors 3 and 4 are repeated numerous times) 5. 'QUIPS IS1.CachedRpt_REMSLabel_MembershipFile' must implement 'Overridable Overload…
Last reply by lcaniglia, -
- 4 replies
- 875 views
Hi, When the user opens a MS Access database, I would like to list the Queries & Reports listed in that .mdb file. How would I be able to do this in .NET? either using ADO, DAO or ADO.NET. Also, when the user clicks on a specific Queries or Reports, how can I start Access up from .NET? thanks
Last reply by bornbroke, -
- 1 reply
- 960 views
My challenge right now is to encrypt the data stored in a database with a VB.Net application I am developing. I have a function to encrypt the data, but I can not figure out how to send it values in the dataset. I have no problems binding controls to my dataset, but when the application opens I want to send each value in the dataset to the function that decrypts the value so the data can been interacted with by the user. Then I want to send each value to a function to encrypt it when the app closes. This way the data stored in the database will always be encrypted. I can not find a way to edit values in the dataset unless it is through a bound control. Is ther…
Last reply by Machaira, -
- 3 replies
- 813 views
We produced a utility program, and got this feedback from someone who installed it on their PC. I can't for the life of me work out what could cause this... Now - these buttons are just standard windows forms. The button captions are defined at design-time, and the only issue with them is that a couple get hidden then unhidden. I really have no idea about this - any thoughts? :confused:
Last reply by Machaira, -
- 3 replies
- 2k views
Hey all, I'm new to the whole office integration side of VS.NET. I have to open an excel file, dump data into it and then print it. The problem is that I can't for the life of me figure out how to insert a column. When I try I keep getting the same error. Here is where it errors out. oSheet.Columns.Insert(Excel.XlInsertShiftDirection.xlShiftToRight,False) The error message says that it can't shift non blank cells off the worksheet. I know how to put data in but this is the only part that is holding me up. Thanks to anyone who replys.
Last reply by mark007, -
- 2 replies
- 881 views
if i make a label and set the font into bold, strangely the last letters in the label shrink.... if i make the text longer, only the last letters shrink, the one in the middle not anymore.... see pictures : labelshrink.jpg for .net to compare labelshrink2.jpg in VBA (Excel) any idea...?
Last reply by mark007, -
-
- Administrators
- 5 replies
- 1.3k views
I have a question about locks because I am seeing behavior that does not match what I though was the correct behavior. I thought when you put a lock around code the first instance that ran it would of course get access and then each access after that (while the first instance is still executing the code) would be essentially queued up on that lock waiting for the first to exit. But what I am seeing is that the last one there is the first to get access to the code... which doesn't make sense. If someone can shed some light I would appreciate it. Below is an example of the code and the data that it returned you can see that 4 lines that were logged before the lock and t…
Last reply by qex, -
-
-
- Administrators
- 2 replies
- 2.2k views
This is for an asp.net 2.0 site, but I think the VB should be similiar. I am using an access datasource, I set up a sub update db that checks the textboxes and updateds the Database. Basically I want a fully editable Gridview. i think Sqlcommandevent args is what i need I believe sql and access share some properties. Here is my error, my code is below that. I understand(i think) why i am getting the error but I am not sure how to correct it. BC30408: Method 'Public Sub Updatedb(sender As Object, e As System.Web.UI.WebControls.SqlDataSourceCommandEven tArgs)' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArg…
Last reply by gtjr92, -
-
- 27 replies
- 8.3k views
Hi, How can I make it so that no matter what screen resolution my application runs on, that it resizes the forms and all the controls to work with that resolution. I am so close to getting it out onto the market but this one thing is holding me up. The application was build on 1024 by 768 and needs to run on 800 by 600. Can someone please give me a hand. Thanks.....Dale
Last reply by AlexCode, -
-
- Leaders
- 3 replies
- 13.1k views
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
Last reply by woklet, -
-
Who's Online 0 Members, 0 Anonymous, 67 Guests (See full list)
- There are no registered users currently online