Software Development Network Logo
  • Microsoft ISV
  • VS Express Editions
  • Smart Device
  • Visual C++
  • Visual C#
  • SQL Server
  • VS Team System
  • Visual Basic
  • Windows Vista
  • Visual Studio
  • .NET Development
  • Visual J#
  • Game Technologies
  • Architecture
  • Visual FoxPro

Software Development Network >> Dave Dunckley's Q&A profile

Dave Dunckley

Member List

Rob_IT
Velimir
mhouston23
Matt17
Batikit
Gregory_N
Bruno Estrozi
haputanlas
Cllee
Thieme
dunc1107
Gareth Ch
Belgarion2
Hamish Robertson
dholt
GSharp
karen_tgha
m14cus
Dan1
dRoseMirakel
Only Title

Dave Dunckley's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Most efficient way to draw a colored square (no, really!)

    Yeah I know, this sounds really lame... I've actually got textures, input, sound, physics and a bunch of other stuff working, but I have to conclude that the method I'm using to draw a starkly colored square is murderously inefficient. I can add 50 textured squares to my scene and lose maybe 40 frames per second... but adding 20 colored squares to my scene kills about 600 frames per second... from a human standpoint, this makes no sense, since a textured object is much more intricate than a red square, so I'm obviously doing something really bad somewhere. The lowdown on how I'm drawing these "squares" is that I create a D3D ...Show All

  • Windows Forms Changing ToolstripButton BackgroundImage

    Hi, I have a problem whe I try to change the background image of a toolstripbutton. I implemented the MouseEnter and MouseLeave events change the backgroundimage: System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid)); this->toolStripButton1->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripButton1.newBackgroundImage"))); (for the MouseEnter.. and similar to MouseLeave) When I run the application and put the mouse over the button, it will change to an "empty" image, i.e., it will display the background colo ...Show All

  • .NET Development Updating multiple ListView items into Sql DB table

    Is there a way of sending datatable or dataview as variable and update multiple records in SQL DB table If it's not possible, I want to learn a better way to update multiple records at once instead of updating each record at a time. Thanks in advance, Oscar Yes you can by calling update method of Table Adapter on desired table and I will return the number of rows affected by this update. cheers ...Show All

  • Windows Forms Visual representation of a list (ala ListBox bottom to top)

    Hello all, getting ready to give up trying to figure out how to do what i need on my own so i'm trying my luck in asking here. I have a list of objects that i wish to represent in a visual list like a ListBox, the problem is i need to draw the items from the bottom of the control and upwards. I need the SelectedItem functionality offered by the ListBox (as well as Key-events, mouse-events and collection-changed-type-events) which has had me look at the ListBox control, however as far as i have found there's no way to reverse the order it draws it's items (without resorting to some serious headache trying to modify the areas to draw in ...Show All

  • Visual C++ a lock system problem

    Hi, I'm working on a program using a .ocx control purchased recently (whose function is calendar and calculator). However, whenever I lock the system by pressing Ctrl+Alt+Del or the screen saver with password is about to run, my program crashes. I know it's due to that control, so I asked the company for the source code. But it is too complicated to make myself clear on those codes in a short time. If sb. has the experiences of dealing with such problem, pls do me a favour,just show me where should be focused on. Thank you very mcuh. If you have the source code create a debug build. Launch the sample program that causes the crash. ...Show All

  • .NET Development Problems with modifying records from Database (VB.NET)

    Hi all, I am a student learning ASP.net now. I need help with the problems that I am facing with editing and deleting records from the database (created Microsoft Access). Currently, my .aspx page is able to retrieve and display records from tables in the database. However, as part of my school assignment, I also need to be able modify the data, i.e to add, edit and delete records, and that is when the errors occurs. Whenever I try to carry out either of the add / edit / delete action, an exception was caught in the catch loop and it shows: Error updating the database. Please make sure all values are correctly input. System.Data. ...Show All

  • .NET Development How do i enable AllowDBNull property with TypedDataSets?

    I would like to make certain columns to have the AllowDBNull=false in a typed dataset. I tried setting the nillable property to 0 and also tried false in the DataSet designer, but this does not work when I build. It appears that the MSDataSetGenerator only sets AllowDBNull property if the column is a key. Dont what im doing wrong. Any ideas. Thanks. If you have minOccurs = 1 in the XSD on the corresponding column element, then the typed dataset should generate the code so that the column's AllowDBNull is set to false. ...Show All

  • Visual Studio Using Visual Studio 2005 to convert Access reports to SQL

    I have lots of Access reports (approximately 100) that need to be converted to SQL.  I have heard that it is simple to import them to Visual Studio and let it make the conversion for you. I have very little experience using the 2005 version, so any help will be appreciated.  If anyone knows of an easier way to accomplish this task, please let me know. Jay - Here's a link to an in-depth article on migrating Access reports: http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/migratereports.mspx ...Show All

  • SQL Server Trying to do too much in a view... I think?

    Hello all, I have a table that contains a whole bunch of clinical statistics. There are some other fields I would like to add, but they are best created on the fly, so I thought I would do this with a view. I can create some of my dynamic fields (like BMI below), but when I try to use them again in the view it doesn't work. (ie, I get an error when I try and include the case statement bit). Does anyone know what I can do Kitty. CREATE VIEW dbo.vAAA AS SELECT BMI = (WEIGHT / POWER((HEIGHT/100), 2)), BMI_GROUP = CASE WHEN BMI < 26 THEN 0 WHEN BMI >= 26 THEN 1 ELSE NULL END -- other bits removed ...Show All

  • SQL Server Report Viewer Issue in Visual Studio 2005 Beta 2. for Microsoft Reporting Services

    Hi I am trying to display  Microsoft Reporting Service Reports from windows application. I have application window with Report viewer control. I have  assigned valid path and URI from Server report properties in report viewer control. When I try to display the reports Error is " "The attempt to connect to the report server failed. Check your connection information and that the report server is compaitble version. The request failed with HTTP status 404: Not Found. Please help me..Do I need to set any credential for my reportviewer control then how this .reportViewer1.ServerReport.DisplayName = "SampleReport" ; this .reportV ...Show All

  • Windows Forms Control Display after Form is Loaded

    After the form is loaded there is a brief but noticible period during which the form is visible but the controls are transparent. Presumably this is while the child controls are being painted. Oddly when one control is filled (no longer transparent) the others are filled too. It seems to be a all or nothing thing.  My question is how can I ha ...Show All

  • SQL Server Attribute Relationships

    Hi, one more question about Attribute Relationships. I learned that you enter the "next higher level" as an Attribute Relationship to an attribute. So "month" is an attribute relationship to "day" (you put it under day), you put "quarter" under "month" and so on. What about attributes which are not a "higher level" but "belong" to an attribute (like "member properties") So if you not only have a "month" but different descriptions of a month in different fields ("01/2006", "January 2006", "Jan 2006"), do you have t ...Show All

  • SQL Server DTSSQLIMPORT error

    We are rec'ving the following error when we try to run a pkg from a remote machine and the pkg has been created while logged onto the Server machine. any ideas   thanks in advance. -dinzana [Dest tblBSIXData [506]] Error: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E14  Description: "Could not bulk load because SSIS file mapping object 'Global\DTSQLIMPORT              ' could not be opened. Operating system error code 2(The system cannot find the file speci ...Show All

  • Visual C# textbox test always highlighted on window open

    I have a help non-modal dialog that just displays a text message in a textbox. The textbox is the only component in the form. The problem is that when the dialog is displayed, all the text in the textbox is selected / highlighted. I have tried calling deselectAll on the textbox in the constructor and in the load and visible changed methods with no change. How do I get rid of the selection Correct. I don't mind selectable / highlightable, I just don't want the carat to show up. Having a blinking carat in the textbox makes it seem like it is editable (which it is not because I have set readonly to true ...Show All

  • Visual Basic [Newbie question] How to create executable.

    Hi all, I have a really stupid problem. I just created an application in vb.net and it works like a charm. It's a browser with a fixxed size and some custom options. When I publish the application it creates a couple of files, like setup.exe etc. When I run this setup it creates a startmenu item, but i can't find any other files on my disk...where do they go Are there any other files can I change the path of those files In the past I occasionally worked with vb6 and i was able to create a simple executable file, in stead of setup files. Is that still possible How do I do that Sorry for the simple questions, but it's been bugging me for day ...Show All

©2008 Software Development Network