Bertan Aygun - MSFT's Q&A profile
Visual Basic How do I know if an exception is thrown from a specific method?
Hi, I am relatively new to VB .NET. (I have started using .NET v2.0) I have a Class that does some work with a Dataset and if an Exception occurs, I catch it and throw it again so that the calling method from the GUI can catch it and throw a custom message. I would like to ask you if there is a generic way to define which exceptions the method might throw. That way when I write the code of the GUI that calls some methods of some classes I will not have to go back to each individual method, search the code and find what exceptions it throws in order to catch them and display custom error messages. For example in Java you can decl ...Show All
Visual Studio Express Editions Icons for my Application????
HI all., I'm Back due to the spedd and accuracy of the help I received with my last question! This may seem obivious or silly to some- but how do I control what icon windows uses for my application when veiwed in an explorer window Is this even do-able in VC++ Exp Ed I've tried the form icon field in Designer, but that only seems to set the icon for the taskbar. Again, any help would be greatly appreciated. Cherrs DT. If you created the project from the templates, they will have created a file called app.ico (or possibly <app>.ico) in your directory. That's your application ...Show All
Visual Studio 2008 (Pre-release) VB Hands-on Lab: Known Issues
#1. Exercise 1, Task 6, Step 17 (fix for join). Text should read as follows: Dim customers = db.Customers Dim employees = db.Employees Dim ids = _ ( From c In customers, e In employees _ Where c.City = e.City _ Select e.EmployeeID).Distinct() #2. Exercise 3, Task 1, Step 7 (line as published generates run-time error.) Text should read as follows: ExecuteCommand( "exec DeleteDVD {0}" , dvd.ID) ...Show All
Visual Studio Team System TFS Install fails...
I installed TFS Beta 2 on a new Win2k3 server, pretty fresh install. Nothing really running on it yet except SQL 2005 with default setup. The installation got almost to the end... like .1% left, and froze for several minutes then returned an error that a service or something wasn't responding - Retry or Cancel. Retried a few times, same error. Cancelled, the installation "finished" and then crashed. There is no sign that TFS is actually installed except a few empty folders in Program Files. Now I cannot run setup again because it says TFS is already installed, but I can't uninstall it because from all appearances on the system, it is no ...Show All
Windows Forms populate a TreeView from a Typed Dataset
Hi, I have a Typed Dataset with tables with folowing relations: -Main | --Product | --List | --Accessories | --PlugIns All these are tables. I want to display this in a treeView : Table names for Product and List; but&n ...Show All
Windows Forms event on scaning barcode
hi , i am using vb.net 2003 and i want to scan barcodes with the scaner i want if the scaner completes the scaning doesn't matter what the length is the next textbox is focused i tried it on different events but could not find the proper event can any body help me best regards ali shah The problem appears to be with the&nb ...Show All
Visual Studio Express Editions Exception thrown in a ClickOnce installation
Hi again, Sorry, but I have another ClickOnce problem. My program runs without exception in the development environment, but the ClickOnce RUN version throws an exception in the form.Load event. Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles MyBase .Load Try Dim fileStr As String = "..\Images\" doorPic(0) = Image.FromFile(fileStr + "Door1.gif" ) doorPic(1) = Image.FromFile(fileStr + "Door1S.gif." ) doorPic(2) = Image.FromFile(fileStr + "Door2.gif" ) doorPic(3) = Image.FromFile(fileStr + "Door2S.gif ...Show All
Windows Forms Appdomain Create and unload Assembly into
Ok this might sound really simple, though I have had nothing but trouble. All I want to do is be able to create an instance of a class in an assembly and then be able to unload it. So when it unloads then the dll will not be locked anymore. I have tried creating an appdomain and I have tried shadowcopy but whenever I create an insta ...Show All
Windows Forms Bug?? Creating window
Have 1.1 VS 2003 This: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim F As New Form1 F.Show() End Sub Gets a handle error. Why should it, I'm only wanting to show another instance of the form so two are showing on loadup. Seems like a ...Show All
Windows Forms Bind Data Grid To Collection
Hello! I am trying to bind a data grid control to a collection class, And That works Fine but the problem is that The Columens get the fields names And I don't Want that. What should i do This might help: <a href="http://www.gotdotnet.com/community/messageboard/Thread.aspx id=19446">http://www.gotdotnet.com/community/messageboard/Thread.aspx id=19446</a> ...Show All
Smart Device Development Loading images as embedded resource: How to optimize
Hi!!! I have a pda application that uses a dll that I made. That dll has some images that i load as an embedded resource, when i run the application, it takes some time t load all images and i can see in the emulator the images loading... What can I do to make the images load at the same time Thanks in advance A useful method of determining the full name of all embedded resources in your assembly is to use GetManifestResourceNames which returns an array of strings containing each resource filename e.g. string[] resourceNames = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames() ...Show All
Windows Forms capicom error when trying to publish winapp onto local IIS
i have win xp sp2, vs2005 RTM, and i have a simple win form app. it compiles ok, but when trying to publish it into my local IIS i get those errors: 1. Cannot publish because a project failed to build. 1 1 WindowsApplication1 2. SignTool reported an error 'Failed to sign bin\Debug\WindowsApplication1.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM. i have capicom 2.1.0.1 and i ...Show All
Visual C++ (Newbie) - getline - Import/Export file
OK There I go i'm having a Hell to understand how Import/Export file work in C++ i need to save stuff in a external file and get them later when i re-run the program. To be more specific, i would like to save ''accounts'' without using Databases. only to master Import/Export. I just don't know how to procede I tried something with getline() but every time I enter the information shown on msdn, I get an error saying it was expecting 2 args while i've put 3 of them. My output file data looks like that : 0001 abc123 34 2433 64354 Name Blabla 0002 gfdfg 34 6234 84434 Name blabla etc where the first 4 chars are the A ...Show All
SQL Server about multiplication in sql
what is the value when running sql script select cast( cast(.0000006 as numeric(38,10)) * cast(1.0 as numeric(38,10)) as numeric(38,10)) the result is .0000010000. why the result is not .0000006000 It looks to be rounding it upto the nearest decimal place, as the result has one fewer zeros to the right of the decimal point. WHy it would do this I am not sure. ...Show All
Windows Forms Refresh Designer at Design Time?
Hi, I’ve created a simple user control which resizes its height automatically according to the image size loaded by a user at design time. After loading the image my control resizes but the control selection area doesn’t resize automatically - only when I click on the control. My control also has a custom control designer which restricts the control user to set the user controls height at design time. Is there any particular reason why this is happening How can I fix this Thank you, Eric Maroudas. Yeah you were right. Using OnComponen ...Show All
