Nabz's Q&A profile
Visual C# Is there a way to change the type of a form property after decleration of it?
I have a form class using myTypedTableAdapter1 bound to a form property ; private myTypedTableAdapter1 this.tableadapter; .. this.tableadapter = new myTypedTableAdapter1(); .. On the otherhands, I have two different menu items, first creating an instance of this form with myTypedTableAdapter1 (as it is), &nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Effect who has no effect...
I try to use the BasicHLSL.fx in a program I thing I've done all I could to set it properly I've set up the device, load the effect, Set the Matrix and the Light value I Set the right technique, I call the Begin() and BeginPass I set up the World, View and Projection matrix and I render tiny.x in view The only stuff I don't do is the optimize portion and the adjecency part But it look like it's for performance only It compile and run without err ...Show All
Visual Basic Christmas quizz, local network Server machine name
All of my users are not that knowledgeable. Some don't even know how to enter the network path to a shared R/O network folder on the PC Server. All machines are running Windows XP SP2. So I would very much like to help them setting up a Client with this path. I know the IP address of the Server on this local network, but how obtain the machine name using VB 2005 After several hours I still do not know how the VB code should be. Looking up Hel ...Show All
Visual Studio Target reuse
I'm trying to learn msbuild and it looks like it will be a good replacement for the system we currently use, but I can't figure out how to do the following: < Project xmlns = " http://schemas.microsoft.com/developer/msbuild/2003 " > < Target Name = " steps " > < Exec Command = " nmake.exe /NOLOGO $(Target.Parent.Name) " WorkingDirectory = " .\src\dir1 " /> < Exec Command = " nmake.exe /NOLOGO $(Target.Parent.Nam ...Show All
.NET Development AppDomain.GetCurrentThreadId Depreciated
Whilst migrating a 2003 application to 2005, I get the warning that the method AppDomain.GetCurrentThreadID has been depreciated and I should use the ManagedThreadID property on Thread. When I try replacing the method to comply, my code stops working. Here is the code snippit. IntPtr handle = Win32.GetThreadDesktop(AppDomain.GetCurrentThreadId()); Works ok IntPtr handle = Win32.G ...Show All
SQL Server SQL Server reporting services
Can the report grouping be changed or chosen by using parameters Thank you for your help. You can reference a parameter value from the group expression. You can't turn off a grouping, but you can change the group expression to return a constant value, which effectively, would disable the grouping. ...Show All
Visual Basic Upgrading an application from 2003 to 2005
Hey guys, I just upgraded one of my applications from 2003 to 2005, and managed to do it quite easily, except for one Routine. I had the following Sub in .NET 2003 that I used to populate a DataGrid. But now, with 2005, I am getting 5 errors (marked in red) saying that 'TableStyles' is not a member of 'System.Windows.Forms.DataGridView'.......... what must I use instead Public Sub FillDataGrid(ByVal GridSQL As String, ByVal frmDataGrid As DataG ...Show All
Visual Studio Express Editions Express downloading errors
Hi everyone, I'm having trouble here. I downloaded the 2.5MB Express setup and ran it. Downloading paused once so I cancelled but didn't quit which got it going again. 3 of the 4 were ticked, but MySQL didn't tick even when it got to the 294MB. Then I cancelled thinking the others were installed but not MySQL. No such luck. Nothing! How do I download these files properly Is there any direct links to get them with I prefer not to have to downlo ...Show All
SQL Server Random Failure of Lookup in Pre-Execute with 0x8007000E
I have a SSIS package that I can run three times in a row and various lookup components will return: Error: 0xC004701A at Foo, DTS.Pipeline: component "Lookup Date" (166) failed the pre-execute phase and returned error code 0x8007000E. Without changing any input data or the package I can just hit F5 again and occasionally get past this or sometimes get stuck on it. Any ideas what that error code means I am getting similar errors, Two ex ...Show All
Visual FoxPro Dot Net Examples with VFP
I am seriously thinking about starting to use some of the dot net features within VFP. Where would be a good place to start with some maybe code examples of how to call dot net functions... or how this can be worked.. (beyond data access and web services) I am more interested in desktop applications at this point. But any pointers would be helpful.. Thanks so much . Bob Lee ...Show All
Visual Studio 2008 (Pre-release) Is the pseudo SQL syntax necessary?
Current LINQ syntax is like this: var upperLowerWords = from w in words select new {Upper = w.ToUpper(), Lower = w.ToLower()} where w.StartsWith("a"); But I think that this is unnecessary breeding of C# with SQL. I believe that combination of methods with lambda calculus would be better: string[] words = { "aPPLE", "B ...Show All
Visual C# Determining which Process has exited
Hi all, I have had a quick search through the posts, but can't seem to find an answer to my question, which is.... I have a Service that manages 'n' instances of processes on a machine. The Service needs to be able to determine when a process exits because unless it has shut it down this is an error and needs reporting so that something can be done about it. As such I have a collection of Process which I have started for each I allow them to rai ...Show All
Visual Studio Tools for Office Print an excel file
Hello I wonna print an existing excel file. But i have always an error with my code "Code: Dim wb1 As Excel.Workbook wb1.Workbook.Open("C:\Brandstoffen Van denbrande-VanRoie\Mazoutprijs-ingevuld.xls") DirectCast(wb1.Sheets(1), Excel.Worksheet). _ PrintOut(From:=1, To:=1, Copies:=1, Preview:=False) Why doesn't work this Or have some ...Show All
Visual C# Is it posible to compile C# code into standalone executable?
Is it possible to compile C# code into standalone executable(native mashine code) ...Show All
Windows Forms Passing Variables Between Forms
This is probably a silly question to ask here, but I need to be able to pass variables between forms. What I mean is, for example, you open a form that asks for a URL and after you hit the OK button, the function that called it can use the URL. I can use a global variable to accomplish this, but I'm sure there must be a way to do it more elegantly. I know how to do this sort of thing in MFC, but I'm fairly new to .NET programming in VC++ 2005 ...Show All
