asaad's Q&A profile
Visual Basic scaling graphics in a picturebox
I have a problem were I use a picturebox to display graphics which I build up using somthing like Iam using VB 2005 e.Graphics.DrawLine(Pens.Magenta, xxx + offsetx, yyy + offsety, xx + offsetx, yy + offsety) which all works well I have the picturebox inside a panel to contain the size. I want to be able to click a button to zoom in on the picture. All I can get it to do is make the picture bigger or smaller with Private S ...Show All
Microsoft ISV Community Center Forums Code to call MS SQL Server 2000 SP
Hi Champs I am .net developer and working on pivot tables/excel right now. I am in position right now that i need to write code to call MS SQL 2000 SP in VBA code. Can u please send me code for this and also any good site for getting VBA code help. Thanks, Hi, You need to use ADO to access stored procedures in SQL Server from VBA. If your used to working with ADO.NET then you should have no probl ...Show All
Visual Studio 2008 (Pre-release) WSDualHttpBinding inner exception
Hey! I'm getting this inner exception: {"Multiple headers with name 'MessageID' and namespace 'http://schemas.xmlsoap.org/ws/2004/08/addressing' were found."} It seems that WSDualHttpBinding is the cause. Client: ------ [ServiceContract(CallbackContract=typeof(QueryCallbackContract))] public interface QueryContract { [OperationContract(IsOneWay = true)] void Query(string query); } [ServiceContract] public interface Q ...Show All
Windows Forms Best Approach to Preventing Windows from dragging underneath an Always on Top, TopMost Window
If you've downloaded the Google Sidebar then you will notice that windows can be dragged beyond the Sidebar or place partically underneath it. I have a bar as well and could not find any way to prevent other windows from dragging into the windows area. I've looked into trying to find a way to create a second monitor that is a virtual and visible one that can attach to the primary desktop and lock itself in place and then all other windows ...Show All
Visual Studio Express Editions Memory Leak
Hello people, i am a new bie in vc++ programming. My projcet preformance is degraded because of memory leak. It would be a great help if ypu guys help me pur with my school project. th following code give me a memory leak ---------------------------------------------------------------------------------------------------------------------------------- void CMemoryLeakDlg::OnBnClickedOk() { // Me ...Show All
Windows Forms PropertyGrid Property update causes strange scrolling behaviour
Hi. First time poster. I'm using a PropertyGrid to display updating integer property values. The properties have only a get. I have more properties than will will fit in the property grid hence it displays a vertical scroll bar. All the properties have appropriate help text. The application updates the integer values in the class given to the property grid in SelectedObject and then calls the propertygrid Refresh method. It does this once eve ...Show All
SQL Server (ODBC driver) timeout expired when query "DELETE FROM mytable"
Hi, I'm running SQL server 2000. I have at table with about 12 million records. I want to empty the table. I use the Query option from Tables/mytable/opentable/query. I type in the query and select Run. The process runs for some time, then raises an error box as follows: (title)SQL Server Enterprise Manager. The body text says: [Microsoft][ODBC SQL Server Driver] Timeout Expired. I've tried every timeout setting I can find. I'v ...Show All
Windows Forms Binding Navigator's Default Buttons Not Accessible On Inherited Form
I've got a base form on which I've got a binding navigator and and a data grid view. Everything works great on base form, but when I try to inherit the base form to a child form, the default objects on the binding navigator are& ...Show All
Visual Studio Team System Possible false positive for ValidateArgumentsOfPublicMethods
I added an == operator to a class. Its method signature is public static bool operator ==(Table table1, Table table2). FxCop throws the ValidateArgumentsOfPublicMethods error and asks that I check the parameters for null. OK, so I did. if( table1 == null || table2 == null ) { return false; } FxCop is now happy. When I run my unit tests though, I get failures where the tests are throwing a Sta ...Show All
SQL Server Writing data from multiple tables to a single flat file
I have a package that contains three database tables (Header, detail and trailer record) each table is connected via a OLE DB source in SSIS. Each table varies in the amount of colums it holds and niether of the tables have the same field names. I need to transfer all data, from each table, in order, to a flat file destination. I have created a flat file connector containing all the necessary fields that need to be transferred from the abo ...Show All
Visual Basic changing a specific line and adding a line top of the file
I have two questions. 1- I need to change a line in the file. what is the useful way to do this 2-what do you suggest to insert a new line to top of the file thanks Unless the lines are of fixed lengths, you will have to read in the whole file and write it back out with the changed line/newly inserted line. ...Show All
Software Development for Windows Vista Beta 1.2 install on VS RTM causes error in VS Code Designer
I'm having problems loading WWF b1.2 onto VS2005 RTM on WinXP. Getting error: CodeDomDesignerLoaderNoRootSerializer. The version for VS RTM is 8.0.50727.42 I've tried install/deinstall/reinstall several times on 2 separate machines. Any suggestions TIA Hi Paul and DrQwest, You pointed me the right direction. I had the same "package load failure", but did not want to go reinstalling right away. I searched t ...Show All
Smart Device Development Inserting data from file to SQL 2005 Mobile
Hi, I have a file with a lot of records (abt. 10000) and I have to insert them to database on smart device (I'm using SQL Mobile 2005)... Using INSERT for each record is too slowly... Could anyone tell me how I can insert data in faster way Opening a transaction for all INSERTs helped me to speed up this process twice. But it is still not satisfactory... Probably the fastest way to insert data would be to ...Show All
Architecture biztalk as a workflow
I have started doing research on Biztalk 2006 for its BPM/workflow use. I need to know the answers to the following at the earliest.It is not possible without help from all of you.please contribute with your answers to as many questions as possible.You have to say only yes or no in most cases 1.Is it able to use .net classes created using VS.net as activities inside workflow. 2. Can we invoke workflow created in it being called from .n ...Show All
Visual Basic Read-Only mdf file?
I am writing a VB.NET 2005 program using SQL Express 2005. The application seems to work fine, with a major exception. Changes to the data are reflected in the DB while using the program. However if I end the program and start over, the changes disappear. It seems that it loads a copy of the database into memory and doesn't update the DB file. This is on a laptop running XP MCE 2004, which is supposedly a superset of XP Pro. Thanks. ...Show All
