a-roba's Q&A profile
Visual C# Insert Command
Ok. In a button click event, I have a insert command that follows: "INSERT INTO `Audio` (`SongName`) VALUES (' + textbox1.text + ')" Can someone tell me how to make sure that the insert value isnt already in the database. Maybe something like: If (already.exists) { messagebox.show("The value alreaedy exists"). I know im not clerifying enough. I just dont know how to ask my question. Can someone help please. This ...Show All
Visual C# Why can't I recast a generic list?
I don't know if I am looking at this problem in a completely wrong way but I have the code listed below and would like to treat a generic list sometimes as List<Swatch> and sometimes as List<ColorSwatch>. I have many other types of swatches too - so I don't want to have to duplicate the common code. When I try and build the code I get errors telling me I cannot convert from type List<Swatch> to List<ColorSwatch> or vic ...Show All
SQL Server How to check if the file exists or not before bulk insert
How to check if the file exists or not before bulk insert. I would like to skip the bulk insert if the file doesn't exist. Information: I use Stored Procedures to run Bulk insert statement. The stored procedures is call by package. ****************** I test it at query analyzer and show the error when file don't exists. Error message Server: Msg 4860, Level 16, State 1, Line 1 Could not bulk insert. File 'E:\POLL41.fmt' d ...Show All
.NET Development Using FTP-Class with vb.net
Can anybody please help with a sample code to upload files to ftp server. New in vb.net. Thanks a lot. Check out this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=181460&SiteID=1 ...Show All
Visual Studio Express Editions Keeping Data in database after debugging
Hi, me again. I'm trying to set up an application that allows the user to enter data into a table (what else would I want!). I can do this during debugging no problem but when I close the application down the data is not retained in the DataSet. This means that every time I debug to test a phase of my application I have to input new data and it's getting a bit trying especially as I would ideally like to work with a table that has more than 1 ...Show All
Visual Studio Migration from Clearcase to VSS
Hi, I have to migrate few projects in Clearcase to VSS. Any suggestions on how to do this Thanks, no reply cannot one do a thing as simple as migration from clearcase to VSS! ...Show All
Windows Forms Control and data source not sync
Can anyone throw me some light on this situation Basically the databinding does not work if I mix up the assignment of control and data source. Details: I have one date picker and one text box bound to a typed dataset with a table. this.dateTimePic ...Show All
.NET Development request.BeginGetRequestStream with FTP in ACTIVE mode problem.
Hi, i'm making an asynchronous upload function. When using .usepassive = true all is good, i can transfer and catch pretty much every exception thrown at it. When using .usepassive = false and the server and client are both configured properly, all is good too. The problem i have is when .usepassive = false and either the ftp or client are not configured properly to use active ftp connections. Here is the code that calls the BeginG ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating a new texture fails with "first chance exception"
I have an application in which I create a texture to later write directly into. It works fine on my development machine, but on the target machine it fails with A first chance exception of type "microsoft.directx.diretct3d.invalidcallexception" occured. The code looks like this texture = new Texture (renderer.Device, 720, 576, 0, Usage .None, Format .A8R8G8B8, Pool .Managed); The pixelformat is the same as the device. ...Show All
Windows Forms How do you put a Bitmap on the Clipboard using win32 API from a C# program?
How do you put a Bitmap on the Clipboard using win32 API from a C# program public partial class Form1 : Form { public Form1() { InitializeComponent(); Bitmap bitmap = new Bitmap(50,50, this.CreateGraphics()); using (Graphics g = Graphics.FromImage(bitmap)) { g.Clear(Color.White); g.FillRectangle(Brushes.Yellow, 10, 10, 30, 30); } MyClipboard.PutOnClipboard(this.Handle, ...Show All
Visual FoxPro Word in Visual FoxPro?
Hello, new to the forums, and I have a quick question. I am currently working on a program for a Community Health Clinic, and I am working on a form for diagnosises. What I want is a dropdown box for which diagnosis to pick (which is fine), a text box for the date this diagnosis was diagnosed (done with ease), and one other thing that is giving me trouble. I would like to have a Microsoft Word style text area where a doctor can put his/her infor ...Show All
Visual C# Low Performance
Why this code does not take all the performance that a P4 can take The CPU Usage does not take more than 40%, and this code is very slow. It’s a file that contais 100000 lines, and I use o imports each line into a database table. private void ImportarLista( string f) { progressBar1.Maximum = Convert .ToInt32( FileSystem .FileLen(f)); SqlCommand cmd = new SqlCommand ( "Inserir_Peca" , cnTemp); cmd.CommandType = CommandType .Store ...Show All
Visual Basic Reference problem in Beta 2
We are developing a new VB .Net Beta 2 application. This application references some DLLs that were developed in VB .Net 2003. When I build the application, everything works fine. However, when someone else from the project team gets the latest version of the solution from SourceSafe and rebuilds, he gets an error that says "<The system cannot find the reference specified>". If he removes the reference and then ...Show All
Visual J# creating setup
I create the program, and now i want to share with other users, how to create setup for my program If you are using Visual Studio 2005 (Express or any other SKU) then you have an option of publishing your program. To publish your program Open Solution Explorer Select project that you want to Publish Right click on the Project node and click Publish This will let you publish your project either on IIS server or on local di ...Show All
Visual Studio Tools for Office Deployment problems
I have a Word project that I've been trying to deploy 2 different ways. First I made the project using VSTO (I'm using Visual Studio 2005) and after following examples and advise, finally got the project to work in the degugger just right. I created the project as a template. To test the release/runtime version, I copied the application/assemply files to the startup folder that Word in pointing to. These include: BarcodePopper.dll BarcodePopper ...Show All
