Topics
-
-
- Leaders
- 4 replies
- 754 views
Hello, I hope someone can help me figure this out. I have coded an application that will send a mail message to a list of about 250 e-mail addresses. The program connects to a database in order to retrieve this list, then adds them to an Array and then goes through this erray to send the mail message to each address. This process works fine, but I wanted to have my program display in a label a message that shows the user what is the program doing at a certain point. For example: "Connecting to database..." "Retrieving list of addresses..." "Sending message to: address@email.com" etc.. The problem is that as soon as I click on the Submit button the program freezes a…
Last reply by snarfblam, -
-
- 4 replies
- 1k views
Hi, I have a fully working plugin system now, but I always want to go further. I want a CheckedListBox control with all plugins found in my plugins folder. I want that a user can select the plugins which he wants to use. But how can I do this? does anyone this, or has a good tutorial?
Last reply by MrLucky, -
- 0 replies
- 5.9k views
Over the past few days I have been working on an application that iterates through dBase files and outputs the information in a listbox or datagrid. I seem to have gotten the connection string right as I don't get an error when I open the dbf file, but, whenever I add in the DataAdapter and DataSet I get an error. It might help to know that I am using VS .NET 2005 and I am trying to connect to the dBase files using ODBC. Below is the code I am using and an image of the error I get. OdbcConnection conn = new OdbcConnection(); conn.ConnectionString = ("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=21;Dbq=I:\\MDT_1.4\\;"); try { …
Last reply by pcaddict, -
-
- Leaders
- 5 replies
- 1.7k views
i am using the clipboard to copy and paste text on the textcontrol. Which seems to work fine on some computers well as others it throws me the following error. Cannot read from or write to the clipboard (01-1603) throwkernelerror One thought I had was after each paste of the text or before I set the dataobject in the clipboard, i call the garbage collector. My thought is that something the computer is doing is locking the clipboard and calling the garbage collection will free the clipboard up.
Last reply by snarfblam, -
-
-
- Leaders
- 4 replies
- 1.2k views
I have placed a Tab control and a Text box on a form. I have a background image on the form. If I place a Checkbox on the form and set its backcolor to "Transparent", the image will show through the Checkbox. I would like to have the Tab control and Text control do the same thing, but they don't support the backcolor property. The MSN messenger program allows something similar to this. The textboxes allow the image to show through. This is what I am after. Is there something I'm missing? Does anyone have code that shows how to do this? tia, flynn
Last reply by snarfblam, -
-
- 0 replies
- 967 views
I am binding a data grid control to an array list that was populated via a data reader. The code is below while (dataReader.Read()) { Company company = new Company(dataReader.GetString(0), dataReader.GetString(1), dataReader.GetString(2)); companies.Add(company); } } this.dgTest.DataSource = companies; This first item in the data reader is the CompanyID, 2nd is CompanyName, and 3rd is ContactName. When the data is displayed in the data grid the columns are reversed - ie the 1st column is ContactName, 2nd column is CompanyName, and 3rd is CompanyID. How do I populate the data grid so the columns are in the same order as the data re…
Last reply by Weste, -
- 7 replies
- 1.1k views
:p hi is it possible to declare a variable in such a way that it maintains its value even in other forms. iam using vs.net 2003
Last reply by alien, -
-
- Administrators
- 1 reply
- 1.5k views
Hi, i wrote a windows services that permit communications between windows applications. Is everything OK when I use it on a machine with only one NIC. In some special case I need to use it on a machine with two or more NIc of different subnets. In this case the service starts and works normally for a little, then all my task report that the connections have been closed and they can't establish a new connection. I use TcpSocket and TcpListener on a Windows2003 Server machine with Framework 2.0 installed. Can you help me? thanks
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.7k views
I am having some difficulty deploying a web service I have created in VB .NET. The application works fine on my development PC and on Server1 (with IIS 5.0). However, the application gives an error when invoked on Server2 (IIS 6.0). After some investigation I have discovered that the error is related to the MSXML libraries. I have only one web method called �Hello World� in the web service. The �Hello World� service simply returns an XML string. Server1 correctly returns: <?xml version="1.0" encoding="utf-8" ?> <string xmlns="testObjects">Hello World</string> Server2 returns this error: COM object with CLSID {88D969C0-F192-11D4-A65F-004096325…
Last reply by brazilnut52, -
-
- 1 reply
- 984 views
Hi, In my gridview, I have two BoundField columns and a templatefield column as follows <asp:GridView> <Columns> <asp:BoundField DataField="ams" HeaderText="Ams" ReadOnly="True"/> <asp:BoundField DataField="ams_desc" HeaderText="Desc" ReadOnly="True"/> <asp:TemplateField HeaderText="AmsTest" ItemStyle-Wrap="true" HeaderStyle-Width="120"> <ItemTemplate> <asp:TextBox ID="txtStudents" Text='<%# Eval("val") %>' AutoPostBack="true" OnTextChanged="HandleTextChange" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> </Columns> &…
Last reply by Jay1b, -
- 0 replies
- 561 views
I have a form with six Windows Media Control videos on it. I was wondering if it is possible to load videos to the controls Asynchrously? Pseudo Code: Grab video URL from XML Load Video(i) from URL Pause Video When it Starts Playing Grab Next Video Any help or suggestions would be appreciated, i'm not apposed to using a different video control.
Last reply by kentheprogger, -
- 0 replies
- 2.3k views
im making an auto-update program which uses a webservice, this webservice does all returning the version of the patch and all that, including the file itself which i return as byte array, its already working when it comes to waiting until it is fully downloaded, what i did is make a structure for both the byte array and the length of the byte array, in my program i loop until the size of the data is the same as the length of the PatchFile Public Structure PatchFile Dim data As Byte() Dim length As Int64 End Structure but doing this sometimes gives me a Not-Responding application, having Nothing on data even if did request for it. is there a better way to r…
Last reply by lamy, -
- 2 replies
- 1.1k views
Is there a tutorial that will show me how to bind a DataGridView to a dataset that is linked to a database, and successfully update the records. I cannot seem to figure out how to make a UpdateCommand work successfully. I am using VS 2005 and VB.Net THe code below is my attempt. I am unsure how to actually force an update Public Class EmulsionAgeData Private Cnn As New SqlConnection(myconnectionstring) Private Cmd As New SqlCommand Private DS As New DataSet Private DA As New SqlDataAdapter Private UCmd As New SqlCommand Private Sub EmulsionAgeData_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load With …
Last reply by Cags, -
-
- Administrators
- Leaders
- 14 replies
- 1.3k views
Hey guys - included here is the source code for a game I'm creating called 'Nukerz', a bomberman clone that I'm sure you're all familiar with. Anyhoo, the problem is with the timers I use to move the player around - they only seem to last for about a second before cutting out by themselves. Simply run the program and click the 'test' label, and wait a few seconds to initialize it. The controls use WASD. Please get back to me as to why the movement is staggered - I haven't even implemented collision detection yet, so I'm at a loss. Oh, the movement code resides in the 'Player' class! Thanks Nukerz.zip
Last reply by CryoEnix, -
-
-
- Administrators
- 1 reply
- 695 views
I wanted to programmatically create SqlServer JobSchedule The job is to copy data from a particular table in one Database to another table in another DataBase User should be able to Schedule/modify Date and Time on which a job is to be executed is to be configured through a UI Screen (WebForm.aspx) I am using VSStudion2003 ,ASP.net with VB.net with SQL2000 as database :confused: :confused:
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.9k views
Hi all, I am opening a window as a modal dialog box and returning values to the parent window after some database operations which need to be reflected to the parent window. For that I want to refresh the parent window upon the unload of the child modal dialog box. for that in child window's body tag I added: onunload="this.opener.location.reload();" But it raises an error stating that this.opener.location is null or not and object. Kindly Help. Its kinda urgent Thanks in advance Ashutosh
Last reply by ashutosh9910, -
-
- Leaders
- 6 replies
- 1k views
Ok, so I have a string variable (strSeatName) that holds the name of a label (lblSeat1) and I'm trying to change the color of that label without hard-coding the label name in the command (since it's inside a For loop that changes multiple labels named lblSeat1, lblSeat2, lblSeat3, etc...). Here is the command I need to use: lblSeat1.BackColor = System.Drawing.Color.LawnGreen Except that I need to get the part where it says "lblSeat1" out of the string variable. I'm sure this is easy. I'm just a n00b. Suggestions?
Last reply by Cags, -
-
-
- *Experts*
- 3 replies
- 1.1k views
For some reason, when I try to access a database diagram on our new 2005 SQL Server, I get the following error msg: "Database diagram support objects cannot be installed because this database does not have a valid owner" It then goes on to instruct me to either use Properties > Files or ALTER AUTHORIZATION to change the database owner. Well, I've done that - and it clearly shows that there is an owner of the database, but even if I log in as that owner, the error msg continues to come up everytime I try to access Diagrams. I found a post to run the following stored procedure which will set the sql server compatability level: EXEC sp_dbcmptlevel databas…
Last reply by Puiu, -
-
-
- Leaders
- 2 replies
- 1.1k views
I've started looking into stack trace and reflection class. I am only able to access method calls. Is there a way to get the local variables that were assigned? The stack has a big list of variables but I can't tell what they are. I want to build a debug file that tells me what the program did in a very readable format. Any links or suggestions appreciated.
Last reply by onez, -
-
-
- Administrators
- *Experts*
- Leaders
- 4 replies
- 3.5k views
Not much is said about the new ?? operator (maybe it's not an operator - who knows?) but it's there in C#. It's meant to work as a coallesce on nullable types, which can be declared with the new ? syntax. For example: int? x = null; // Same as Nullable<int> y = null; The new syntax of "int?" declares a generic Nullable type, but easier. Most people know about this. What I just learned is that to return a "default" value of a null int, you can use the new ?? syntax. For example: int? x = null; int y = x ?? 0; This says, if x is not null, assign the value to y. If it is null, use the righthand side, or 0 in this case. You can use any expression in pla…
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 43 Guests (See full list)
- There are no registered users currently online