﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / .NET Programming (VB 2010 or earlier) / C# </title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 17 May 2012 02:04:25 GMT</lastBuildDate><ttl>20</ttl><item><title>delete in c# .net</title><link>http://www.a1vbcode.com/vbforums/Topic30182-11-1.aspx</link><description>i try to delete a record using this code;&lt;br&gt;&lt;br&gt;[quote]            string ConStr = "Provider=Microsoft.Jet.OleDB.4.0; Data Source =" + Application.StartupPath + "\\db1.mdb";&lt;br&gt;            using (OleDbConnection Conn = new OleDbConnection(ConStr))&lt;br&gt;            {&lt;br&gt;&lt;br&gt;                Conn.Open();&lt;br&gt;&lt;br&gt;                OleDbCommand Cmd = new OleDbCommand("Select * from table1 WHERE PatientNo='" + "11-11001" + "'", Conn);&lt;br&gt;                OleDbDataAdapter dAdapter = new OleDbDataAdapter(Cmd);&lt;br&gt;                DataSet dDataSet = new DataSet();&lt;br&gt;&lt;br&gt;                dAdapter.Fill(dDataSet, "table1");&lt;br&gt;&lt;br&gt;                dDataSet.Tables["table1"].Rows[0].Delete();&lt;br&gt;                &lt;br&gt;                dAdapter.Update(dDataSet, "table1");&lt;br&gt;                dDataSet.AcceptChanges();&lt;br&gt;&lt;br&gt;                Conn.Close();&lt;br&gt;&lt;br&gt;            }[/quote]&lt;br&gt;&lt;br&gt;but the message is: &lt;b&gt;Update requires a valid DeleteCommand when passed DataRow collection with delete rows.&lt;/b&gt;</description><pubDate>Sat, 12 Mar 2011 13:04:07 GMT</pubDate><dc:creator>marcus416</dc:creator></item><item><title>Block IExplorer.exe</title><link>http://www.a1vbcode.com/vbforums/Topic30481-11-1.aspx</link><description>I want to write code which would not allow internet explorer to run without valid passwrd, &lt;P&gt;I have two ideas:&lt;/P&gt;&lt;P&gt;1) by blocking iexplorer.exe&lt;/P&gt;&lt;P&gt;2) by blocking activeX control of internet explorer&lt;/P&gt;&lt;P&gt;am right or wrong, please suggest me and give me some idea/hint/pice of code/article etc. to achive the purpose&lt;FONT size=1&gt;&lt;BR&gt;&lt;/FONT&gt;</description><pubDate>Thu, 07 Jul 2011 04:45:05 GMT</pubDate><dc:creator>Shahzad</dc:creator></item><item><title>problem in minimize form in c#</title><link>http://www.a1vbcode.com/vbforums/Topic30130-11-1.aspx</link><description>hi everyone &lt;br&gt;&lt;br&gt;i want to minimize my form to system tray in my C# windows application and hide it from taskbar&lt;br&gt;&lt;br&gt;my main problem is that when i click on minimize it goes to system tray and hide from taskbar &lt;br&gt;&lt;br&gt;but it goes to the top of start menu &lt;br&gt;&lt;br&gt;please find the attached what i mean.&lt;br&gt;&lt;br&gt;1- i want to know where is the minimize button action in my application&lt;br&gt;&lt;br&gt;my code  is as follow&lt;br&gt;&lt;br&gt;        private void Form1_Resize(object sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;            if (WindowState == FormWindowState.Minimized)&lt;br&gt;            {&lt;br&gt;                this.Hide();&lt;br&gt;                this.Visible = false;&lt;br&gt;               this.ShowInTaskbar = false;&lt;br&gt;               this.Opacity = 0;&lt;br&gt;&lt;br&gt;             &lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;so how to disable viewing my form in top of start menu button?</description><pubDate>Wed, 02 Mar 2011 03:31:01 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>check internet connection not internal network connection</title><link>http://www.a1vbcode.com/vbforums/Topic30212-11-1.aspx</link><description>i am making an application that must check before running the internet connection&lt;br&gt;&lt;br&gt;i am using this code&lt;br&gt;&lt;br&gt; try&lt;br&gt;            {&lt;br&gt;&lt;br&gt;                req = (HttpWebRequest)WebRequest.Create("http://www.1aeg.net");&lt;br&gt;                resp = (HttpWebResponse)req.GetResponse();&lt;br&gt;&lt;br&gt;                if (resp.StatusCode.ToString().Equals("OK"))&lt;br&gt;                {&lt;br&gt;                    connected_check = "1";&lt;br&gt;                }&lt;br&gt;                else&lt;br&gt;                {&lt;br&gt;                    connected_check = "2";&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;            catch (Exception exc)&lt;br&gt;            {&lt;br&gt;                connected_check = "2";&lt;br&gt;            }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;when i logged out from the server the internet connection will be disabled but the internal network in the office is still connected.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;when i logged off or i did not enters the user name and password the internet access is not available but the internal network is available through the server.&lt;br&gt;&lt;br&gt;&lt;br&gt;how i can detect if the internet access is available regardless the internal network connection in the office????</description><pubDate>Wed, 23 Mar 2011 10:28:01 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>Send message via bluetooth</title><link>http://www.a1vbcode.com/vbforums/Topic30519-11-1.aspx</link><description>I am a newbie and I want to develop a application in Visual Studio using C#, so that I can send text messages to my computer via bluetooth. I am badly struck in the middle as the code I made is not working at all.&lt;br&gt;&lt;br&gt;So please help me with any working code or any online support for the same.</description><pubDate>Sun, 24 Jul 2011 05:04:58 GMT</pubDate><dc:creator>amitbolo</dc:creator></item><item><title>Find in Tables</title><link>http://www.a1vbcode.com/vbforums/Topic30888-11-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have a function that returns all the database tables with the data items in it. Is it possible to search for a value in all tables and return the table name and the datarow that contains the value?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Tue, 08 Nov 2011 04:41:12 GMT</pubDate><dc:creator>shers</dc:creator></item><item><title>Storing Values to XML</title><link>http://www.a1vbcode.com/vbforums/Topic31205-11-1.aspx</link><description>Can anybody help how to store values to the following xml from .NET application&lt;br&gt;&lt;br&gt;&lt;SQLSchema&gt;&lt;br&gt;                &lt;Databases&gt;&lt;br&gt;                                &lt;Database id=””&gt;&lt;br&gt;                                                &lt;DbObjects&gt;&lt;br&gt;                                                                &lt;DbObject id=””&gt;&lt;br&gt;                                                                                &lt;Name&gt;&lt;/Name&gt;&lt;br&gt;                                                                                &lt;Type&gt;&lt;/Type&gt;&lt;br&gt;                                                                                &lt;ReturnValue&gt;&lt;/ReturnValue&gt;&lt;br&gt;                                                                                &lt;Parameters&gt;&lt;br&gt;                                                                                                &lt;Parameter&gt;&lt;br&gt;                                                                                                                &lt;Name&gt;&lt;/Name&gt;&lt;br&gt;                                                                                                                &lt;DataType&gt;&lt;/DataType&gt;&lt;br&gt;                                                                                                                &lt;Direction&gt;&lt;/Direction&gt;&lt;br&gt;                                                                                                                &lt;Size&gt;&lt;/Size&gt;&lt;br&gt;                                                                                                                &lt;Source&gt;&lt;/Source&gt;&lt;br&gt;                                                                                                &lt;/Parameter&gt;&lt;br&gt;                                                                                &lt;Parameters&gt;&lt;br&gt;                                                                &lt;DbObject&gt;&lt;br&gt;                                                &lt;/DbObjects&gt;&lt;br&gt;                                &lt;/Database&gt;&lt;br&gt;                &lt;/Databases&gt;&lt;br&gt;&lt;/SQLSchema&gt;&lt;br&gt;</description><pubDate>Wed, 15 Feb 2012 11:58:54 GMT</pubDate><dc:creator>pmksunil.net</dc:creator></item><item><title>Web Service</title><link>http://www.a1vbcode.com/vbforums/Topic30836-11-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I'm working on a C# Windows Application which has a Web Service. I'd like to know how to communicate with the Web Service using XML. To be precise, I have a data set that has to go to the Database via Web Service. So I'd want to send this data using XML to the Web Service. How would I do that please?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sun, 30 Oct 2011 14:21:56 GMT</pubDate><dc:creator>shers</dc:creator></item><item><title>How to add function for creating dynamic meta tags in C# ?</title><link>http://www.a1vbcode.com/vbforums/Topic30809-11-1.aspx</link><description>I want to add dynamic meta tags which autometicallyfetch some field from my product data base and according to regular expression pattern specified by me It should create meta tags ( title, keyword, description). How to implement this with use of ASP.net with C# support.&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 20 Oct 2011 03:30:08 GMT</pubDate><dc:creator>Liliane</dc:creator></item><item><title>Getting Newly Created Process</title><link>http://www.a1vbcode.com/vbforums/Topic30485-11-1.aspx</link><description>what should I do to get newly created process say, if user runs Internet explorer, notepad, winword etc. my application would get its name. one thing which I know is my application should be running in background say at windows startup.&lt;BR&gt;&lt;BR&gt;Help me please to figure it out this in best manners&lt;BR&gt;&lt;BR&gt;Thanks &amp;amp; Regards&lt;BR&gt;Shahzad</description><pubDate>Thu, 07 Jul 2011 06:19:44 GMT</pubDate><dc:creator>Shahzad</dc:creator></item><item><title>How to compare strings ignoring their case</title><link>http://www.a1vbcode.com/vbforums/Topic30413-11-1.aspx</link><description>Plz help me out &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt;</description><pubDate>Fri, 03 Jun 2011 07:00:40 GMT</pubDate><dc:creator>Nilesh Sanyal</dc:creator></item><item><title>SIP SMS example</title><link>http://www.a1vbcode.com/vbforums/Topic30422-11-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Lately I found a C# sip sms example. With it an efficient system can be built for &lt;br&gt;sending sms information or notification. &lt;br&gt;I want to ask your opinion if I should purchase it or not.&lt;br&gt;&lt;br&gt;It can be found here:  &lt;br&gt;http://voip-sip-sdk.com/p_174-sip-sms-example-voip.html&lt;br&gt;&lt;br&gt;Thanks.</description><pubDate>Tue, 07 Jun 2011 08:33:01 GMT</pubDate><dc:creator>andrewadams</dc:creator></item><item><title>What is the best book to learn C# in a good manner</title><link>http://www.a1vbcode.com/vbforums/Topic30414-11-1.aspx</link><description>Plz help me &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt; &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt;</description><pubDate>Fri, 03 Jun 2011 07:03:22 GMT</pubDate><dc:creator>Nilesh Sanyal</dc:creator></item><item><title>How to Compare Strings ignoring their Case</title><link>http://www.a1vbcode.com/vbforums/Topic30381-11-1.aspx</link><description>Plz Help me to compare strings ignoring their Case!!</description><pubDate>Sun, 15 May 2011 07:37:15 GMT</pubDate><dc:creator>Nilesh Sanyal</dc:creator></item><item><title>vb.net tutorial</title><link>http://www.a1vbcode.com/vbforums/Topic28322-11-1.aspx</link><description>Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;TABLE border=0 cellSpacing=1 cellPadding=9 width="100%"&gt;&lt;TBODY&gt;&lt;TR id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl2_trRow2&gt;&lt;TD id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl2_tdPostCell3 class=ForumsBody1 vAlign=top width="24%" nowarp=""&gt;&lt;/TD&gt;&lt;TD id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl2_tdPostCell4 class=ForumsBody1 vAlign=top width="76%"&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;Hi Folks, &lt;P&gt;       Iam new to Vb.net,previously i was into c#.can anyone give me an efficient VB.NET TUTORIAL.&lt;/P&gt;&lt;P&gt;Thanks&lt;FONT size=1&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;Leo Franklin &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Wed, 28 Oct 2009 05:26:19 GMT</pubDate><dc:creator>lefrancisco1</dc:creator></item><item><title>check if program is running and shows a prompt</title><link>http://www.a1vbcode.com/vbforums/Topic30051-11-1.aspx</link><description>hi everyone&lt;br&gt;&lt;br&gt;now icheck if program is running or not using this code&lt;br&gt;&lt;br&gt;            Process[] pname = Process.GetProcessesByName("AIM");&lt;br&gt;            if (pname.Length == 0)&lt;br&gt;                MessageBox.Show("nothing");&lt;br&gt;            else&lt;br&gt;                MessageBox.Show("run")&lt;br&gt;&lt;br&gt;&lt;br&gt;all that i need is to be sure that the program is closed before taking my action and shows for the user  that the program AIM  is already running. you must close it before completing   (OK,Cancel)&lt;br&gt;&lt;br&gt;and after pressing ok  i will put my fuction&lt;br&gt;&lt;br&gt;&lt;b&gt;for example:&lt;/b&gt;&lt;br&gt;when you install the photoshop and the program is already running it shows for you that the program is already running. you must close it before completing   (OK,Cancel)&lt;br&gt;&lt;br&gt;&lt;br&gt;and after clicking OK .. the program will compltete instalation&lt;br&gt;</description><pubDate>Mon, 14 Feb 2011 08:50:00 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>passing variable to a button</title><link>http://www.a1vbcode.com/vbforums/Topic30049-11-1.aspx</link><description>hi everyone.. i am using  windows application to get data from web service and according to the result an action will be taken&lt;br&gt;&lt;br&gt;for example if the result is &lt;b&gt;1&lt;/b&gt; i will download a file and the name of the file will be taken from my database.&lt;br&gt;&lt;br&gt;all that i need is to pass the name of the file from the form to the button_click Event&lt;br&gt;&lt;br&gt;&lt;b&gt;my result is&lt;/b&gt;:&lt;br&gt;&lt;br&gt;&lt;br&gt;        private void button1_Click(object sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;&lt;br&gt;&lt;br&gt;            WebClient webClient = new WebClient();&lt;br&gt;            webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);&lt;br&gt;            webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);&lt;br&gt;            webClient.DownloadFileAsync(new Uri("http://www.myexample.com/john_test/Setup.msi"), @"c:\Setup.msi");&lt;br&gt;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;i want it to be &lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;        private void button1_Click(object sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;&lt;br&gt;&lt;br&gt;            WebClient webClient = new WebClient();&lt;br&gt;            webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);&lt;br&gt;            webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);&lt;br&gt;       webClient.DownloadFileAsync(new Uri("http://www.myexample.com/john_test/"&lt;b&gt;+Result&lt;/b&gt;), @"c:\"&lt;b&gt;+Result&lt;/b&gt;);&lt;br&gt;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;i want to pass variable to the button or use something like Global variable  but i dont know how to use its syntax?&lt;/b&gt;&lt;br&gt;can anyone help me please</description><pubDate>Sun, 13 Feb 2011 08:33:51 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>Notifyicon to open a link after clicking on the icon</title><link>http://www.a1vbcode.com/vbforums/Topic29937-11-1.aspx</link><description>hi everyone.. i made my windows service in C# and everything is running well except only one task..&lt;br&gt;&lt;br&gt;i made a notifyicon1 in the taskbar so that the user can click on this notifycon1 and opens a links that it is retrieved from &lt;br&gt;&lt;br&gt;database.&lt;br&gt;&lt;br&gt;for example i am trying to open the link of google when the user clicks on the notifyicon1.&lt;br&gt;&lt;br&gt;My problem is that the action of double click for the notify icon is not working neither for mouse move or double click action&lt;br&gt;&lt;br&gt;my code is:&lt;br&gt;                           this.notifyIcon1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.john_move);&lt;br&gt;                          this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);&lt;br&gt;&lt;br&gt;Note: i made 2 function one for the event double click and the other for mouse move coz i made first double click function &lt;br&gt;&lt;br&gt;but it did not works for me.&lt;br&gt;&lt;br&gt;  private void notifyIcon1_DoubleClick(object Sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;            try&lt;br&gt;            {&lt;br&gt;                File.WriteAllText(@"c:\\windows_service_files\\STErrors.txt", "notifyIcon1_DoubleClick " + &lt;br&gt;&lt;br&gt;DateTime.Now.ToString());&lt;br&gt;&lt;br&gt;                //System.Diagnostics.Process.Start("http://www.google.com");&lt;br&gt;&lt;br&gt;            }&lt;br&gt;            catch (Exception ex)&lt;br&gt;            {&lt;br&gt;                File.WriteAllText(@"c:\\windows_service_files\\STErrors.txt", "catch 1 "+DateTime.Now.ToString() + &lt;br&gt;&lt;br&gt;ex.ToString());&lt;br&gt;            }   &lt;br&gt;        }&lt;br&gt;&lt;br&gt;        private void john_move(object sender, System.Windows.Forms.MouseEventArgs e)&lt;br&gt;        {&lt;br&gt;            try&lt;br&gt;            {&lt;br&gt;                File.WriteAllText(@"c:\\windows_service_files\\STErrors.txt", "John move " + DateTime.Now.ToString());&lt;br&gt;&lt;br&gt;                System.Diagnostics.Process.Start("http://www.google.com");&lt;br&gt;&lt;br&gt;            }&lt;br&gt;            catch (Exception ex)&lt;br&gt;            {&lt;br&gt;                File.WriteAllText(@"c:\\windows_service_files\\STErrors.txt", "catch 2 " + DateTime.Now.ToString() + &lt;br&gt;&lt;br&gt;ex.ToString());&lt;br&gt;            }   &lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;Please reply as soon as possible..&lt;br&gt;&lt;br&gt;thanks and best regards for everyone</description><pubDate>Mon, 24 Jan 2011 08:09:31 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>pop-up in c#</title><link>http://www.a1vbcode.com/vbforums/Topic29926-11-1.aspx</link><description>hi guys thanks everyone for help in my last post now i made my windows service that get response from a web service and everything is working well.&lt;br&gt;&lt;br&gt;all that i need now is:&lt;br&gt;1- The windows service  should pop-up something saying there is a new application to be downloaded in case the webservice replied by val=1 and link for an exe file.&lt;br&gt;these file can  be downloaded in the pc so the user can install it .&lt;br&gt;&lt;b&gt;N.B:     Like windows update link and pop-up that is shown in the taskbar that telling us that there is a new update and you can download it from this link &lt;/b&gt;&lt;br&gt;so that&lt;br&gt;&lt;b&gt;The user should click on the pop-up and click on the link on the pop-up, to download the new application, like he downloaded the windows service before.&lt;/b&gt;&lt;br&gt;&lt;br&gt;can anyone tell me the idea about doing this task??&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 18 Jan 2011 03:46:57 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>create files during intsallation</title><link>http://www.a1vbcode.com/vbforums/Topic29923-11-1.aspx</link><description>hi guys now i created a webservice that return its response in a txt file.&lt;br&gt;&lt;br&gt;to make my setup i  clicked on file--&gt;add--&gt; add new project --&gt;other project types --&gt; setup and deployment --&gt; setup project --&gt; change the name to MySetup&lt;br&gt;&lt;br&gt;&lt;b&gt; but now i want to create a txt files (STResponse.txt) and (param.txt)&lt;/b&gt; so it can be created when during the setup of the windows service.&lt;br&gt;&lt;br&gt;any help please</description><pubDate>Mon, 17 Jan 2011 08:19:20 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>problem in  framework version (very important)</title><link>http://www.a1vbcode.com/vbforums/Topic29919-11-1.aspx</link><description>hi guys, i want to ask a small question.&lt;br&gt;i made a windows service that work using framework version 3.5, after that i made the installer of this windows service to let the user uses this windows service on their computer's.&lt;br&gt;&lt;br&gt;Now i want to setup this windows service on different operating services like windows 7, windows vista, windows xp......&lt;br&gt;&lt;br&gt;but when i tried to setup it in windows 7 i found that there is a conflict in the framework version. coz i am using in my project windows framework version 3.5 and the file &lt;b&gt; InstallUtil.exe&lt;/b&gt;  is in the framework v2.0.50727&lt;br&gt;&lt;br&gt;it's path is: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe&lt;br&gt;&lt;br&gt;so how i can allow the user to setup the windows service into different framework(s)??&lt;br&gt;&lt;br&gt;&lt;b&gt;or  &lt;/b&gt;how i can make a windows service regardless it's framework version???</description><pubDate>Sun, 16 Jan 2011 04:05:37 GMT</pubDate><dc:creator>john_zakaria</dc:creator></item><item><title>Calling C++ DLL from C#</title><link>http://www.a1vbcode.com/vbforums/Topic23849-11-1.aspx</link><description>I have made a C++ DLL. Now I am calling it in my C# Code. I have written the following code:&lt;br&gt;&lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Text;&lt;br&gt;using System.Runtime.InteropServices; //For DllImport&lt;br&gt;namespace ExternCShar&lt;br&gt;{&lt;br&gt;    class Program&lt;br&gt;    {&lt;br&gt;        [DllImport("MathFuncsDll.dll", CharSet = CharSet.Auto)]       &lt;br&gt;        public static extern double Add(double a, double b);&lt;br&gt;&lt;br&gt;        static void Main()&lt;br&gt;        {&lt;br&gt;    &lt;br&gt;            Console.WriteLine(Add(2.3, 4.5));&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;Now when I run this, the following error is generated:&lt;br&gt;&lt;br&gt;Debug Error!&lt;br&gt;&lt;br&gt;Program: ...&lt;br&gt;&lt;br&gt;R6034&lt;br&gt;An application has made an attempt to load the C Runtime library without using a manifest.&lt;br&gt;&lt;br&gt;This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest.&lt;br&gt;&lt;br&gt;For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;What should I do avoid this error?&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br&gt;Bina Khan.</description><pubDate>Tue, 25 Dec 2007 10:00:35 GMT</pubDate><dc:creator>nicegal</dc:creator></item><item><title>Read data from excel</title><link>http://www.a1vbcode.com/vbforums/Topic29330-11-1.aspx</link><description>Hi everyone,&lt;br&gt;&lt;br&gt;I need to write a code in C# that can read data inserted in excel file like in the picture (http://img714.imageshack.us/i/080620101506.jpg/) (mainly I need to group the row CODE) and the tool have to find all the same information in the columns and then have to group this in an other sheet.&lt;br&gt;&lt;br&gt;I want to know if is it possible and if anyone can help me.&lt;br&gt;I am avaible for more details.&lt;br&gt;&lt;br&gt;Thank you in advance!</description><pubDate>Tue, 08 Jun 2010 12:35:22 GMT</pubDate><dc:creator>ilbossmancato</dc:creator></item><item><title>Please send me the C# code to configure SMTP........!!!!</title><link>http://www.a1vbcode.com/vbforums/Topic25394-11-1.aspx</link><description>Hello Sir,&lt;/P&gt;&lt;P&gt;Please send me the C# code to configure SMTP by which I can send mail from my own C# form.........&lt;/P&gt;&lt;P&gt;Hope you help me.........&lt;/P&gt;&lt;P&gt;Please send me the C# code as soon as you can........&lt;/P&gt;&lt;P&gt;Thanking you...........&lt;/P&gt;&lt;P&gt;Swastik...........</description><pubDate>Tue, 15 Jul 2008 09:00:10 GMT</pubDate><dc:creator>swastik</dc:creator></item><item><title>Urgent Help</title><link>http://www.a1vbcode.com/vbforums/Topic28953-11-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Am using web browser control... but while using IE8... progress bar,tab title bar are not working.&lt;br&gt;I wrote coding for tat in c#....But its working in IE5...&lt;br&gt;&lt;br&gt;Can any one help me.....</description><pubDate>Tue, 02 Mar 2010 03:20:05 GMT</pubDate><dc:creator>prasath86</dc:creator></item><item><title>Need Help</title><link>http://www.a1vbcode.com/vbforums/Topic26565-11-1.aspx</link><description>I need a site which can provide me online tutorials of Asp.Net and C#. Do let me know if anyone know the site(s).</description><pubDate>Sat, 27 Dec 2008 08:06:42 GMT</pubDate><dc:creator>cool_kumar28</dc:creator></item><item><title>how to create check availabilty coding.....</title><link>http://www.a1vbcode.com/vbforums/Topic24360-11-1.aspx</link><description>hello sir....i'm new in C# languange....so that i want to ask how to create check availbility coding...the situation of my problem is i need to check availbility for some equipment whether available or not....&lt;br&gt;&lt;br&gt;one more question...how i can add data in SQL server using vb.net C# language.... thats mean when the customer fill all the information,all information can be inserted in database.....&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Crying.gif" border="0" title="Crying"&gt;  help me.....</description><pubDate>Fri, 07 Mar 2008 01:54:28 GMT</pubDate><dc:creator>mimithebest</dc:creator></item><item><title>How to design a simple programe similar to the microsoft equation editior</title><link>http://www.a1vbcode.com/vbforums/Topic28251-11-1.aspx</link><description>Hello Dear members,&lt;/P&gt;&lt;P&gt;Does any one have and idea about How to design a simple programe similar to the microsoft equation editior using visual c#?</description><pubDate>Wed, 07 Oct 2009 04:05:45 GMT</pubDate><dc:creator>Ali Al-Faraj</dc:creator></item><item><title>on error goto</title><link>http://www.a1vbcode.com/vbforums/Topic28164-11-1.aspx</link><description>I need help in on error goto in c#.net. How to solved this problem in c#.net. Although it's easy in vb.net</description><pubDate>Tue, 08 Sep 2009 06:54:08 GMT</pubDate><dc:creator>Makura</dc:creator></item><item><title>Need help for Single Instance</title><link>http://www.a1vbcode.com/vbforums/Topic28104-11-1.aspx</link><description>Hi everyone... I created a game using c#. But i can run the exe for several times. I just need to block the exe more than one time. What should i do?</description><pubDate>Sat, 29 Aug 2009 03:17:39 GMT</pubDate><dc:creator>sdineshkannan</dc:creator></item><item><title>Getting values from Sharepoint lists using Web Service</title><link>http://www.a1vbcode.com/vbforums/Topic28070-11-1.aspx</link><description>All,&lt;br&gt;&lt;br&gt;I'm trying to develop my own version of the project that can be found here:&lt;br&gt;&lt;br&gt;http://www.codeproject.com/KB/sharepoint/SharePointListWebService.aspx&lt;br&gt;&lt;br&gt;Below is the code, similar to what he's posted, for pulling list items from our MOSS calendar.&lt;br&gt;&lt;br&gt;&lt;div style='border: 3px solid #000000 color:#000000; background-image: none; background-color: #CCCCCC; Padding: 25px;'&gt;mosslists.ListslistService=&lt;font color='#0000CC'&gt;new&lt;/font&gt;mosslists.Lists();&lt;br&gt; &lt;br&gt; //SharePointWebServicesrequireauthentication&lt;br&gt; listService.Credentials=System.Net.CredentialCache.DefaultCredentials;&lt;br&gt; &lt;br&gt; &lt;font color='#0000CC'&gt;String&lt;/font&gt;newIssueTitle="Programmaticallyaddedissue";&lt;br&gt; &lt;font color='#0000CC'&gt;String&lt;/font&gt;listGUID="{5B62B9F4-F0CA-4CC5-9753-87A5EB129E3C}";&lt;br&gt; &lt;font color='#0000CC'&gt;String&lt;/font&gt;activeItemViewGUID="{52CDD743-D45B-4548-A521-AA1C7DED4B24}";&lt;br&gt; &lt;br&gt; &lt;font color='#0000CC'&gt;string&lt;/font&gt;strBatch=&lt;br&gt; ""+&lt;br&gt; String.Format("{0}",newIssueTitle)+&lt;br&gt; "";&lt;br&gt; &lt;br&gt; XmlDocumentxmlDoc=&lt;font color='#0000CC'&gt;new&lt;/font&gt;System.Xml.XmlDocument();&lt;br&gt; System.Xml.XmlElementelBatch=xmlDoc.CreateElement("Batch");&lt;br&gt; elBatch.SetAttribute("OnError","Continue");&lt;br&gt; elBatch.SetAttribute("ViewName",activeItemViewGUID);&lt;br&gt; elBatch.InnerXml=strBatch;&lt;br&gt; XmlNodendReturn=listService.UpdateListItems(listGUID,elBatch);&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;I'm getting an error on that last line:&lt;br&gt;&lt;br&gt;&lt;div style='border: 3px solid #000000 color:#000000; background-image: none; background-color: #CCCCCC; Padding: 25px;'&gt;XmlNodendReturn=listService.UpdateListItems(listGUID,elBatch);&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;The error message is as follows:&lt;br&gt;&lt;b&gt;Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.&lt;/b&gt;&lt;br&gt;&lt;br&gt;Looked at the return packet from the server, and I noticed that the innertext of the error was as follows:&lt;br&gt;&lt;b&gt;The system cannot find the file specified. (Exception from HRESULT: 0x80070002)&lt;/b&gt;&lt;br&gt;&lt;br&gt;Also, I retrieved the GUIDs you see in the above code by using the utility available here:&lt;br&gt;&lt;a href="http://blogs.msdn.com/ronalus/archive/2007/09/08/a-little-guid-picker.aspx" target="_blank" class="SmlLinks"&gt;http://blogs.msdn.com/ronalus/archive/2007/09/08/a-little-guid-picker.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;And in my google quests, most answers revolved around making sure the Web Service reference is added to the MOSS subsite, not the root site. I want to say now, that I've been careful to attach to the correct site.&lt;br&gt;&lt;br&gt;&lt;b&gt;EDIT: &lt;/b&gt;Mark's Syntax Highlighter took all or most of the spaces out of my code. Try to ignore that, I'm compiling just fine, no code syntax errors. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Fri, 21 Aug 2009 12:16:00 GMT</pubDate><dc:creator>Mobius</dc:creator></item><item><title>Previous Next Buttons</title><link>http://www.a1vbcode.com/vbforums/Topic26706-11-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have some images that has to be displayed on a form from a dynamic folder using control array. The controls display 5X3, that is 15 images on one form. How do I display the next set of images using Next button, and go back to the previous set using the Previous button, if there are more than 15 files in the folder.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Sun, 11 Jan 2009 03:18:07 GMT</pubDate><dc:creator>shers</dc:creator></item><item><title>[C++]The Donut</title><link>http://www.a1vbcode.com/vbforums/Topic27989-11-1.aspx</link><description>Hi all, don't know if you remember or followed a topic called: &lt;br&gt;"I am looking to hire a programmer to create the following code in c#."&lt;br&gt;&lt;br&gt;I took it on although the output wasn't great, here's an updated version WITH source in C++, the project's created using a free compiler named DEV C++ -&amp;gt; &lt;A href="http://www.bloodshed.net/devcpp.html"&gt;http://www.bloodshed.net/devcpp.html&lt;/A&gt;.&lt;br&gt;&lt;br&gt;Screenshots of the actual program;&lt;br&gt;&lt;br&gt;&lt;IMG src="http://www.a1vbcode.com/vbforums/Uploads/Images/05ecd0e2-0102-434c-8ad5-1620.bmp"&gt;&lt;IMG src="http://www.a1vbcode.com/vbforums/Uploads/Images/f6d797bb-b876-4d60-b133-c939.bmp"&gt;&lt;br&gt;&lt;br&gt;Basically what it does is that it creates a new donut-shaped form around the cursor with the purpose to help people with some sort of eye distortion. There's alot to be done for further releases, such as the use of settings in order to change the opacity manually etc... &lt;br&gt;&lt;br&gt;The program pausesby hitting PAUSE-key, resume by press again.&lt;br&gt;&lt;br&gt;Regards, Anasazi.</description><pubDate>Mon, 03 Aug 2009 14:15:29 GMT</pubDate><dc:creator>Anasazi</dc:creator></item><item><title>problem in a notebad project</title><link>http://www.a1vbcode.com/vbforums/Topic27954-11-1.aspx</link><description>&lt;STRONG&gt;&lt;FONT size=3&gt;Dear sir,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;i havabeen busy making a notebad project by c#&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;when a series problem stoped me &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;i want to make a search or find function to search words in my rich text box &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;please reply as quicly as possible &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/STRONG&gt; </description><pubDate>Tue, 28 Jul 2009 10:02:58 GMT</pubDate><dc:creator>prog.ahmed</dc:creator></item><item><title>Cosmos</title><link>http://www.a1vbcode.com/vbforums/Topic26769-11-1.aspx</link><description>I just found this the other day and they are talking about making a OS in C#. Is this reallty possible?&lt;br&gt;&lt;br&gt;http://www.gocosmos.org/index.en.aspx&lt;br&gt;&lt;br&gt;I looked at some of the screen shots that they have and its not bad and all but if its really true can you also code a GUI into it. I would like to create mu own OS but everywhere I look I need to know ASM which is really confusing and C++ which I'm trying to learn now.&lt;br&gt;&lt;br&gt;&lt;br&gt;Has anyone else ever heard about Cosmos?&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you everyone for your time</description><pubDate>Sun, 18 Jan 2009 17:22:23 GMT</pubDate><dc:creator>Talekim</dc:creator></item><item><title>Error while accessing EXE to client machine</title><link>http://www.a1vbcode.com/vbforums/Topic27722-11-1.aspx</link><description>&lt;DIV class=postcolor id=post-655645&gt;Dear All,&lt;BR&gt;&lt;BR&gt;I have created one application with C#.Net with single form.&lt;BR&gt;On this form i have taken Crystal report viewer and i include one report in this.&lt;BR&gt;This application is running on Server.I have taken EXE of this application on client machine. It give following error,&lt;BR&gt;&lt;BR&gt;"Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0,&lt;BR&gt;Culture=neutral,PublicKeyToken=btta5c561934e089 failed.'" &lt;BR&gt;&lt;BR&gt;Can anybody suggest me how to solve this problem ?&lt;BR&gt;&lt;BR&gt;Thnks &lt;BR&gt;&lt;/DIV&gt;&lt;!--IBF.ATTACHMENT_655645--&gt;&lt;!-- THE POST --&gt;</description><pubDate>Thu, 28 May 2009 03:23:40 GMT</pubDate><dc:creator>hspatil31</dc:creator></item><item><title>Settings Help?</title><link>http://www.a1vbcode.com/vbforums/Topic27383-11-1.aspx</link><description>&lt;FONT size=2&gt;&lt;P&gt;I have been making a program in VB.NET (2008) and am tring to learn C#. I want to make the same program in C# and have some troubles with my.settings.&lt;/P&gt;&lt;P&gt;I have two forms (vb.net). One form has textbox's that are binding to my.settings.  When the user types in a web address in urltextbox and the name of the website in urlnametextbox the settings are binded to the other form with buttons that connect to my browser so the the user can just click the button to take them to the website that is binded to that setting....&lt;/P&gt;&lt;P&gt;on form 2 (code for the button)&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;pre&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; myURL &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;My&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Settings.url1&lt;/P&gt;&lt;P&gt;Browser.Show()&lt;/P&gt;&lt;P&gt;Browser.WebBrowser1.Navigate(myURL)&lt;/P&gt;&lt;P&gt;&lt;/pre&gt;&lt;/P&gt;&lt;P&gt;I would like to learn the same thing with C# but see that it's different.  If anyone could help me I would appreciate it. &lt;/P&gt;&lt;P&gt;daveofg&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sun, 05 Apr 2009 16:03:11 GMT</pubDate><dc:creator>daveofgv</dc:creator></item><item><title>datetime comparision</title><link>http://www.a1vbcode.com/vbforums/Topic27363-11-1.aspx</link><description>in my application i have to create an excel report of records.&lt;br&gt;everyday at a specified time the report of records added from last 24 hrs has to be generated automatically.&lt;br&gt;i am unable to compare the dates.&lt;br&gt;&lt;br&gt;please give me the solution&lt;br&gt;&lt;br&gt;thanks in advance</description><pubDate>Wed, 01 Apr 2009 06:48:45 GMT</pubDate><dc:creator>srikanth.sambari</dc:creator></item><item><title>File path in XML</title><link>http://www.a1vbcode.com/vbforums/Topic26360-11-1.aspx</link><description>Hi all,&lt;/P&gt;&lt;P&gt;I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when needed. But how do I go about it? I have not done any coding with xml yet. So, please help.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Tue, 25 Nov 2008 03:01:11 GMT</pubDate><dc:creator>shers</dc:creator></item><item><title>Control Array</title><link>http://www.a1vbcode.com/vbforums/Topic26672-11-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I'm working on C# with COM. I have a COM OLE control that I wish to create on the form as control array during runtime, as the number of cotrols depends on the number of files in the corresponding folder. How do I go about it? I'm attaching a pic of the form as to how I want it to be. &lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Thu, 08 Jan 2009 01:27:16 GMT</pubDate><dc:creator>shers</dc:creator></item></channel></rss>
