Topics
-
- 2 replies
- 1.6k views
Hi, I am working on a Sales Order Confirmation ASP.net application (Sql Server 2000). In this application there is an Excel file that has to be uploaded every month that contains the Sales FORECAST given by all our Customers for the next 12 months. It has the following format (these will be the columns of the excel sheet) CustomerId ProductID Year Jan Feb March April ... ... Dec In the JAN to DEC columns the Customer specifies its forecast for that month. I would like to know the best Database structure that I should use for importing this excel file. The easiest way would be create a table with a structure similar to the excel file, but what I will…
Last reply by Joe Mamma, -
- 0 replies
- 1.3k views
We have a visual basic.NET application and we use this application to scan images into the system. We are scanning them in as black and white. Its a bubble sheet and we want to determine if a bubble is filled or not. Currents we are comparing the RGB value of each pixel to see if it is black or not. My question is do we have too compare the all 3 values of the RGB if we are scanning in at black and white not colored. If not what value do we compare the R the G or the B? Any help offered is greatly appreciated.
Last reply by lothos12345, -
- 10 replies
- 3k views
I'm following these pages from Mircrosoft: http://support.microsoft.com/?kbid=317109 http://support.microsoft.com/kb/306022/ I have created the following methods that are called when you click on a button. 'Almost a verbatim copy of the sample code in one of the links above Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim oExcel As Object Dim oBook As Object Dim oSheet As Object 'Start a new workbook in Excel. oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add 'Add data to cells of the first worksheet in the new workbook. oSh…
Last reply by mskeel, -
- 2 replies
- 2.2k views
Hi all, I want develop a DLL in C# and make it possible to use in an old VC++ 6.0 application. How can i do it? This dll will be created with the purpose to access to a SQL SERVER EXPRESS database and return some values, and that values will be used in my VC++ 6.0 old application. Any help will be greatfull, Thanks in advance, Tiago Teixeira
Last reply by teixeira, -
- 1 reply
- 2.2k views
I am trying to create a structure that contains an arraylist of another structure. As far as I know an arraylist can be a member of a structure and an arraylist can contain any object, including another structure... so I don't know what the problem is. The compiler is stopping on results.elementArray.Add(elementInfo) and saying: "An unhandled exception of type 'System.NullReferenceException' occurred in application.exe Additional information: Object reference not set to an instance of an object." I think it is upset about elementArray. Can anyone offer any advice? Here is the code: Module ModuleParse Structure elementStruct Public name As Str…
Last reply by martialarts, -
- 3 replies
- 1k views
What is the best way to create an event that fires at 8am everyday? I have a method now that works, but I am sure it's not the best way. Maybe there is someway using API or something in .NET 2.0 that I am unaware of. TIA, Pinky
Last reply by rbulph, -
-
- *Gurus*
- 6 replies
- 1.1k views
Hi, I need to cover a part of my form with a transparent layer. It should not be fully transparent though. If I could just use a Panel and set it's opacity using a trackbar it'll be fine. But the panel doesn't have an opacity property. :(
Last reply by Cags, -
-
-
- Administrators
- 4 replies
- 1.2k views
I'm trying to start an IE process so that the browser can launch the proper application after bringing the file into the browser in order to bring up the associated file. code is as follows: <code> Process.Start("IExplore.exe", "C:\Temp\myFile.txt") </code> The file "C:\Temp\myFile.txt" exists on my local hard drive. It's a small text file. No error occurs after the statement is executed. Another application doesn't for the file doesn't pop up at all. How can I get the proper application to launch? What am I missing?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1k views
It's annoying that the menu items show like links. Can't I change that (in some other way than changing the way links look on that page) ?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 506 views
I am trying to write a programming code in Visual Studio and it is not working right when I enter the donor ID I get a message that says it is not found can anyone tell me what i am doing wrong here is the code: using System; namespace ETS { struct myDonor { public string donorID ; public string donorName; public double donorAmt; } /// <summary> /// Summary description for Class1. /// </summary> class Class1 { static string donorID; static myDonor[] donor= new myDonor[3]; static void myDonor() { // initialize customer #1 donor[0].donorID = "B505"; donor[0].donorName = "Campbell"; donor[0].donorAmt = 50.00; // initialize customer #2 donor[1].donor…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.2k views
Hi, I'm trying to create a web page which allows me to list the members of the local Administrators group of a client system. I found some code parts which can list the members (using WMI) but these cannot add or remove members from the group. I switched to using a DirectoryEntry object but when I run the code below, only one account is returned although the administrators group contains more (both local and domain) accounts. (note that txtOutput is a textbox on my webpage). Can someone help me out? Dim strComputer As String = "computer" Dim strAccount As String = "administrator" Dim strPassword As String = "secret" Dim locPath As Stri…
Last reply by MaDMaRTiGaN, -
-
- Administrators
- 1 reply
- 2.8k views
Can anyone tell me if there is any performance issues/advantages /disadvantages in using QueryString when compared to Session ?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 7 replies
- 2.2k views
hi to all, I have a dll that i use to execute a dts through a c# application. The dll has 2 classes in it. One to execute the dts and the other to "catch" / treat the events that the dts fires. While the dts is executing it fires an event (among others) that indicates the progress of the execution. The event is something like this [csharp] public void OnProgress(string EventSource, string ProgressDescription, int PercentComplete, int ProgressCountLow, int ProgressCountHigh) { //code here } [/csharp] Now in the other class in the same dll i have a method called ExecutePackage that executes the dts. im my form all i do is create a instance o th…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 987 views
Is there a simple way to detect when a control or any of its contained controls gets focus? I could loop through all of the parent control's contained controls and add a handler for the getfocus event of each of them and also for the parent control, but I would have imagined that there might be an easier way. Some sort of FocusPreview property of the parent control? I can't see anything.
Last reply by rbulph, -
- 0 replies
- 1.3k views
Hi Professionals In few days i have to start the working on a new commercial project using the Asp.Net and VB.Net with the SQL Server at the Back end. At the moment I didn't have any experience in the AJAX but I want to use some AJAX style in the application for rich user experience. I want some information from you guys that Which AJAX Framework for Asp.Net 1.1 is Best suitable for a commercial project because I cannot take any risk in this application. If anybody from you guys use any AJAX framework in any commercial project then can he please tell me that what type of problems he faced during the development. Thanks, -----
Last reply by AsifCh, -
- 0 replies
- 638 views
hello, i'm writing a small program that traverses a webpage once it's loaded in the browser and alters parts of it. however using the dom facilities i'm unable to get past <link> or <style> tags. the .childnodes property doesn't report any nodes past here. this is a problem as i really want to access the rest of hte page. if these tags aren't present, the .childnodes property is fine, and i can access it. if i open up the webpage in vs then it reports "the active schema does not support the element 'link'", however that doesn't really shed any light as to why i can't get any further. if you need any further info, just ask. :) thx
Last reply by hansbrix, -
- 4 replies
- 979 views
ok, should be simple, but i'm having a hard time getting this to work. I have a combo box that is populated with the following. da.Fill(ds, "Subscription"); cboSubscriptions.DataSource = ds.Tables["Subscription"]; cboSubscriptions.DisplayMember = "SubscriptionNo"; cboSubscriptions.ValueMember = "SubscriptionID"; Value Member DisplayMember 1 2323235235 2 3352525233 3 4564564564 etc.... This works fine but once the combo box is populated is where i'm having my trouble. I'm getting some values out of a database table that have the 'SubscriptionID' in it. How can I take the da…
Last reply by reagan123, -
-
- Leaders
- 9 replies
- 1.7k views
How do you set the mouse cursor to nothing. I want the ability to hide and show the cursor on my form. I can think of a work around whereby I move the cursor to the bottom left corner of the screen but this isn't ideal.
Last reply by JumpyNET, -
-
-
- Administrators
- 1 reply
- 1.7k views
Hi, I am using pictureboxes as buttons in VB .net. The main reason is to have a background image and when clicked on it changes pictures and when the mouse button is released the image is changed back to default image. My problem is each time the button is clicked it uses more and more memory after a couple of clicks - i do use "cleanup" code for the objects used. The code for loading my images is in an class. Friend Sub LoadImageFromRes(ByVal ImageResName As String, ByVal DestCanvas As Object) Dim tmpResBitmap As Bitmap 'Temp Bitmap from resourced Dim tmpBitmap As New Bitmap(CInt(DestCanvas.Width), CInt(DestCanvas.Height)) 'Temp bitmap to draw t…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 6 replies
- 2.9k views
Determine number of rows in oledbdatareader... I need to find out how many rows are in my datareader. The code is as follows: Dim myReader As OleDb.OleDbDataReader = Nothing Dim myCmd As New OleDb.OleDbCommand("spQryIssue") myCmd.CommandType = CommandType.StoredProcedure myReader = myDB.RunMyDataQuery(myCmd) Is there something like myReader.rows.count() I know you can do Do While myReader.Read but I physically need the number Thanks Simon
Last reply by lidds, -
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online