Answer Questions
Charles55 oracle and .net 2.0
Hi, I am a new guy in .Net with Oracle. I am now using .Net 2.0 and I'ld like to change one of the working .Net applications' data layer from MSSQL to Oracle. I have poor experience with this. I did download the necessary tools that I need to work with. Also including 'Oracle developer tool for .Net 10.2.0.1.0', as far as I know it's the latest tool to work with .Net. But, I found out one information that the latest Ora ...Show All
s3ns ProgressBar.Value
Ok. I know this is an odd question but I just cant figure it out. Basically, I increment my progressBar value with a certain process. So sometimes the value is 25, or 82 or whatever. Sometimes value passed to the progressBar turns out to be a decimal, then i get the error. My question is as follows: How would I make an if statement something like this: if (progressBar1.Value == a decimal) { do.this } You are getting an e ...Show All
OliNagel datagridview
Hi, Iam using datagridview,How to add a new row to the datagrid view In insert button i wrote this code, dataGridView1.Rows.Add(3); when i run this code,it is giving the following exception exception: rows cannot be programatically to the datagridview's collection when control is databound In save button i wrote like this, private void button1_Click( object sender, EventArgs e) {da.Update(ds, "emp" ); } It ...Show All
jaabrown Differneces between c++ and c#!?
I'm quite new in programing and i started learning c++ but i want to know what are the differences between c++ and c#! (because all examples and learning lessons, from msdn Visual Studio 2005, are written in c#) I know this is a stupid question for all of you but i heard about c# only in Visual Studio. I really need an answer to this question because i don't know what lenguage to learn! Thanks Ok, very good! My f ...Show All
Shells Unloading an Assembly
Hello, I read in one of the Blogs that an Assembly cannot be unloaded. It has to be loaded into a AppDomain and then unloaded. I have tried that. Take a look at the following code. AppDomain newDomain = AppDomain.CreateDomain("NewDomain"); Assembly myAssembly = newDomain.Load(AssemblyName.GetAssemblyName(assemblyPath); After doing Reflection on myAssembly, I used ...Show All
CoolCoolMan Accessibility level?
public class x { internal struct y { } protected internal x(y param) {} } This gives the error that the type y is less accessible than the constructor. But I believe that internal is more accessible than protected internal. If I make the constructor internal only, it compiles. I'd think it's trivial that adding protected to it makes it less accessible, so why the error That struct really needs to be internal and that constructor really needs t ...Show All
willem odendaal Thread problem
Hi.. I created a thread to watch for closing a window... i make a loop for watching the process that have a Main window..and when a windows closes to do something Anyway my problem is that my CPU goes nuts.. from 3% goes to 90 100% and i gived to someone else and sad that is working fine.. And my CPU is a INTEL Pentium 4 3.2 Ghz and i Have 1Gb Ram.. the hardware shouldn`t be a problem no no no..Wait interesting thing u say there.. " ...Show All
pmukherj Generics: Is there the reverse of typeof(class)?
I'm looking for something that would do the equivalent of classof(type). Is that a daft question I'm trying to avoid this: if (tabP.GetType().GetGenericArguments()[0] == typeof(MVD)) // model page { ((TabGridPage<M ...Show All
Pinal Patel button links
How do I set a button to bring up another form box when it is clicked Hi You can use :- thanks that worked great but now i need to know how to make the "Ok" button close that windows what is the code for that private void button_Click(object sender, EventArgs e) { this.close(); } Hi, if you want to do this in the designer, follow these steps ...Show All
RazzleDazzle Migrating from Visual Basic.Net to C#
The company I work for is migrating from VB.NET to C#. Is there any way you can use C# forms or files in a VB.NET project in Visual Studio 2005. I do not know VB.NET and this will be very usefull... VS doesn't allow you to mix languages within a project. What you can do is setup a solution with your VB code in one project and your C# code in another (or however many different projects of whatever languages you require). You could then, fo ...Show All
SQL Programmer make installer for c# project issue
Hi, i'm trying for about 6 days to deploy a project with c#(from vs.2003 or vs2005) without any success. My project needs some dlls from Office(word,excell,acces) and from Adobe Acrobat 7. When i refer the dlls in my project they seem to be refered as interop-dlls.(inter-operational) The problem is when i make the installer for that project - all the dlls seem to be added in the application folder, but when the .exe tryes to use them an error ...Show All
Richard &#352;usta string to int
Hello everyone, Im trying to setup a progress bar, right now this is basically how it is set up, first I have the app count lines in a text file, this works ok: textBox2.Text = rowCount.ToString(); rowCount++; inputstring1 = StreamReader1.ReadLine(); then later, I have this where the listbox is being populated, the progress bar should show the progress of the population. textBox2 displays the number of rows, and the maximum should ...Show All
Radu C-tin Extract line number from Exception
Is there any way to extract the line number from an Exception without having to parse it from the StackTrace property Thanks, wcprog Have a look at the System.Diagnostics.StackTrace and System.Diagnostics.StackFrame classes. ...Show All
FvS How to get parameters in a web form?
Hi all, I want to design a web form which is erected by an email hypelink with a group of parameters. my problem is how to get these parameters in the code behinde C#, 2003 for example: in an email, which contains a hypelink http:\\ www.mydomain.com\popup.aspx%username;password , when user clicking on the hyprlink, the web form will retrieve information from a database against the conditions come with the hypelink. Thanks for you ...Show All
dicksters How to edit web.config file smartly
Hi, We all know we can create web form and coding using designer and IntelliSense. I would like to know if we can do the similar things on web.config file Right now, I am typing everythng in this file. I believe there should be a way I don't know yet. Any advice is welcome. Karl A C# fan-- Regarding this... A C# fan wrote: ...We all know we can create web form and coding using designer and IntelliSense. I would like to know ...Show All
