nub340's Q&A profile
Visual Studio Express Editions Removing labels (scriptwise) doesn't want to work.
I use the following code in my program to add some labels: Dim l As Label For i As Integer = 0 To 10 l = New Label l.Name = "LabelDay" & i.ToString l.Text = "Day" + i.ToString l.Top = 88 + (i * 20) l.Left = 5 l.AutoSize = True l.Visible = True Me.Controls.Add(l) Next i Now I want to remove them with: For Each c As Control In Me.Controls If TypeOf c Is Label Then Me.Controls.Remove(c) End If Next For some reason I have to run the remove function several times. Why doesn't my script remove all labels at once I'm still struggling with my code to remove the labels. The code given before works, but as I have a lo ...Show All
.NET Development BadImageFormatException
Using VS2005, VB.Net 2.0 application, which includes a C++ DLL as an interface linkage component. The C++ DLL was complied using the .x86 side. In the VB code, there is this line Declare Ansi Function ShowMessage Lib "mylib.dll" ( ByVal msg As String , ByRef i1 As Integer , ByRef i2 As Integer , ByRef i3 As Integer , ByRef i4 As Integer , ByVal s1 As String , ByVal s2 As String , ByVal s3 As String , ByVal s4 As String ) As Integer When a 64 bit machine on Vista tries to run the program, this error comes back from the JIT... System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) &nbs ...Show All
Visual Studio Team System error 1402 installing virtual server 2005 R2
Installing virtual server 2005 R2 on a Windows XP OS, I'am getting the error "Error 1402 could not open HKEY_LOCAL_MACHINE \Software\Classes\Msxml2.DomDocument.4.0\CLSID Verify that you have sufficient access to that key, or contact your support personnel". My UserId has admin rights so I don't think that access rights are the problem. Logged under the local admin account and tried again. Same error. I tried on un Lap top with windows Xp and all is OK. Why I need help aurelio I had the same problem installing Virtual PC, and the solution that worked for me was provided by Michael Iacoviello as shown below: Open regedit, and navigate to HKLM\Software\Classes Delete all regi ...Show All
SQL Server Need to find which stored proc deleted data from a table
Hi, I have a application in which there are a couple of stored procs . I need to identify which stored proc deleted data from the table A . I tried to find out this from the transaction log by running DBCC Log & :: fn_dblog function. But i was not able to findout the object_id for the stored proc. Is there a way to fnd this out I don't want to use any auditing mechanism. I mean, i should be able to identify the stored proc which deleted data from the data provided by the SQL server. TIA Sky: If what you are saying is that you want to perform auditing going forward perform a search on "audit" or "auditing" -- there are plenty of posts ...Show All
Visual Basic Error Creating Interop Form Wrapper Classes for Project ...
Hi, I successfully used the interop forms toolkit V1.0 (by the way didnt you promise V2.0 ), but after adding another interop form I receive the message: "Error Creating Interop Form Wrapper Classes for Project ..." when I start >Tools>Generate InteropForm Wrapper Classes. On the machine I have installed only with .net I receive this message 2 times, on the machine with the vb6 IDE I receive the message once. Can you help I have no idea where to search... Thanks Alex Hi Jonathan I m also getting same error as alex. I hv my two modules generated in visual studio 2003. and my company's main product in vb. so i have converted my this two modules in visual studio 2005 to util ...Show All
Visual Studio Visual Studio Combined Help Collection is Borked
How do I repair a damaged help collection In an effort to reduce the insane duplication of help collections I've managed to completely bork my Visual Studio 2006 Combined Help Collection. I've been trying different collections of help files by using the Help Collection Manager form and have finally broken everything. When I launch Combined Help I now get a blank home page with no TOC in the Contents sidebar and no topics in the Index sidebar. However, both sidebars have long lists of items in their "Filtered by:" dropdowns. I am able to access the Help Collection Manager form by manually typing in the url. I can even manipulate the selected collections and verify that the changes are persisted. What I cannot do is get Combined He ...Show All
Visual FoxPro How to control the scanner with VFP?
Hi everyone, Could I build a program in VFP to control my scanner as: connect, scan, and save file.... Where could I find out the TWAIN OCX support for it Thanks a lot. >>Could I build a program in VFP to control my scanner as: connect, scan, and save file.... I don't know how good a programmer you are so how can I tell if you could I also don't know what scanner you are using, what version of VFP, what operating system and whether or not the scanner exposes a comopnent as an automation server, and if so, what functions are avaailalbe. If I did know any of these things I might be able to tell you if I could do it or not... >> Where could I find out the TWAIN OCX support ...Show All
SharePoint Products and Technologies Accessing data in lists and libraries in a state machine workflow
I'm currently trying to develop a state machine workflow in VS2005. For this workflow I need 2 data sources: data from the current form item for that this workflow was started (it's an InfoPath document in a form library) and data from a specific dataset (can be identified by a specific field in the list) in another list on the website How can I get access to this data I need it for the workflow to identify which user has to get a task assigned next and in the end I need the list to be updated with the results of the workflow. Thanks in advance ;) Hi Uwe82, Not sure about the second point, but for the first, when I did this I did: // Get the form ListItem in the Library SPWeb myWeb ...Show All
SQL Server How to get a list of reachable Servers in VBA
I'm working on an Logon-Form in an Excel VBA project (Excel 2003, Windows XP Prof.), where a user on a client machine should log on to a sql database. Could anybody give me a tip on how to get a list of reachable SQL-Servers And - based on a given SQL Server - how to get a list of databases Many thanks for your suggestions, Etienne This link might help you http://www.sqldbatips.com/showarticle.asp ID=45 Sethu Srinivasan, Software Design Engineer, SQL Server Manageability -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm . ...Show All
.NET Development Regular Expression
Hi all, I am new on using Regular Expression. I have a few cases that need your help on how to construct the regular expression for validation a) string can only be alphabetic b) must be in the following format nn.nn where n is numeric c) string that allow only alphabets, numbers and underscore where first letter must be alphabetic d) First letter must be 'C' follow by 2 numbers (eg. C02, C99 etc) Lastly, could someone provide me with relevant website for me to learn more on regular expression. Thanks Paul Ardemue wrote: First of all, take a look at regular-expression.info you'll find all you need. Don't forget to the look at the comprehensive post at the top of t ...Show All
SQL Server Merge replication problem on Windows Mobile 5
Hi, I developed a mobile application (CF 2.0) that uses merge replication to synchronize data between SQL Server Mobile and SQL Server 2000 SP4. The application uses asynchronous synchronization (BeginSynchronize method) to initiate the replication and update the user about the progress. The application worked perfectly on PPC2003 and Windows CE .Net 4.2 platformes. The problem started when I moved it to WM5 platform. We're using Symbol MC70 devices. When I start the replication for the first time it synchronizes without a problem. If I perform additional synchronizations(updates) it synchronizes without a problem. If I exit the application and start it again the sync process hangs when I try to synchronize it(to deliver updates). ...Show All
Software Development for Windows Vista Installing .net 3.0 and WWF
I downloaded and installed the .net 3.0 framework Then installed the Windows SDK and the installed The visual studio extensions for WCF and WPF . I am trying to build a demo WWF code but the code is not able to reference the System.Workflow classes. I see that these should be in: C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation - but I cannot see them there. Did something go wrong during the set - up is there a log file for the set up process Is there a particular order to follow when installing the new .net 3.0 and WWF, WCF, WPF and Windows SDK I am using WinXP SP -2 and have VSTeam Edition2005 and .net Framework 2.0 -jawahar Thanks for the Information about the ...Show All
Visual C# compared to C++, the difference ?
Compared to C++, 1. after C# coding is compiled and packaged into exe, run it, the speed, compared to C++, is same or not 2. after C# coding is compiled and packaged into exe, the user pc still need .net library to run it Thanks. About no.1 what about Thread + socket + read/write file for example, it will read a huge (say, 4GB) file from remote web sever, parse it and then save it into database. what about the performance compared to C++ Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Non-Xbox Gamepads
I went to rig my gamepad into my XNA game today.. it is a playstation dual-shock controller rigged through a USB adapter. It shows up cleanly under game controllers with four axes and sixteen buttons, and is a fully DirectX compliant HID. Overall an excellent controller. I tried to read its value using the GamePad.GetState(...) method and it tells me the controller is disconnected! The docs say the GamePad class is for "user interaction with an Xbox 360 Controller". Have those of us making Windows PC games been left out of the party What about flight yokes, or 'true' joysticks (like my Sidewinder), or other gamepads XNA is built on DirectX, which can read these devices readily.. and XNA is the proclaimed successor ...Show All
Windows Live Developer Forums Get File List in SharePointer using C#
Hi I am new to SharePoint and I want to get MsWord file list which I have stored in SharePointer Server. Could someone give me a small sample in C# for this OK, this is actually fairly easy to do. First thing you need to do is to add a reference the Sharepoint.dll in your project. Then in your code add :- using Microsoft.Sharepoint; Next you need a pointer to your site then to load the web that hosts the library. Once that's done you can get a reference to the library and the objects in it. SPSite mysite = new SPSite(" http://localhost ") // replace localhost with the URL of your site SPWeb myweb = mysite.OpenWeb(); SPFolder mylibrary = myweb.Folders["Name of library" ...Show All
