Mantinis's Q&A profile
Visual Basic Size in bytes of a boolean
How do I get the size, in bytes, of a boolean variable It appears to be a single (1) byte by empirical testing, but the documentation seems to imply that it depends upon the 'implementing platform'. (for example, an IntPtr has a size property, which returns the size of the pointer in bytes). I can't imagine a world in which anyone would need more than one byte to impliment bool. It only needs one bit, there are only two values. ...Show All
Windows Forms Screen and paper coordinates
How I can transform paper coordinates to screen coordinates (and other way) using GDI+ First obtain the printer resolution (DPI) and you can now scale the units in your Graphics object. Is as simple as it states. Using GDI+ is muc ...Show All
SQL Server Identity field settings not copied by Import Wizard (2005)
It appears that when you use the import/export wizard from within Microsoft SQL Server Managment Studio, the identity attributes of the table being copied are not transferred. For example, say the source table has a column [ref] [int] IDENTITY ( 1 , 1 ) NOT NULL, When the import wizard is done the destination table will have a column named ref, but will not be an identity column. The column definition will be [ref] [int] NOT ...Show All
Visual Basic Visual Basic Performance for 3 Million record/rows
I have a Visual Basic 2005 .Net program that I written that read a 2000 and 2005 database. I was very surprise and shocked when it took three days to process only 600,000 rows of a 3 million row result. Because of the time it took to only process 600,000 rows I canceled the batch job and did everything in SQL using Query Analyzer. I was able to process the same volume in only 45 minutes. I was greatly disappointed in the results. T ...Show All
Windows Forms virtual printer
hi, how to write a virtual printer in C# i want to have a pipe that talks to my virtual printer to capture the printing image thanks thomas ...Show All
Visual Studio 2008 (Pre-release) Layout Bug?
I have 2 Textboxes which I think should center their text horizontally but one of them does not unless specific width is assigned to it or HorizontalAlignment is set to Center.. am I missing something or is this a bug It seems like the second TextBox is not being sized properly to the grid.... This does not work: <Grid xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " Background="sc#1, 0, 0, 0" ...Show All
Visual Basic XML to Pipe Delimited or .tab in VB?
XML to Pipe Delimited OR .tab in VB Does anyone know how I can import a xml file & export into a Pipe Delimited or .tab file in VB Having a hard time finding any documentation on this... any help is greatly appreciated...... thanks... mniccole jacksonville beach, fl Can you verify what the correct reference to system.data is thanks so much for your h ...Show All
Visual Studio Express Editions Data Binding
Hello, I am trying to bind a simple textbox within my code to the datasource as follows; Extension is passed in from a textbox the datagridview works fine Private Sub loaddata3( ByVal extension As String ) conn.ConnectionString = My .Settings.Database1ConnectionString sql = "Select * from data where lastname = '" & extension & "'" da = New SqlClient.SqlDataAdapter(sql, conn) da.Fill( ...Show All
Software Development for Windows Vista Windows Vista icons. ?
Any details about Windows(R) Vista(TM) icons Colors used in Vista icons Sizes supported in Vista icons any other details Hi ALL, Try this: Press and Hold "Ctrl" and while pressing, if you use a mouse with a rollerwheel, To decrease Icon Size roll the wheel towards you, and vice versa to increase... Should do want you want!!! ...Show All
Windows Forms How can call a form ?
Hello, How can I call form with in existing form Pomi Form2 form2 = new Form2(); form2.Show(); ...Show All
Windows Forms Printing from a Datagrid in VB.Net
I'm trying to print the contents of a Datagrid, any ideas on how i do this I've looked at the other threads to do with this and none of these actually answer the question, or they are in C#. Thanks Thanks, i managed&nbs ...Show All
Visual Studio Create CR in runtime in C#.net or alter a CR in runtime
Like the subject says, i need some help, because i need a cr that changes over the time, diferent things will be "printed" on the CR so i need some help how to do a thing like that. Midet. Hi, I want to use crystal reports to make users able to design the report at runtime. Possibly creating new fields of all types available, modify existing fields. Do I have to purchase developer edition of Crystal reports XI to be able to use that ...Show All
Visual C# Add registry values in setup project
Hi, I’m making a setup project, and I want to add a value in the registry. It has to be the application folder where the project has been installed, but i don’t find how to do it. I can only write some fixed text, and i don’t want that. Thanks in advance. The problem I had was that i didn’t know how to give the application folder as a value in the registry key. I wrote [TARGETDIR]bin in the value field of ...Show All
SQL Server Error when restoring database
Hi guys! I wonder if this happened to you... I searched and found nothing related to this problem... When I try to restore a database in SQL Server Management Studio on a 2005 database engine I receive the message: Cannot show requested dialog. ------------------------------ ADDITIONAL INFORMATION: Could not load file or assembly 'SqlManagerUI, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Str ...Show All
.NET Development Scope_identity equal to 0 from a stored proc as well
Here is my stored proc: InsertAccount Create PROCEDURE dbo.InsertAccount @AccRisAsse bit, @AccHldBll bit, @Acctaxexm bit AS insert into TblAccount(AccRisAsse,AccHldBll,Acctaxexm) values(@AccRisAsse,@AccHldBll,@Acctaxexm) return scope_identity() GO And here is the code in .Net to run the proc and get back the scope_identity: I delcare my sqlCommand sqlcmdInsNeAcc and connection from system.data.Sqlcli ...Show All
