Answer Questions
Peli basic error-trapping OOP
This is a pretty basic error-trapping question. (I am developing in VB.NET.) My core procedure makes a call to an object (say, my db object) which will return either the data being asked for, or an error. How do I handle the two "types" of data, not knowing which will come back How do I handle it at both ends Dim rtn as new = DBObj.getSomeData() class DBObj function getSomeData() as try &n ...Show All
DJSQ Event (OnChange) of (SqlDependency) object occur like the timers , not only on the change appear in the database
Hi I have Use this Code snippet to apply the concept of notification in SQL Server 2005 Developer Edition April CTP and Also I use VS.NET 2005 Beta2 But the problem the Event (OnChange) of (SqlDependency) object occur like the timers hundreds time not only on the change appear in the database … Why and How can stop this event to occur only when the change in the database using System; using ...Show All
Zack22 Showing pop-up without loosing focus
Hi, I got a c# application. I want to show a popup form without loosing focus from other application (for example if the user is typing in word, i don't want the focus to go to the popup). I tried to show it with Form.Show() (in msdn they say it will show it as modeless) but it still loose the focus sometimes. (it's not consistent). Is there any way to show the form without taking focus or to return focus to other window that had the focus ...Show All
mnlarsen about mscorlib
Hi There are 2 mscorlib dlls in our system: First one is : C:\WINDOWS\assembly (GAC) Second one is: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 When .net asembly is executing; which one is loading What is the relationship between them What are their works(i mean differences;different works) Any help about why there are 2 dlls and and works will be greatly appreciated. The one from the GAC will be picked u ...Show All
Jonathan Freidin Database UPDATE problem.
Just a question. Im really wondering why my sample database program wont update. It will say that it has updated the actual database but when i double check, it didnt. I am not using the command builder coz i want my own sql codes. When I test using the query builder, i will see the data being updated or added but when i use my own program, it really wont. Actually i have this one sample database prog ...Show All
spirit_of_pk ADO/SQLExpress Connection String Question
I'm working on a customer project and deployment project. SQLExpress is part of the installation and there is a pre-existing database. As installed, the database is detached. This application uses ADO.NET to establish SQL connections and it also uses Excel VBA to connect to the database via ADO. The following SQL Connection string works for SQL (as far as I can tell) Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\XYZ_Data ...Show All
whitesnipe How create nested namespace?
Hi people! I want create nested namespace: I want have namespace hirierchicals. Sample: using EnsambladoMain; using EnsambladoMain.Ventas; using EnsambladoMain.Compras; I can make it, with one project of Library Class Hi, you could also do this: namespace node1 { namespace node2 { public class class2 { }; }; ...Show All
Jacques Laurin Rijndael Algorithm + Padding error...
Hi all I am trying to encrypt and decrypt data using the Rijndael alogrithm. I have been successfull in encrypting and decrypting the data in one go. However problems arise when I attempt to save the key and the IV value and return at a later time to decrypt the data, The error I am getting is as follows: "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed." Here is the code that ...Show All
VGautham Hashtable -> memory limit?
Hi, I'm running into an odd problem here... I want to store a lot of data into a Hashtable, however whener my system hits about 980MB of memory consumption I'm getting out of memory exceptions. However, my systems has 2GB of RAM so there's still about 1GB free. Any ideas why this could be the case Thanks Dimkaz, >GC allocates (reserves) memory in 32gb (could be wrong here) chunks. Actually, 32GB i ...Show All
Ilya Haykinson Getting the type of a value entered in a Textbox?
Hi there, Well, i'm using VB.NET2003. I'm trying to get the datatype of a value that I've entered in a textbox, and according to the value the resultset returns, it must validate to see if the value are in fact numeric, or an integer value, if it's anything else, I want to notify the user that the value entered are in fact not a valid entry, and that the value must be re-entred. If someone can please help me. Thanks SJB ...Show All
sgudavalli newbie - how can I programatically determine which .Net framework version my machine has
Hi, I'm running a VB6 application on my machine and would like to modify the program to tell me if the .Net framework is installed (and what version) on my machine. Is there a Win32 API call to get this info or some other method Thanks, Ted See http://blogs.msdn.com/astebner/archive/2004/09/18/231253.aspx Keep in mind that multiple versions can be installed side-by-side. &n ...Show All
BobTheCorkDwarf HTTP status 407: Proxy Authentication Required +ISA Server
Hi, We're getting the follow exception thrown when calling our web service: System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ). I've found this article, but the problem is we don't want to edit machine.config as a pre-req. http://support.microsoft.com/ id=307220 So does anyone know ...Show All
Brannon Jones Soap Extension (Passing Values)
Hi, I done a hack on this already (no satisfied yet), but I was interested to know whether public [fields | properties] can be dynamically set within a Soap Extension. Thx, On the client, your SoapExtension implementation is given a SoapClientMessage instance, which has a property called "Client" which contains the proxy instance used to invoke the WebMethod. You could add whatever properties or fie ...Show All
mklee Updating several tables
I am trying to build a form based on a db with several related tables, in VB2005 express. The updating logic which VB 2005 express puts on the navigation bar to the first table binded to the form appears to work. When I add the update logic to the second table into the save button for the update logic of the first table, it doesn't work. The only thing I can figure out is that I need to update the second table relation not the table, but I don't ...Show All
Frank Forster Problems with my Visual Studio .NET 2003 IDE
Every time I start my Visual Studio.NET 2003 IDE, it starts up in a tiny little box that I have to re-expand every time. Supposedly, when I shut it down, it's supposed to save the layout. However, it doesn't, and every time I run the thing again, it starts up in this little square that I have to re-expand. I have tried uninstalling and reinstalling. I have tried deleting my devenv.xml file in my application settings. Anyone have any ...Show All
