OpenFileDialog.ShowDialog(owner) returns immediately
Hello, allHere's another mysterious problem. I want to display a modal OpenFileDialog in the SAP B1 application. I used to do it by calling OpenFileDialog.ShowDialog(owner)passing B1's...
View ArticleGenerate random number based on a random number
I want to generate a random number between 2 and 4 and then generate 2, 3, or 4 random numbers depending on what the first random number is. How can I do this?int numberDependent = random.Next(2, 5);???
View ArticleNew session webBrowser???
Hi to all, sorry for my english i have a problem with my application, when i run my application that go and enter in my account email i use webBrowser, but when i run for second time my application and...
View ArticleHow can i display live camera streaming from a website in a pictureBox ?
private void switzerlandToolStripMenuItem_Click(object sender, EventArgs e) { string camera1 = "http://cam-i.switch.ch/login.cgi?t=j&l=1&ch=2"; }The link is of a live camera not my camera that...
View ArticleCastle.MicroKernel.DefaultKernel.InitializeLifetimeService()
Please help, any ideas?[TypeLoadException: Inheritance security rules violated while overriding member: 'Castle.MicroKernel.DefaultKernel.InitializeLifetimeService()'. Security accessibility of the...
View ArticleWhy it dosent log in to the website ?
The code:else if (dr == DialogResult.OK) { try { username = lg.tb1; password = lg.tb2; StreamWriter w = new StreamWriter(appdir + txtfile); w.WriteLine("User Name: " + username + Environment.NewLine +...
View ArticleAccessors
I am trying to understand the reason behind the Engineers @ Microsoft Lab decided to add the get and set attributes. Was it just to simply add a feature or there are actual advantages, 4ex:// Snip...
View ArticleSystemSounds
Hey girls and muchachos!!I have this code:using System; using System.Media; namespace jme { class Program { static void Main(string[] args) { SystemSounds.Asterisk.Play(); //<== not working...
View Articleiterators in C#?
Hey kids!There is a piece of code in my C++ library that I would like to recreate in C#, that is... if C#'s String has not yet come with that solution :)for (std::string::iterator it = str.begin();...
View ArticleIssue in reading the Excel sheet Data in C#
I’ve a Excel sheet which will have data in column A.Like:7898778988789897899078991789927899378994789957899678J9778J9878J99 I’m looping through the column and fetching each and every single cell and...
View Articlefetching a particular column in a combobox from a ms access database using c#
i have developed an application for my perfume shop. i have created a windows form in which there are two controls(a button and a combo box). i want to fetch a column (brand name) from the table...
View ArticleDecision making program and event handling
Hi guys,I am at the stage of writing an application to do many things and report to a central decision making. So basically, I am looking to write something that read stock quotes continuously, if a...
View Articlehow to build project to generate one dll
First of all Thanks for viewing my thread.The scenario is that I generate one dll call "A"now i create a project call 'B' and the project reference the "A " dllwhen i build , the project generate A...
View ArticleExtract components form html and write to excel
helloi'm developing a tool for my final projecti have to extract all the components from an html. i need to obtain the input type and name of all the components(textbox,checkbox, radiobutton, dropdown...
View ArticleWebClient - 403 Forbidden
I am trying to write some code to download file from an url. But this seemingly trivial function doesn't work. I have explored lot of variations (based on some earlier posts): url encoding, user agent,...
View ArticleHow to move the object to multiple location in C#
Hi I am writing a visual interface map(image) on C# winform, I have the map and icon and a button start. I am looking forward to right click on the map to choose multiple location and then click the...
View ArticleC# System.NullReferenceException
Hello everyoneI have a problem and I don't know what to do with it, none of the answers worked.As the title says, it's a System.NullReferenceExceptionCode:using System; using...
View ArticleC# question with if statements
im making a quiz game and the first question is and these are just examples what color is grass and my code for if button is clicked is private void button1_Click(object sender, EventArgs e) { if...
View ArticleWhat is difference?
Hi,What is difference between?Regex re = new Regex("e"); string my = "Regular Expression"; Console.WriteLine(re.Match(my));//--------------Console.WriteLine(Regex.Match(my,"e"));
View ArticleA Collection of General Questions for Online Quiz Application
Hello everyone, maybe this is not a so much relevant question, and i am also not sure if it should be i this forum,but i want to get a collection of MultipleChoice Questions and answers. the questions...
View Article