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

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

Brucec

Member List

a n d r e w
search and deploy
R1ZWAN
Claudio V.
dominic_s
PBi
meighlough
bobchauvin
Arjun B
polle2006
Mojosound
G. Dean Blakely
johnvms
plaszlo
PentagonMaster
Ken Fleming
buddy_dotcom
JCollins
techlist
solnt
Only Title

Brucec's Q&A profile

  • Visual Studio Express Editions MDI Form Windows...

    Ok, this is most likely a stupid question, but how exactly is this working   Screenshot: http://visualstudio.mihopa.net/images/MDI_Parent_windows.jpg   I am unable to figure out how that is automatically making a menu option. I was unable to find any code on this either. I want to know how this is working, so I can learn how to manipulate it.   Also, in the MDI Notepad example for VB6, it had the same thing without any code. I'm confused. Lol.   MDI Notepad example: http://www.microsoft.com/downloads/details.aspx FamilyID=b773574f-85b7-4fb1-99ee-8344c6d6f950&DisplayLang=en Ok, I've figured out how to enable/disable this... To do so, go to the MenuSt ...Show All

  • Windows Forms Listview item width

    I have a listview with width set to 1000. If I add an item with a short text that doesn't fill the listview horizontally, I have to actually click on the test to select the item. Is it possible to select the item just by selecting the "row", like the white space on the right of the text This will work with the ListView's View set to List: Private Sub ListView1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp Dim item As ListViewItem = ListView1.GetItemAt(0, e.Y) If item IsNot Nothing Then item.Focused = True item.Selected = True End If End Sub ...Show All

  • Windows Forms DefaultValue attribute VC++ definition not working

    It could just be my usage but I can't get the DefaultValue designer attribute to work for colors in vc++/vs2005. I'm defining as follows. public: [System::ComponentModel::DefaultValue(System::Drawing::Color::typeid, "Orange")] property System::Drawing::Color MyComponentColor; When I add the control to my form it correctly displays in the designer with the exception that the MyComponentColor property is not set to Orange as I would have expected. I've seen plenty of VB & C# examples of this which all claim to work and I believe I have correctly converted them to VC++ above... Anyone able to lend a hint at what I've done wrong Thanks It would appear that a namespace confl ...Show All

  • Windows Forms Need some Datagrid help

    I have datagrid wih two colums, Name & Role. I just want to the show the datagrid that there role is A. In that column I have a ddl_role list. if (dgUsersAd.Columns.Equals("A")) //if(dgUsersAd.Columns[1].InitializeCell) { daUsers.Fill(dsUsers1.users); dgUsersAd.DataBind(); } else { lbl_mes.Text = "NO Admin Users".ToString(); } I tried it this way..but it is not working. you can do this using the binding source object's filter method. For example, if you want to filter all rows having country column = mexico in the customers table of northind database, you can accomplish this using the following code CustomersBindingSo ...Show All

  • .NET Development Benchmarking .NET sockets API

    Here are the results of some benchmarks I have do : Here I have create a small benchmark... there are : - Synchronous version of client - Asynchronous version of client - Synchronous version of server - Asynchronous version of server I have play with all the versions, I have got the following result : 1) Client_Synchrone + Server_Synchrone = 120 Mb/s 2) Client_Synchrone + Server_ASynchrone = 110 Mb/s 3) Client_Asynchrone + Server_Synchrone = 110 Mb/s 4) Client_Asynchrone + Server_ASynchrone = 110 Mb/s For the 4 versions I'm near of 100% CPU use. Asynchronous with ManualResetEvent to avoid: "NoBufferSpaceAvailable" ------------------------------------------------------------------------------------------------ So, I'm able to hanl ...Show All

  • Software Development for Windows Vista how to check password in sts sample

    Hello, I have a question about username/password manage card while I'm testing a sts sample. I'm trying to check the password using AuthorizationContext in WsTrustResponder.cs. Is this the right way to do that Is there someone to show me the example code Thanks. The default is to use Windows auth (i.e. you just use a Windows username and password). If you want to use something else you need to override UserNamePasswordValidator. e.g. < behaviors > < serviceBehaviors > < behavior name = " SampleSecurityTokenServiceBehavior " > < serviceMetadata /> < serviceCredentials > < userNameAuthentication customUserNamePasswordValid ...Show All

  • .NET Development WCF install failing when trying to install .Net 3.0 Framework

    The following error is returned in the dd_dotnetfx3error.txt file [11/09/06,14:42:04] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [11/09/06,14:42:05] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [11/09/06,14:42:06] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. Hi Slynch13, This error indicates that the Windows Communication Foundation component failed during .NET Framework 3.0 setup. The log files created by this component are named %temp%\dd_wcf*.txt. If you can zip and send me those log files, I'll try to take a lo ...Show All

  • .NET Development Problem updating an Access DB with a DataTable when using stored procs

    Hi This is a strange one. I am updating an Access table from a DataTable and the same record is inserted multiple times when using a stored procedure but works OK if I build the update query in a string. I am performing the update like this:- [CODE] daDataAdapter.InsertCommand = New OleDb.OleDbCommand("QRY_INSERT_LK_Domains_NameServers", cnSQL) daDataAdapter.InsertCommand.CommandType = CommandType.StoredProcedure daDataAdapter.InsertCommand.Transaction = txSQL WorkParam = New OleDbParameter WorkParam = daDataAdapter.InsertCommand.Parameters.Add("@iDomainID", OleDbType.Integer) WorkParam.Value = iDomainID WorkParam = New OleDbParameter WorkParam = daDataAdapter.InsertCommand.Parameters.Add("@iNameServerID", Ole ...Show All

  • .NET Development Looking 4 a simple TCPClient.BeginConnect sample...

    Networking code, makes my head hurt. I am trying to create a class that implements a form of connectionless messaging. I have my DoSendMessage method that is using TCPClient.Connect but the problem is that if the server is not availible the Connect method hangs for about 5 secs while it tries to connect. Meaning my application also hangs. Very bad.... What I am looking for is a COMPLETE and WORKING sample that is simple and uses the asynronous method for connecting using TCPClient.BeginConnect. But I have not been able to track down any easy to fallow sample code. Does anybody know of any tutorials or links that can help me out. Thanks in advance! My code is as fallows ... Private Sub DoSendMessage(ByVal Server As IPAddress, B ...Show All

  • SQL Server Incrementally processing "new" files

    Hi, I'm just starting to learn SSIS and would like some advice on how to handle something I encounter frequently. I often have to connect to a remote FTP site which contains a large number of files. Each day a number of files are added (old files are not purged). So each day I need to download all files which have been added since last time I checked, store on a file server, then load to a SQL database. I've written a DataFlow using a script which generates a list of files and dumps to a raw file and doing the same for FTP directory listing wouldn't be too hard - I could then feed these into a third DataFlow to work out what the new files were, then a third to download the files to a temp directory etc. But is there a cleaner way ...Show All

  • Visual Studio Express Editions File Types

    Hi, I have an application that is able to save and load data in text form using a '.sdq' file type that I made up. I have a couple of questions: - how can I make the app check when it is launched whether .sdq is assigned to any other application, and if not, assign it to my application (or prompt the user) - I've assigned this file type to my application manually, so that now if I double-click on a .sdq file in the file explorer it will spawn a new version of the app but doesn't load the file into the app - when the app is spawned, how can I make it call the load subroutine to load the file that spawned it Cheers, Stu thanks both, I'll try those over the weekend. Couple of questions t ...Show All

  • Visual C# Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    Hi, I Am NewB To C# Actually Converted From Java To C# Because Of My Final Year Project Needs Am Developing An Application For Remote Sharing On A Wireless Network, Using VNC# Lib, On Da Server App Due To Da Application Needs Am Using Da Libs Interop.ServerX & AxInterop.ServerX ... Da Thing Is While Debugging The Code I Get This Error Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I Ave Searched Da Refrences From Da Diffeerent Forums On Da Internet & Ave Done Wat Ever I Came Across But It Didnt Helped :( Can Sum One Help Me In This ERROR Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Envoked By Da Code ...... this .Text = " ...Show All

  • Visual Studio Team System HowTo: Export a database to a script

    I'm running CTP5 as of this morning.... My coworker asked me how someone could export a database to a script. So I've spent some time looking around, but I haven't found a way to do it yet. I see how I can import a script but no export. Is is possible to export a table or db to a script which I could then at a later time import onto another SS2005 box Please let me know if you need more details, I'm new to VS 2005 Team Edition for DB pros. thanks. Steve Mayhugh MCSE, MCDBA, MCSA You can use the data compare tool to generate a script of the data. To do this, use data compare to compare a version of the database w/ data (source) to a version of the db w/o data (target). You will then be able to create a synchronization ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. ResourceManagementMode...

    I have a couple of quick questions that come from the same base issue. I am trying to implement a "frame stack" texture class. These frame stacks are really just multi-frame animations placed into the same bitmap much like a UV map would be. That being the case, at some interval I need to draw a different sub-texture from within the original texture. This works great for sprites, but when one of these textures is applied to a billboard it's a different issue. I have to diddle the UV coordinates each time I change frames and I can't find any reference to a D3D like Texture Transform in XNA. I know, it's probably time I learn all about vertex shaders, but I'm trying to learn as much as I can right now about what I can and can't do ...Show All

  • Windows Forms Bug in VS.NET 2003?

    Ok I had some time to make a sample project to demonstrate what I feel is a bug. Either that or I am doing something wrong here. http://www.myshack.net/fotty/VSBugSLN.zip Here is a link to a simple windows form app project and class library project (both part of same solution) Zip contains only the uncompiled project files. the class library contains 1 class which extends to textbox class (just makes the font red, this is just to illustrate the fact that its a class inheriting from a control) the windows forms app contains just 1 form, and references the class library project. Open the project, and compile it in debug mode prior to viewing form1. This is because the class library DLL needs to be compiled before it can be used on the fo ...Show All

©2008 Software Development Network