Nathan Kerr's Q&A profile
Windows Forms Images do not appear in listview
Hi all, I am using a listview and have images being shown in the first column, however these images do not show up every time. Every now and then, there is no set pattern, the images do not show and there is an empty space instead. If anyone can help me it would be greatly appreciated. Thanks in advance Thanks for the help so far nobugz, however the GC.Collect() did not change anything. Images are still shown and not shown at random times. ...Show All
Windows Forms Hi....is there any function to minimise,maxmise ,,as for close the customize bitmap form c# sharp has close() function......
well.....i have done it.......i dont want to change the backgroundcolor but i want change the conventional look of forms by my own bitmaps,...i use graphics and loaded the bitmap on forms now.....i u see the minmise, mazmixe, close buutons are not seen on the form.....instead i see my bitmap.....i paste and button on it and change the image of the button ........in that buttons code i used the function Close(); to close my bitmap form are there any functions to minimixe and maximize my bitmaps....plz write the code in this respect or tell me some tutorial i m a beginner in c# ...... thank u................ Hi, To minimize, maximize the current window use the WindowState property: this .WindowState = FormWindowState .Minimi ...Show All
Visual Basic how do i use a veriable as a textbox name
i am tring to pass a veriable to a other sub and then that sub uses that veriable as a textbox name Public Sub Casess( ByVal nu) Dim n1, n2, n3 As String Select Case (nu) Case 0 n1 = Form1.S631.Name n2 = Form1.S632.Name n3 = "" Cal(n1, n2, n3) Case 1 n1 = Form1.S501.Name n2 = Form1.S502.Name n3 = Form1.S631.Name Cal(n1, n2, n3) This code set the virables as the name of the textbox Public Sub Cal( ByVal n1, ByVal n2, ByVal n3) If Form1.n1.text >= "0" Or Form1.n2.text >= "0" Then If Form1.n1.Text = "" Then Form1.n2.Text = "0" ElseIf Form1.S92.Text = "" Then For ...Show All
Microsoft ISV Community Center Forums Filter string in GetOpenFilename method
L/G, I wrote the macro below in order to be open particular type of files in Excel. In fact it is a text file, but it has always the same name, let's call it "AAAA". I would like to have a filter in order to be able to see only this file in folder when i use GetOpenFilename. But the filter string in GetOpenFilename method doesn't work. The code shows all the files in the current directory. What is the right filter string Any help will be appreciated. Here is the code Private Sub OpenAAAA() Dim strAaaaFullFileNm As String Application.StatusBar = "Opening AAAA" ChDrive ThisWorkbook.Path ChDir ThisWorkbook.Path strAaaaFullFileNm = Application.GetOpenFilename("AAAA file, AAAA", 1, &qu ...Show All
Software Development for Windows Vista Installation of Windows SDK for .NET 3.0 fails
Hello! I need help. I tried to install the "Microsoft Windows SDK for .NET 3.0 framework". But the installation fails. I did not change anything (no options or path) while installing. Here is the end of the log file (I changed the domain and user name): 18:05:23 Dienstag, 5. Dezember 2006: [SDKSetup:Info] File succesfully downloaded - source:http://download.microsoft.com/download/a/7/7/a7767f09-0136-4a96-a1f8-276bf0ee31fa/WinSDK-WinSDK_BIN_VC8_Runtime_X86_CRT-common.0.cab target:file:///C:/Dokumente und Einstellungen/username.DOMAIN/Lokale Einstellungen/Temp/SDKSetup/WinSDK/WinSDK-WinSDK_BIN_VC8_Runtime_X86_CRT-common.0.cab size:555366 18:05:23 Dienstag, 5. Dezember 2006: [SDKSetup:Info] Beginning download of file http:/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you handle exceptions?
I took my free-look camera project to work to show my colleagues and when I tried to run it I get an InvalidCallException in my Program.cs on game.Run(); I don't have a 3D card in my work machine but other projects I've created on it have worked fine so I started a new project and copied the game components across and ran it.\ Now I get the same expection when I call DrawUserPrimitives, can anyone tell me what might be happening And how are you supposed to handle exceptions either in Game Components (which you might not have built) or in code Is there any more information on the exception you get How you handle exceptions is up to you. You could use a messagebox. Once GUI features are available you could use them. For compabil ...Show All
SQL Server missing Microsoft.SqlServer.ManagedDTS
Hi I am trying to run a SSIS package first time through vb.net console application. As the first step, i was trying to add the reference for Microsoft.SqlServer.ManagedDTS assembly but it was not in the available assemblies list box in visual studio 2003! Please guide what i am supposed to do to get it, or if there any other alternative. Thanks in advance Utsav In the Add Reference dialog window, click on the browse tab. Then navigate your way to: C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies There you will find the Microsoft.SQLServer.ManagedDTS.dll, select it and hit okay... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Controlling Game By MIDI
I'd like to be able to control directx games via MIDI - eg use a guitar footboard that has a pedal and switches etc to generate game controller events. All the vaguely related references I've found on the web are for using directx controllers to generate MIDI events! I want to use MIDI events to generate the equivalent of key presses, mouse buttons or (say) a throttle control. Are there any drivers that do this already If not, how difficult would it be to roll my own, and what would it involve I'm quite competent at C/C++ etc but most of my experience is in an embedded environment, not Direct X. Thanks, Chris Thanks for the pointer. I've written some custom PCI drivers for NT4/Win2k and a custom IPSe ...Show All
Visual C# Problems with references and project dependencies
Our company is heading for a major source code cleanup but we are currently stuck in the conversion process because of two problems with relative paths in project references and dependencies of external projects, respectively. First, at bit about our source code setup. Each product is maintained in its own folder with the following structure: Product A/ Trunk/ Branches/ Version-1.0/ <contents of Trunk/ goes here> Version-1.1/ <contents of Trunk/ goes here> Version-1.2/ <contents of Trunk/ goe ...Show All
.NET Development Getting the Assembly Description found in AssemblyInfo.cs
Question In the code below I can extract a version number, name and .Net framework information, but I cannot find where to get the Description field as specified in the AssemblyInfo.cs. Where can the description, as well as other information, found in the AssemblyInfo.cs, be accessed from Code Assembly execAssembly = Assembly.GetExecutingAssembly(); AssemblyName name = execAssembly.GetName(); Console.WriteLine(string.Format("{1} {2:0}.{3:0} for .Net ({4}){0}", Environment.NewLine, name.Name, name.Version.Major.ToString(), name.Version.Minor.ToString(), execAssembly.ImageRuntimeVersion )); Platform .Net 2 C# Console Application advTHANKSance Thanks Brendan! BTW I have been using code found in an post ...Show All
Visual C# <E2ETraceEvent> when using XMLWriterTraceListener
When I use the XMLWriterTraceListener to log Tracemessages I get an output similar to this: < E2ETraceEvent xmlns = " http://schemas.microsoft.com/2004/06/E2ETraceEvent " > < System xmlns = " http://schemas.microsoft.com/2004/06/windows/eventlog/system " > < EventID > 1 </ EventID > < Type > 3 </ Type > < SubType Name = " Error " > 0 </ SubType > < Level > 2 </ Level > < TimeCreated SystemTime = " 2006-10-10T13:15:14.5919177Z " /> < Source Name = " xmlSource " /> < Correlation ActivityID = " {00000000-0000-0000-0000-000000000000} " /> < Execution ProcessName = " XMLTrac ...Show All
Smart Device Development SQL Server connectivity
I have an app using SQL Server 2000 and VS2005. I can connect using Enterprise Manager and the Server Explore in VS2005. When trying to connect through the app I recieve the following error messages: "SQL Server does not exist or access denied. Has anyone seen this before Thanks Yes, quite a few times in fact: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=335660&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=270532&SiteID=1 ...Show All
SQL Server Sql 2005 Deployment Problem
Hi , I am using SQL 2005 (Developer edition) on XP (SP2)... When I design my report I can see it on the "Preview" tab that it is working but when it comes to deployment I receive this error: Error 1 The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) Am I doing something wrong How can I deploy it Thanks in advance Iggy, I not sure what the error is, I have not seen it before, you can look at the error log file for more descriptive error message. The log file is located on ...Show All
SQL Server SQLDependency is very slow
I posted this in the .Net data access forum with no replies, so I'm trying it here and apologize for the cross-post. I'm researching using SQLCacheDependency in an application to keep caches up to date between applications. I could also use SQLDependency, just haven't tried that yet. I've tried a test where I read 1000 rows from a database, cache each one, and create the cache dependency. The dependencies work fine. My problem is that it is 100 times slower to read and create a dependency than it is to just read the row. At this rate, I need a 99% cache hit ratio just to make my caches break even! Is caching even worth it at this rate Why is it so slow Thanks very much for any insight. Here is the code: for (int i = 0; i < 1000; ...Show All
Software Development for Windows Vista Display resolution and font size
Hi, It is my understanding that Vista has the ability to scale all text sizes according to the display resolution (i.e. 12 point fonts will actually be 12 ponts regardless of the display resolution). Has this capability been implemented in Vista Beta 2 If not, is it going to be I have tried it out with Vista Beta 2 and the text sizes still decrease as the monitor resolution increases. Thank you kindly. My understanding is DPI scales with screen resolution (i.e. as the resolution increases the size of each pixel descreases). So 1 inch represented by on a 1280x1024 resolution at Window's default 96dpi will be longer then on a 1600x1200 resolution. Hence text that are not TrueTyped becomes smaller a ...Show All
