Software Development Network Logo
  • SQL Server
  • SharePoint Products
  • Visual FoxPro
  • Smart Devicet
  • Visual Studio
  • Visual C#
  • VS Team System
  • .NET Development
  • Game Technologies
  • Windows Forms
  • Audio and Video
  • Visual C++
  • Windows Vista
  • Visual Basic
  • IE Development

Software Development Network >> DaveDB's Q&A profile

DaveDB

Member List

rajSekhar
WV John
QuantumMischief
Michael Hansen
pessi
MPSIperson
Magnus Frumerie
Ajan246
Jason Croft
Rick Phillips440754
TiborK
gdylp
nguyentanbao
raj.ramesh
zurferanders
dron747
DavidThi808
Lalitk
dagfari
davidg12
Only Title

DaveDB's Q&A profile

  • Visual C# Odd results after Console.read() input

    In the following little "learning" program of mine, I am making a simple class constructor program. The place I am having problems is with Console.Read(). If you run this program and go into debug, and once you come upon the conosle.read() the variable selection takes on some funky results. Selection is first initialized at 0, but as soon as you input for selection the number jumps way up. When I type in 1 at the menu, the variable takes on 49, 2 takes on 50, and 3 takes on 51. Obviously I am very new to this, and i'm guessing I am doing something wrong with Console.Read() but I don't know. class Menu { public void MenuOptions() { int selection = 0; while (selection != 3) { Console.WriteLine( ...Show All

  • SQL Server SQL Management Studio from desktop PC connecting but no acccess to service functions

    I have a new and virtually full installation of SQL 2005 Developer with SP1 installed (named instance), on a Windows 2003 standard server, which also has a default instance of SQL 2000 SP4 installed. I have the browser service running also enabled TCP/IP for remote connections via configuration manager. All services are currently using LocalSystem. From the server I can use Management studio to connect and manage the services i.e. I can right click, start stop etc.. From a desktop on the LAN I can connect just fine, but I cannot see the service states, nor can I manage them from the right click context menu. There are no firewall issues here, just a hub separating the server from desktop. What am I missing ...Show All

  • Windows Forms DataGridView Cellkey Property

    How can add the cellkey property into DataGridView For example: DataGridView.1Rows[0].Cells[1].CellKey = "12" ; Thank You You can always make your own datagridview column type which has a cell key property. You can find some whitepapers on making custom columns here . ...Show All

  • Visual C++ Warning C4727 in Release build but not Debug

    Sorry for not replying to the other thread with this title, the moderator deleted it before I had a chance to respond (was only away from the office for 1 day!!). I am still getting alerts from that thread but I can't locate it by searching the forum. I have copied the thread so far below: A moderator has deleted the following post you made to the forums. Here are the reasons given for the deletion by Ayman Shoukry - MSFT no reply from user Here were the post contents Warning C4727 in Release build but not Debug I have a static library project that uses "create precompiled headers" which builds fine in Debug configuration but when building in Release configuration I get a bunch of the following warnings: warning C47 ...Show All

  • .NET Development Import Data from Sybase into a Recordset

    Hello,   I'm trying to import Data from a Sybase Database with a VB 2005 Application. Everything works fine, the only problem is, i receive wrong data  out of Datafields which contain the style money (Currency). Trying different version of code as follows:  Dim Price as Decimals = rs1a. Fields( "NW_Cur_PreisBrutto" ).Value Dim Price as Double = convert.toDouble(rs1a.Fields ( "NW_Cur_PreisBrutto" ).Value) Any Ideas what's wrong thank you, for taking time and give me a hand. Wolfgang   Zlatko, thx for your help. the latest MDAC was allready installed on my machine. The only thing i can do now is search for another OLDEB provider Wolfgang ...Show All

  • .NET Development hiding a cloumn during runtime

    I have a datagridview that I filled using datatable. Is there a way that I could hide the first column in the datagridview (which contain primary key) during runtime firstly this question is in the wrong foru. but any how is it not possible for you to hide it in design time, why would you want to hide it in run time and if you do want to hide it in runtime you use dataGridView1.Columns[ "ID" ].Visible = false ; thanks lee ...Show All

  • Visual C# MultiCasting Problem.

    Most of you have seen this code posted below on the the net. I'm having problems with the thread, why will the thread not close properly Is there something here that you see that would be causing the issue It works great in a console application, but in a windows connection it faults on the stop method I await your reply. public class MCast { private UdpClient _client; private int _listenerport = 8080; private int _senderport = 8080; private int _ttl = 20; //Time to Live private bool _started = false ; private int LocalPort; private int RemotePort; private string _message = "" ; private bool done = true ; private Thread t; Encoding ASC ...Show All

  • Visual Studio 2008 (Pre-release) ListView Multiple ColumnHeaders Displaying info

    I have a Listview with 4 ColumnHeaders as of right now i'm trying to get Each user to be listed under the "User ColumnHeader" as each user " Joins " the chat.. Where can i get some information for adding each user to the GridViewColumn programmatically In the C# Code below both Client and Serverside are all by String , so i'm not sure how to update the GridViewColumn .. Here is the Xaml for my ListView:: <ListView Margin="3,0,124.688,5" x:Name="userLB" Background="#FF000000" BorderBrush="#FF930000" IsSynchronizedWithCurrentItem="True" Grid.RowSpan="2" Foreground="#FFFFFFFF" Grid.Column="1" Style="{DynamicResource ListViewStyle1}" Grid.ColumnSpan="1">     <ListView.View>     ...Show All

  • Visual C++ installation windows xp 2-2006

    dear sir pl installation xp 2-2006 on line download due to my xp cd 2006 getting error. so i am request to you online download windows xp 2006 total program . OR SEND THE PROGRAM TO MR E.MAIL ADDERS thankingyou VENKETESH DORA This forum is not intended to handle the software issues. It would be better to approach windows XP news groups Try this forum ...Show All

  • Windows Forms User interface question

    Hi all, I'm building a software which has a UI similar as outlook 2003. The problem I'm facing is how can I perform dynamic content change while the user click the navigation buttons. I did think about using MDI but that is not what I want as it obviously not how the outlook implement. Thus, i think about using panels and swap between them. However, it seems very hard to design as i need to cover a new panel to the previous one. It anyone can tell me how outlook implement the dynamic content change thxs alot. Create a custom usercontrol for each view. This way you can just toggle their visibility depending on the button that was click. Usercontrol creation is the key to creating a UI ...Show All

  • .NET Development troubles with SqlCommand.ExecuteScalar

    Hi there, I'm fearly new to c#, did a bit of programming in vb.net... I've tried to get the result set of a SqlCommand.ExecuteScalar, and assign the values to int qryValue, but I get an error, and don't know the cause of it... string val1 = "SELECT COUNT(name) FROM employee where prov = 1 AND " ; lit1.Visible = true ; SqlCommand comm1 = new SqlCommand (val1 + " " + QueryVal, provconn); Response.Write(val1 + " " + QueryVal); provconn.Open(); int qryValue = comm1. ExecuteScalar ; if (ival > 0) { h1.Visible = true ; h1.Text = "Province" ; h1.NavigateUrl = path + " prov=1" ; } the error: CS0428: Cannot convert method group 'E ...Show All

  • Visual C++ VS .NET 2003 VC++: SP1 introduces a nasty compiler bug

    The following code will reproduce a newly introduced (SP1) C1001 compile time bug. Enjoy! -HB ----------------------------------------------------------------------------------------------- // BugTest.cpp : The "nasty bug" revealing application. // // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP <---FAILS // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP /EHsc <---SUCCEEDS class IAnyInterface { }; template < class ObjectType> class TC { public : TC( const TC< ObjectType > &right) : data(right.data) {} ~TC() {} private : ObjectType data; }; class Buffer { public : explicit Buffer (TC< IAnyInterface> ifac ...Show All

  • Windows Forms Datagridview background colour

    I have code (as follows) that is designed to change the background colour of a datagridview depending on the value of the third column. foreach ( DataGridViewRow dr in dgCustomerList.Rows) {      if (( Boolean )dr.Cells[3].Value == false )      {           dgCustomerList.Rows[dr.Index].DefaultCellStyle.BackColor = Color .LightBlue;           dgCustomerList.Rows[dr.Index].ReadOnly = true ;      } } During runtime, this code is executed but the new style is not applied however, when the refresh button is pressed, the style is applied. (The refresh basically call s the form lo ...Show All

  • Visual C# Blocking Console closure?

    I have a Windows Forms app with Console playing a part. I now run an almost debugged code from an exec that is generated after the Build command. I need to prevent Console from accidentally being closed by clicking on the tiny button located at the right upper corner. I cannot figure out if it is possible to do. The corresponding button on the form is blocked but it does not prevent the form from being closed by clicking on the button on the Console. I want to immobilize it too. I do not the app being closed accidentally in any event. Thanks. Figo Fei - MSFT wrote: What i meant is if you want to hide the close button of the form you'd set the form's controlbox. And about console, I think you'd get the handler of it ...Show All

  • .NET Development Problems declaring a command parameter

    I keep getting a " Must declare the variable '@Username'." when I try to run the following code with defined command parameters. Does anyone have any ideas what I am doing thats wrong Thanks:) string loginUsername = txbUsername.Text.Trim(); string loginPassword = txbPassword.Text.Trim(); bool isSales = false; bool isRetailer = false; bool invalidUsername = false; bool invalidPassword = false; string strConnection; string strCheckUsername; string isUserType; strCheckUsername = "SELECT Username, Password, UserType from Users WHERE Username=@Username AND Password=@Password"; strConnection = Convert.ToString(ConfigurationManager.AppSettings["sweetConnectionString&quo ...Show All

©2008 Software Development Network