KasiSunkara's Q&A profile
Windows Forms Delegate and ShowDialog
Why dialog is not modal How I can make it modal (I have to use delegate, otherwise my calling application is blocked.) public delegate void OpenDialogDelegate(); public class MainForm : System.Windows.Forms.Form { private System.ComponentModel.IContainer components = null; private System.Windows.Forms.Button btnShow; private OpenDialogDelegate sDel; public MainForm() { InitializeComponent(); sDel = new OpenDialogDelegate(this.OpenDialogDelegateFunction); } private void btnShow_Click(object sender, System.EventArgs e) { sDel.BeginInvoke(null, null); } public void OpenDialogDelegateFunction() { Form myFor ...Show All
Visual C++ fatal error LNK1181: cannot open input file ",.obj"
I compiled my program after doing all those settings in "Project Setting Menu" but i got an error : fatal error LNK1181: cannot open input file ",.obj" I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error. If anyone know about the settings in VC++ then plz reply any help will be of great use Thanks in advance I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with ",.obj" input file Now, i replaced comma with semi-colon and now i am getting same error ...Show All
Windows Forms Can a DataViewGrid have a RadioButton-like setup?
We have a DataGridView of items to be inserted into a Mail merge document. Users can select only one - but we wanted to make the selection clear and easy. We used the CheckBoxes (very clear, very easy) for this and set MultiSelect to false. This did not work. Any suggestions Thanks in advance for your help, Jerry Nixon Acceptable, but not as elegant as I was hoping for. Thank you. Do you want to post sample code or was this just from the head ...Show All
Visual C# Load Icon from file
How do I set the Icon on the top bar to an exteranl .ico file you want do it programaticly or just import into your project and use from there the second one is simple so i will asume that your question is the first one 1) open the icon file 2) read all 3)convert to icon object 4) set the From1.icon=theIconYouImported tell us if you manege it to wok.. if not .. provide some more of what you want to do.. and i will post some code Luck! ...Show All
Visual Studio output in debug mode
Hi! I start my prog in debug mode on VS2003. But my prog crashs some times. I don't get any output and dos console or any exceptions. How can i debug it with VS2003 Knopper - I've moved your post to the Visual Studio Debugger. They should be able to help you with debugging your application. Thanks, Karen Visual C# ...Show All
Visual Studio Team System Create work item when a test fail
Hi, Is it possible to generate a work item when a test fail Thanks, Michael You mean automatically No. However, you can right click the failed test, and select "Create Work item" -- this will allow you to file a bug and pre-attach/publish the test results for review later. ...Show All
SQL Server Multi-valued Parameter
Hi There, I need to be able to enter values into a single parameter. For example, I would like to be able to input 1234,5678,5678. I tried several ways but I can't get it to work. Can it be done A list is of no use because the values refer to mobiles which we have thousands of. Is there a way to enter a number of values into the one paramater Please help! Thanks, Rhonda Hi, If your source in a sql query, I would do that: Select ..... From .... Where mobiles_code IN (@mobiles) RS will create a parameter called "mobiles". You just have to set the value of this parameter using the ...Show All
SQL Server SQL Agent Failing when trying to run my SSIS Package
My SQL Agent was working fine. Now when I try to run it, it failes when trying to run my SSIS package. I looked in the logs, and job history, no luck in finding any critical errors. My SSIS package runs fine through VS 2005 in debug mode. Here are the only errors: 01/04/2006 09:53:48,,Warning,[396] An idle CPU condition has not been defined - OnIdle job schedules will have no effect 01/04/2006 09:53:48,,Warning,[260] Unable to start mail session (reason: No mail profile defined) 01/04/2006 09:53:48,,Information,[129] SQLSERVERAGENT starting under Windows NT service control 01/04/2006 09:53:48,,Error,[364] The Messenger s ...Show All
.NET Development How to post large contents using HttpWebRequest ?
Hello friends, I want to post large contents using HttpWebRequest. My code is as below, HttpWebRequest HWReq = (HttpWebRequest)WebRequest.Create(strURL); //Note: here length of strURL is 13000 charectors. HWReq.Timeout = 25000; HWReq.UserAgent = "Mozilla/4.0 (compatible;MSIE 6.0b;Windows NT 5.0)"; &n ...Show All
Visual C++ DrawDibDraw and Bitmaps bottum-up
This is I think a common problem while I can't find a fix over the Internet... DrawDibDraw draws bitmaps bottom-ups, while most of the images in files are top-down . I'm using either the old CBitmap or the new Bitmap classes from gdi+ to work with the pixels data, (e.g. CBitmap::CreateBitmap or the constructor Bitmap::Bitmap(filename)). Each time I have to reverse the image upside down! Using this code... if (stride > 0) { const n = height / 2; int i,m; BYTE *q = new BYTE ...Show All
.NET Development Show/Hide Placeholder in JavaScript
Hi, I have a Placeholder with a calender control in it. When you click on a button im calling som javascript: (In the button property OnClientClick is advancedSearch_Click()) function advancedSearch_Click(){ var theElement = document.getElementById( "myPlaceholder" ); alert("HI"); if (theElement.visible == false) { theElement.visible = true; } else { theElement.visible = true; } alert("The End"); } The alert HI is shown, but The end is not show, that is because something is wrong but what Can't I say visible on a placeholder Thanks for the help Best Regards Kim ...Show All
Visual FoxPro Upgrading from a previous version of Foxpro
I'm currently upgrading an application written using foxpro 3.0 Like the application Paul was rewriting a few threads back, the only thing that doesn't work is the old character screen menu. It had 10 @SAY and 10 @GET commands and a READ. Then it routed execution to .PRG files with a DO CASE ... ENDCASE loop. I am not looking into investing the time to rewrite the existing UI, and would rather just get the old program working as it was. The program itself compiles with no errors, and everything looks fine when the menu is filtered through using the keyboard, but when the mouse cursor goes over one of the selections, all displayed text a ...Show All
.NET Development Using Web Services with C++ ?
Forgive what may seem an obvious question, but how do I go about using WSE2 (web services extensions) with Visual C++ I have tried a #import on Microsoft.Web.Services2.dll but that does not work, so I am rather confused as how I can use the WSE2 features with C++. The reason for C++ by the way, is that our web server engine is built using C++ and it needs to talk to another web servers using secure SOAP. I can create a HTTPS soap link but I really need the UsernameToken functionality for the security. Any help on this gratefuly accepted :) Penny Do you have the latest service pack for WSE 2.0 I believ ...Show All
SQL Server Moving a SQL Server 2000 Database from one server to another advice
Hi, i was after some advice on moving a SQL Server 2000 database from one server to another. Usually i would do this by backing up the database on the original server the copying it accross the LAN to the new server and restoring it there. This database is 10Gb in size and copying it accross the LAN will take some time and i would like to minimise downtime if possible. The database is at a customer site where i am not responsible for the network or Hardware. Thanks in advance for your help Nick Hi, if you are doing it just one time, do a plain backup and restore. If you are not sure if the conne ...Show All
Smart Device Development Can WSE 3.0 be used used with the Compact Framework 2.0 on Mobile 5.0 devices?
I tried to find the answer to this question, but could only find a lot of partial answers. Can WSE 3.0 be used with the Compact Framework 2.0 on Mobile 5.0 PPC devices No Compact Framework 2.0 does not include support for WSE 3.0 OpenNETCF however has a library that enables you to use WSE 2.0 functionality. See more info here: http://opennetcf.org/library/OpenNETCF.Web.Services2.html Thanks. ...Show All
