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

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

Edward1

Member List

vdv_phuong
Helen999888
WolvenGarde
CharlieRussell
madhu_v
fornol
dreameR.78
jljamison
KaiserSozeTR
emccormi
Delmonster
Chris Honcoop
jchau
luben111
shill1
anubisascends
Eddy-kun
Jasmine2501
Best Ordinary Man
robinjam
Only Title

Edward1's Q&A profile

  • Visual Basic Is a ColorMatrix the fastest way to edit bitmaps? (LockBits)

    I've made a function that makes bitmaps transparent via a ColorMatrix but now I'm wondering if that is truly the fastest way, because I can see that it takes a while (not that much, but enough to notice) to update the picture when I use a slider to adjust the transparency. Is there perhaps an imageformat that takes an alpha-value for the whole picture instead of per pixel, so that I don't have to use a colormatrix to go through every pixel to update the transparency Edit1: for example, setting the opacity of a form updates instantly, so how can I change a bitmap's transparency that fast in managed code - or is that just asking too much of VB Edit2: LockBits seems to promise better speeds - examples are welcome :) Edit3: okay, I tried b ...Show All

  • Visual Studio Express Editions Can't find the windows.h

    Hi, i dowloaded and installed vc++ 2005 express edition, and the Microsoft Platform SDK for Windows Server 2003 R2, just as in this tutorial: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ I tried many times but it didnt work. i even downloaded the video's and did exacltyly the same as on the video. Then when i start a new project and blablabla, press F5 and always getting this error. Here is a screenie: http://img70.imageshack.us/img70/3407/whatzefuckhl9.jpg Please, i really want to get this working.... Thanks in advance, Domiiii ps: sorry for my really really bad english :) Only the PSDK /bin directory should be added to the Executable files directory list. The /include directory should b ...Show All

  • Visual C++ XML

    Hello folks, I am currently working on a program that scans values (temperature, fan speed) for boat engines. Now, I want the program to save the scanned values in a xml file, and i already have this to work. But, it should add new values to the same file once every minute, so i would want to append the existing xml file in some way.. How do i do this This is the code thus far for the xml output: std::ofstream xml( "xmlvalues.xml" ); xml << "<INSTALLATION>" << endl << "<INFO>" << endl << "<NAME>" << " </NAME>" << endl << "</INFO>" << endl << "<TECH ...Show All

  • Windows Forms Scroll the datagrid to a particular row

    Hi, I have a problem with the vertical scrollbar. I would select a row in datagrid and update it.When I reload the datagrid with data, the selection would be to the first row.I could clear this problem with the 'NavigateTo' property, but , the vertical scroll bar is still at the same position as initially. How can i program the vertical scroll bar to move to row thats required. A code sample is more than appreciated. Thanks If you are bound to a bindingsource you can set its postion to the row number.  Otherwise you can use the currency manager to set the position   Dim cm As CurrencyManager = CType ( Me .BindingContext(DataGridView1.DataSource), CurrencyManager) cm.Posi ...Show All

  • SharePoint Products and Technologies Duplicate Submissions occur if refresh button is clicked

    My code has a custom webpart that submits to the content database. However, if the user manually refreshes the page after the submit button has been clicked but before the pages postbacks a duplicate entry is created. Any ideas on how to resolve this I am using Portal 2003. Any help would be greatly appreciated. This is a regular problem with any html form (nothing to do with sharepoint or .net as it were). One of the things you could try is redirect the user to another page (or even to the same page) using the Page.Response.Redirect method after you save the page. This will *break* the connection to the last post. ...Show All

  • SQL Server install reporting service 2005

    Hi I tried to install reporting service after i had installed sql server 2005, I find reporting service checkbox is disabled, so i can not install it. Why it is disabled, and how i install reporting service. thanks Hi Brad That solved the problem. I installed IIS , and succeded in instaling RS within a named sqlsever 2005 service. I tried to create a simple report using RS wizard in VS 2005 to test the reporting service , and when finishing the wizard the error message: "Exception of type 'System.Runtime.InteropServices.COMException' " was thrown , and i can not generate the report. Pls, how can i resolve the problem. Thanks. ...Show All

  • SQL Server Controlling outbound IP address on a SQL Cluster

    Hello, Is there any way to specify which IP address is used when executing a SQL Job. We recently found that Jobs starting from our cluster (Windows 2003 SQL 2000 SP 4 in a Active / Passive configuration) use the IP address from the local node rather then the virtual IP address tied to the SQL cluster. Jobs executing from the remote SQL server are running. The use of the local address has caused a failure at the firewall. Thanks mjdenn Then you might tell us what "alias" you moved it to so everyone can follow it there! ...Show All

  • SQL Server Select * & table name issue (Reserve world)

    Hi All, We are trying to read a table name Order through command line SQLcmd. But it is giving us an error. Order is an SQl2005 reserver word and app programmer created that table who left. No we have problem to read that table through sqlcmd. any ide a how we can do that. C:\>sqlcmd 1> use ACCMedford 2> select * from 'Order' 3> go Msg 102, Level 15, State 1, Server ACCMedford, Line 2 Incorrect syntax near 'Order'. 1> select * from "order" 2> go Msg 102, Level 15, State 1, Server ACCMedford,, Line 2 Incorrect syntax near 'order'. 1> select * from order 2> go Msg 156, Level 15, State 1, Server ACCMedford,, Line 1 Incorrect syntax near the keyword 'order'. Hi, SQLCMD --- I try select * ...Show All

  • Windows Forms how to bring textbox in gridview load

    hi alll i want to show the values in the gridview in the textbox i dnt want to move over to click "edit" and then the row changing into textbox is it possible to produce all the values in the grid in the textbox itself at the load event of the grid view if it s possbile then please do give me the code as how to do tnx n advance Use a template field. <asp:gridview id="gvFoo" runat="server" autogeneratecolumns="false"> <columns> <asp:templatefield> <itemtemplate> <asp:textbox id="tbFoo" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "foo") %>' /> </itemtemplate> </asp:template ...Show All

  • Visual Studio Express Editions form load event

    How do i trigger the form load event I want users to click a button and the program runs as if loading for the first time. Thanks tall dude, you're right. I'd reset all my variables & text with a few lines of code as a solution anyway. I'll try your suggestion next time. ...Show All

  • SQL Server One detail line per page not working

    Hi all. This appears to be an excellent forum, so I thought I'd post my question here. After searching for similar problems, I was not able to find any that worked for me. I suspect my issue is one of how I'm approaching the report. I have a report that has many tables in it, all apply to each detail line. It looks kinda like, say, an invoice - where you have different parts of the report with different formating needs, etc. When my datasource returns a single value, all is well. When my datasource returns multiple values, I get the pages schmunged (sorry about the techy-terms :-) ) together. What I'm trying for is: Report Title Table1:Line1 Table2:Line1 Table2:Line2 etc. --- page break --- Report Title Table1:Li ...Show All

  • Visual C++ Change or Invert color of text when progressbar passes over it

    This is the OnPaint function in my progressbar-class: virtual void OnPaint(System::Windows::Forms::PaintEventArgs^ e) override { Graphics^ g = e->Graphics; SolidBrush^ brush = gcnew SolidBrush(progressBarColor); float percent = ( float )(value - minimum) / ( float )(maximum - minimum); Rectangle rect = this ->ClientRectangle; // Calculate area for drawing the progress. rect.Width = ( int )(( float )rect.Width * percent); // Draw the progress meter. g->FillRectangle(brush, rect); // Creating font for progresstext System::Drawing::Font^ drawFont = this ->Font; // Creating brush System::Drawing::Brush^ drawBrush = System::Drawi ...Show All

  • Smart Device Development sql connection error

    I am getting following error: Error 1 The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Documents and Settings\Adnan\My Documents\Visual Studio 2005\Projects\Mobile5\Mobile5\Form1.cs 20 4 Mobile5 the line which caused problem is System.Data.SqlServerCe.SqlCeConnection conn = null; following are being used as reference using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms; using System.Data.SqlServerCe; using System.Data. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XBOX >10k sprites per frame !

    Just had to test the gfx power with some simple sprites. Printing 48x48 sprites, ideal size for tile map based games it cranked out over 10,000 sprites at just over 60fps Obviously size, scaling, rotation all has a significant impact on speed but nice to know ! I noticed that when the framerate was fixed it didn't matter how many sprites I displayed it always ran at 60fps. How does it do that Does the gfx card abort what its doing when the next frame is ready You may be able to micro-optimize that by inlining the Rectangle and Vector2 construction. Instead of new Rectangle(0, 0, 48, 48), use: Rectangle r = new Rectangle(); r.Width = 48; r.Height = 48; The CLR handles default const ...Show All

  • Visual C# Generate set and get automatically

    Hi, is there a way to generate set & get via mouseclick from a classvariable e.g. int _someId; -> public int someId { set{ ;} get{ ;} } ...Show All

©2008 Software Development Network