Khenat.Ram's Q&A profile
Visual Studio Express Editions filter the capture of users the character " or char(34)
hi. Please helpme, i development in C# whith ASP.NET , how do i filter in the capture of users the character ( " or char(34) ) in one textbox. thank you. Agc, private bool valida_caracteres() { int icol = 1, icount = TxtCaracteres_permitidos.Text.Length; string scaracter = null; char schar34; schar34 = '"'; if (icount == 0) { return false; } while (icol < icount) { scaracter = TxtCaracteres_permitidos.Text.Substring(icol,1); if (scaracter == schar34.ToString()) { return true; } icol = ++; } return false; } ...Show All
Smart Device Development Insert BMP into database??
How can I insert a bitmap object into the database dim _bmp as bitmap cmd.Parameters.Add("sigjpg", SqlDbType.Image).Value = buffer Aaron Put bitmap into the byte array, e.g. save it to memory stream and get buffer. If bitmap is a file, simply load that file into byte array. ...Show All
SQL Server Integration Services Designer (Visual Studio) very very slow
Hi all I have some performance issues when developing Integration Service Package ... It is very very slow for example when I try to add new connection in Connection Manages, it takes about 2 minutes just to open the property window. On another pc in the same environment it works ok. In the past I have doing a lot of SSIS Packages ... Is there any cache to empty Thanks for any comments Best regards Frank Uray Have you tried the 'work offline' option in SSIS menu. That option will prevent SSIS to validate connections in the package at design time. I am not sure if that is the source of your problem; bt you can try it. ...Show All
Visual Studio Object Test Bench: Invoke method that expects string[]
From Class View, is it possible to invoke a static method that expects a string[] parameter I tried to, but I can't figure out the correct syntax to pass the parameter in. {"a", "b"} does not work, I get: "Type Mismatch: 'System.String[]' expected". First you have to create String[] object. You can create this by using "Immediate Window". Immediate Window can be viewed by clicking on Debug --> Windows --> Immediate of Visual Studio 2005 menu bar. In the Immediate Window, create String[] object by typing String[] args = {"abc", "xyz"}; // or any valid syntax to create String[] object This will place args object in Object Test Bench. Now invoke your static met ...Show All
.NET Development Syntax Error
I'm trying to write a database application in Visual Studio 2005 that inserts data into a database from a VB form, the connect and insert code are below: conBooking = New OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=booking.mdb" ) Dim SQL As String SQL = "INSERT INTO tblBooking (Cust_Name, Telephone_No, Going_From, Going_To, Additional_Requirements, Booking_Date, Booking_Time, No_of_Passengers) VALUES" SQL = SQL & "(" & strName & ", " & strPhone & ", " & strFrom & ", " & strTo & ", " & strRequirements & ", " & strDate & ", " & strTime & ...Show All
SQL Server reading pdf files with SSIS 2005
hello to everyone, i would like to ask u if you know how can i import pdf files in sql server integration services 2005 does anyone have a script thank u Wrting PDF files with SSIS 2005 may have been a better subject line. How about reporting services, it is there in the box at no extra cost, and can produce PDF files. PDFs after all are presentation layer, so SSIS isn't really the ideal place for that. ...Show All
SQL Server variables as column names?
I am using SQL Server 2005 and I'm creating a stored procedure that, in turn, creates some tables. The column namen in those tables will change depending on the input the user gives the stored procedure. I am having trouble getting the column names to be dynamic, however. Is this even possible If so, any tips Here is a small example (that doesn't work) of what I'm trying to do: DECLARE @ColName varchar(25) SET @ColName = 'Column1' select foo as @ColName from bar Yeah, that's almost exactly what I just now figured out, haha. I got something like this though: declare @sql nvarchar ( 4000 ), @col nvarchar ( 4000 ) set @col = 'as [Date]' SELECT @sql = 'SELECT GetDate() ' ...Show All
.NET Development How can I run an User Control using a Web Application...
Framework Version1.1. I have a User Control inside a Windows Control Library named WCL1. I embed that User Control inside the web Application(named WA1) using <Object> tag.. Along that I have Add the reference for the WCL1 Now if I access through. http://localhost/WA1/WebForm1.aspx means it works... But if I access through IP Address for eg.. http://IP/WA1/WebForm1.aspx means it will not works... Please anyone give me an Idea.. Hello Ramesh, Me also facing the same problem in my application,If you have the solution please forward to me.My mailId is shankar@cgvakindia.com . Regards, Sankar.S ...Show All
Visual Studio Express Editions Visual C++ 2005 express MFC
Hello, i want to know if visual studio 2005 express have MFC, i ask because when a create a new proyect (Win32 Console Application) the option to add ATL and MFC common headre files are enables And how can i configure the program to add the MFC libraries in a executable 1) No - you cannot get a standalone MFC development kit 2) While you can try using the MFC header files and libraries from the earlier version of Visual C++ this is not a supported scenario and I do not guarantee that the code will even compile. If you need to use MFC with Visual C++ 2005 I would suggest getting a version of Visual C++ 2005 that includes MFC. ...Show All
SQL Server Good design?
Hi! I want to add "inheritance" to my database. I have of table X witch attributes a1, a2, a3, a4, a5, a6 and second table Y with attributes a1, a2, a3, a7. I want to create additional table Z with attributes 1a, a2, a3, key and tables X: key, a4, a5, a6 and table Y: key, a7. I have more of those sub-class. Set of common attributes is about 5-10. Additional attributes range from 1 to 20 per table. We have also large dynamics of our database. Often (1 per month) we have to add about 2-5 attributes to some subclass (or remove some attributes). It's good idea for "attributes inheritance" I know those disadvantages: to insert (update, delete) record from X, I have to insert record to Z and X I fou ...Show All
Visual Basic C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Hi, if someone on here could help me, I'd really appreciate it. I am currently building a program that will be able to open excel and word documents in their appropriate programs. Heres my code: Dim Job As String = txtJob.Text Dim str2File As String str2File = "" str2File = Application.ExecutablePath str2File = str2File.Substring(0, str2File.LastIndexOf( "GaugeHelper.EXE" )) Dim wordstart As New Process wordstart.StartInfo.FileName = "winword.exe" wordstart.StartInfo.Arguments = str2File & "\Reports\" & Job & "\" & Job & ".doc" w.Start() I can get it to work, except for one thing, When you use the common folder name \Documents and Settings\ Word will try to ...Show All
Visual Basic VB6 Error: EXE File not writing after compile.... urgent!
My VB6 Compilor has stopped compiling my project. It will, let me run the application from devlopment envirenment, but, it won't write the executable when I try to compile it. It show a compiling message on the VB6 toolbar, but no EXE file shows up in the destination folder, and no 'writing exe' message shows!. I have tired to fix this by: System Restore, Re-Installation of Visual Studio 6, Virus Scan Also tried compiling to alternat drives and directories... I tripple checked my code, in case, and also tried on another project! I have been able to write the executables for the last 2 months for this project, until now! I don't recieve any alerts from the IDE, so I have no idea of what my problem may be. II cant get vb6 ...Show All
Visual Studio Tools for Office Problem with punctuation after a control inserted at runtime.
I have a document template that I am working on. I am inserting a Windows Forms Button conrol into the template as shown below: This is a sentence [Button]. That all seems to work fine and appears normal as I save off the template. I am using this code to inser the button into the DOT, straight from one of the examples that ships with VSTO: private static void InsertControlAtSelection ( Control c , string name ) { object horizontal = false ; object vertical = true ; Word. Range selection = Globals.ThisDocument.ThisApplication.Selection.Range ; c.Name = name ; if ( selection != null ) { // Save the control extender as a tag on the control, so that ...Show All
Smart Device Development Error on loading new form
I have a .NET CF application developed using VS .NET 2003. I sometimes receive an error when moving from one form to another. I display a main menu form at the start. This main menu form always stays open. From the main menu the user can open new forms to print labels, view orders etc. If the customer prints a label, I then load orders and display the order form. At this point (directly after the msgbox "Dispatch details..."), the application sometimes throughs an exception. Im afraid I dont have the exact error description but I am hoping somebody may check my code snippet for accruacy. Here is the Printlabels & the ShowOrdersForm procedure. Private Sub PrintLabels() Try Cursor.Current = Cursors.Wait ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are they bugs?
Hy! I'm trin' XNA since 1.0 was released, so I'm kind of newbe. The first thing, what I expected as a bug is that SynchronizeWithVerticalRetrace seems to do nothing. I use the base Windows Game project for test, and in the Initialize function I set some parameters: _graphics.GraphicsDevice.PresentationParameters.FullScreenRefreshRateInHz = 70; _graphics.SynchronizeWithVerticalRetrace = true; _graphics.IsFullScreen = true; But it do nothing. The problem is: I can turn on/off VSyns, but I can't handle the refreh rate! I set it to 60, then to 70, but in fullscreen, my application runs with 85Hz -> 85 FPS instead of 60 or 70. Addition to this, my app throw an error, and Express must be restarted... The second is with multi ...Show All
