Ossian's Q&A profile
Windows Forms OverDrawing Custom Inherited Controls
Hi, Using VB.NET. I'm a beginner so please be gentle.. I am trying to overdraw most of the windows controls, including Listbox among others, so that they have a solid 3 pixel border. Currently I am doing this by creating a customcontrol inher ...Show All
Smart Device Development Date Time changing based on timezones??
I have a application which passes dates/times back and forth via web services. The server is EST. The pda is CST -1 hour. The PDA downloads the data from the web service and insterts it in SQL CE. When the user views the info it is 1 hour off. If the user adjusts the timezone on the pda to EST it works fine. Any help on how to tell the app to ignore timezones Thanks, Aaron ...Show All
Windows Forms How to retrieve data from a datagrid?
Hi, I had a datagrid populated with data. Whenever, I had selected a row, I would like to retrieve all the data from the selected record/row. Can anyone advise how to do it Thanks I am using datagridview and it is bind to a datasource. Please help ...Show All
Visual Basic Colour Change
wnen i click button_1, i want form1's background-colour to change from Tan to orange, how would i go about this yes....those are made up variables Dim MyOrangeColor as Color = Color.Orange Dim MyTanColor as Color = Color.Tan ...Show All
SQL Server SQL Server 2005 Nov 7 GA Installation
I know SQL Server 2005 is to be released on November 7 and I hope that date is truly realized, but I would like to start planning now. We are currently running SQL Server 2005 from the Beta 2 of VS 2005 and was curious if we will be able to upgrade that version directly to the GA release on November 7th or if it will require a complete reinstall Thanks in advance, Steve Hi there situation: .NET Framework v2.0.50727 installed ...Show All
Software Development for Windows Vista How to prevent an Workflowinstance from terminating
Hi there I'm currently working on a (runtime-)service that should start a workflow for errorhandling if an instance faults. The service works fine as long as I trigger it by the instance's terminate event (Runtime -> WorkflowTerminated), but I want to prevent the instance from terminating and instead suspend it so it could be resumed and starts at the State that caused an error previously. Is anyone there who could give me a ...Show All
.NET Development any way to increase performance here?
we're using DB tables for translated strings for app localization ... as each supported language is called for the first time, an application-level object needs to populate that language's Hashtable. The DB table and hashtable involved are expected to grow rather large ... is there anything more I can do, beyond what's below, to increase performance nocount is on, connection string is established by IP, proc returns only the necessary values ...Show All
Visual Studio Team System Massive confusion here...
Can someone explain (or point me to a resource) that can explain best practices for source control using Team System I have used various VC systems, including PVCS and ChangemanDS, but I don't quite understand the paradigm that Microsoft uses with Visual Source Safe or Team Server. For example, suppose I have WebApplication1. This is created on my C drive. I now add it to source control which puts it in the Team Server/SQLServer repository. I c ...Show All
SQL Server MSmerge_genhistory error-515
Can't insert value NULL into column nicknames. This error generated when I try start sync. SQL Profiler is not helping w/ locating specific error. I tried to allow NULLS in nickname column, for this table, but this table gets dropped and recreated each time. Pls. advise on where to make correction. thx..bt Can you tell us what version of sql server you're using, including Service Pack # (if an ...Show All
Visual Studio Tools for Office Access to the contents of ThisDocument
I apologize for another newbie question, but I've been searching everywhere for this... How to I get the bytes of the current document (Globals.ThisDocument) I was going to use Globals.ThisDocument.FullName to read the file from the filesystem, but quickly discovered that when editing in IE, that actually contains the URL of the doc, not the physical path (I thought it might contain the IE temp file path). I'd rather not save to disk but if ...Show All
Visual Studio Express Editions datagridview
Hi, Iam using datagridview,How to add a new row to the datagrid view In insert button i wrote this code, dataGridView1.Rows.Add(3); when i run this code,it is giving the following exception exception: rows cannot be programatically to the datagridview's collection when control is databound In save button i wrote like this, private void button1_Click(object sender, EventArgs e) {da.Update(ds,"emp"); } It is giving the following excepti ...Show All
Visual C++ dialogs appearing behind the main window
hey guys, i have a simple problem with my MFC app. the messagebox's and color dialod's r appearing behind the main window. maybe is it because i have directx rendering a static text control in the main window so it always stays in focus or soemthing i dont know here is my code for displaying for displaying a color dialog: CColorDialog cd = CColorDialog(0, CC_ANYCOLOR); cd.DoModal(); when i press the alt button the color dialog appears. is ther ...Show All
.NET Development Thread.Abort can interrupt reference assignments?
In a Usenet discussion regarding the evils of Thread.Abort, I was informed of a possible danger in the following scenario: IntPtr ptr = IntPtr.Zero; try { ptr = Marshal.AllocHGlobal(100000); } finally { if (ptr != IntPtr.Zero) Marshal.FreeHGlobal(ptr); } Let's assume this code block runs in a thread that is subject to a ThreadAbortException. Is it actually pos ...Show All
Game Technologies: DirectX, XNA, XACT, etc. dds file format usage benefits
hi a question is next, what are benefits of using DDS file fomat for textures, say over other graphics formats(PNG,TGA,JPG). say dds is compressed, but is it gives lower memory usage or some speed, since dds is directx format, so I can think its better in all diecttions to use. On emore thing, does dds used in some worldwide games Some dds benefits : - It can contain a lot things, for example cubemap, mipmaps, and so on in one file. ...Show All
Windows Forms Why is DataGridView so slow?
I created a databound DataGrid, and then researched DataGridView to find it would fit my needs better. I have a DataGridViewCheckBoxColumn as my first column in my DataGridView then set its datasource to a DataSet. Sometimes the DataSet may contain a table with over 1000 rows. The user has a button that will select all checkboxes in the DataGridView. It takes about 5 minutes for my foreach loop to complete this task with the DataGridView. With t ...Show All
