Topics
-
- 0 replies
- 739 views
I'm curious if any members are planning to attend this year's event. I'm sure the moderators who are attending the conference will post here so members will know in advance if they'll have a chance to meet with a staff member or two in person. :) Don't miss this opportunity to network with your peers, meet online acquaintances, and get to know the people and faces behind the community. So, will you be joining us?
Last reply by SoftWareRevue, -
- 3 replies
- 2.7k views
Hola everyone.... been away for a while but I am back now. Working on a new project now... working on a server based off of the Multi-user Chat program off of the Microsoft site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet08282001.asp I understand a bit of it but I am new to both network programming AND threading. The problem is that the server in the example makes a Client object for each client connecting to the server and runs each object in a separate thread. They have a way of passing events out of the thread to the main process... but I want to be able to disconnect all clients and stop the server from listening wit…
Last reply by NeuralJack, -
- 2 replies
- 1.1k views
Hello, I am having a problem pulling data from a row Double-clicked in a vb data grid. What I want to do is double-click the row, put the first column's contents in one text box, the second column's contents in a second text box. Unfortunately the row index I am getting back is always -1. I have tried: Dim pt = New Point(e.X, e.Y) Dim hit As DataGrid.HitTestInfo = Me.dgExtract.HitTest(pt) rowIndex = hit.Row But in debug mode, when I hover the mouse over rowIndex, it is alway -1. I have tried this: Dim rowIndex As Integer rowIndex = Me.dgExtract.CurrentRowIndex Me.txt_BatchNumber.Text = Me.dgExtract.Item(rowI…
Last reply by lauriemc, -
- 2 replies
- 1k views
So, sure the TcpListener will sit there and listen.. but for an app of mine i'd like the Client to sit there and wait for a Host to accept the connection. The way I'm doing it is putting the TcpClient.connect through a Loop. I just dont like how each time the TcpClient attempts to connect and fails it throws an Exception. Is there another way to make the TcpClient just sit there, quietly, waiting for a host to accept the connection w/out throwing socket exceptions? So far i have tried TcpClient.connect, TcpClient.BeginConnect with AsyncWaitHandle.WaitOne(), etc. No luck... probably because the connection method actually exits on a connection failure each time.
Last reply by NeuralJack, -
- 3 replies
- 803 views
I have a products page containing an image, theres also a button to enlarge image. I want this to be a new window just containing the image, like a popup. In my page load i've got Response.Write("<script>self.resizeTo(285,439)</script>") This looks okay but could do with improvement. How can I get just a plain window, no scrollbars, no address bar etc. Can it be done? Thanks
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 726 views
Hi there, I have a Form, upon which I have a UserControl. The OnLoad event of the UserControl contains some code to load in values from an XML file. In the IDE, when I open the Form, an error is thrown because when it's pulling in the UserControl the .Load is looking at a null value (in runtime it's fine because this value is set). Is there anyway to get around this? It's not causing a problem, just an annoying error message comes up whenever I load the project into the IDE, or open the Form.
Last reply by joker77, -
-
-
- Administrators
- 3 replies
- 647 views
I'm using the following lines of code in my project to change the UI languager: CultureInfo ci = new CultureInfo(""); //invariant culture ci = new CultureInfo(GetLanguage); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageResource)); My language resources are in my main project folder, but I've set up a sub-folder called LanguageResources which I'd like to move them into. First off, when I moved them, the class LanguageResource was preceded by a .LanguageResources namespace above the class declaration, I changed that but I'm still having the problem - on the line to instantiate the ComponentR…
Last reply by joker77, -
-
- 0 replies
- 484 views
Hi I'm looking for an idea for the best way to store an ArrayList that's part of the Application Configuration. The ArrayList will store the list of languages the Application supports plus a description of each, so values will be for example: "en" "English" "de" "German" "es" "Spanish" I'm looking to build in a combobox which will allow the User to select the language for the UI, the different languages will be stored in .resx files.
Last reply by joker77, -
How would I get .NET to play a WAV file?
Last reply by bri189a, -
-
- Leaders
- 1 reply
- 1.5k views
I have an axwebbrowser control on my form that navigates to a certain website that has a flash ad at the top of the page that is about 50 pixels tall.. what code could I use to get rid of that? I was trying to see if I could just set the top margin of the browser to like -50 but I wasn't sure how to do that or if it was even possible. If you need more information just tell me. Thanks. Lance
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 839 views
Let's say I have a stored procedure SP_Master with a code similar to this: create proc sp_master as begin begin tran exec sp1 exec sp2 update table1 set... rollback end My question: the rollback statement will also rollback the changes made by sp1 and sp2? Thanks
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 7 replies
- 3.9k views
Split from Here - PD Nice article from Peter Bromber ASP.NET vs PHP or PHP.NET?. May be you could have both and even under Linux/Mono?
Last reply by bri189a, -
-
-
- Administrators
- 2 replies
- 666 views
Okay, so as the title implies, I have a program that has functionality that will be changing frequently. What I'm wondering, is what you guys think the best way to do this is. I have a program calling a dll (both that I've written). The dll will change slightly from time to time. So what I want, is for the user to be able to copy/paste a dll into my program folder overwriting the existing one. and/or have an updater app that downloads the dll from a website and automatically overwrites the old dll. Obviously I'll be using an interface which wont change, but the way the function(s) do their work will change. What is the best way to have my program call this dll?
Last reply by mskeel, -
-
-
- *Experts*
- 2 replies
- 1.2k views
I'm adding rows to a datatable, however the automatically generated autonumber differs from the from the automatic number when updated to the database. How can i add rows to a datatable initial retrieved from a database and have the autonumber the same as when it's finally updated to the database ? Thanks for any assistance
Last reply by q1w2e3r4t7, -
-
- 0 replies
- 677 views
I wrote a Class which clamps Forms to the screen if they are moved near the edge. After working out some problems, I'm left with just one: Since I'm using the move event, the form is first moved to the mouse position and then to the edge of the screen, resulting in a flickering behavouir. I have 2 ideas to solve the problem, but both need something I don't know how to achive. 1) Prefered solution. (Behavior like Winamp) The form is moved to the edge without prior move to the mouse. I would need an event which is fired before the form is moved to the mouse, and there I would need to be able to cancel the mouse movement (only partially, sometimes both directio…
Last reply by Arokh, -
-
- Leaders
- 1 reply
- 9k views
Ive done a small tutorial online and created what i think is a checkbox that can be used on a toolstrip. the problem is i dont know how to add it to the tool strip. can anybody advise where to add this, and what code to use to add it. my ToolStripCheckBox code is shown below: class ToolStripCheckBox:System.Windows.Forms.ToolStripControlHost { public ToolStripCheckBox() :base (new System.Windows.Forms.CheckBox()) { } public CheckBox ToolStripCheckBoxControl { get { return Control as CheckBox; } } //expose checkbox.enabled as property public bool ToolStripCheckBoxEnabled …
Last reply by snarfblam, -
-
- 4 replies
- 587 views
do u know a link that explain how to develop a .net application making a check before load if the .net is present, and manage the problem with custom messages...?
Last reply by mskeel, -
- 3 replies
- 897 views
I have an accounting table with enties with date, account & value. ie: Date Account Value 1/01/07 Petrol $500 2/01/07 Wages $400 1/02/07 Food $30 2/02/07 Wages $400 15/02/07 Food $20 i would like to create a view sorted by Account & Date (in months) ie Account Jan-07 Feb-07 Petrol $500 $0 Wages $400 $400 Food $0 $50 is this possible? i know i can get dates into months by using 'dateserial(year(date),month(date),1) however i can't workout how to sort by date & account. Any help would be greatly appreciated. Thanks.
Last reply by amir100, -
- 2 replies
- 809 views
Hi I am a new bie to transactions in .Net. I want to maintain transactions in my code. Please see the following pseudo code. public sub update() { cmd.Update() 'Update the database createFiles() 'Update the File server by creating some files cmd.Insert() 'Insert some records in the database ---------- some more code } Now, here i need to maintain the transaction scope in the method update(). Whereever it got a problem in this method, it should be rolled back. I tried the TransactionScope in .Net framework 2.0 but it seems like not working. Please suggest me some way to do this. Thanks in advance, Subhash.
Last reply by amir100, -
- 1 reply
- 700 views
Hi All, Okay I've been banging my head against a wall for a day now trying to come up with a what appears to be a simple solution to the following question: How do you allow multi-selection of rows while clicking on the cells? In a normal DataGrid you can select multiple rows by holding down Ctrl or Shift and clicking in the Left side Column bar. There is code available that allows you to select the entire row when you click on an individual cell, but this doesn't replicate the functionality of clicking inside the RowHeaders (ie the usual Ctrl-Click to select) - it always selects only a single row and then de-selects everything else. What I would like to do i…
Last reply by Nate Bross,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online