{"id":4527,"date":"2014-03-30T13:12:48","date_gmt":"2014-03-30T13:12:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-winapp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T13:12:48","modified_gmt":"2014-03-30T13:12:48","slug":"problem-about-winapp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-winapp-collection-of-common-programming-errors\/","title":{"rendered":"problem about winapp-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Z8u1W.jpg?s=32&amp;g=1\" \/><br \/>\nSysDragon<br \/>\nvb.net winforms winapp<br \/>\nI am working in VB.NET and I am wondering about the difference between Nothing and System.DBNull.When I fire save query at that time I am giving value from grid at runtime like as follow:gvMain.Rows(j).Cells(&#8220;Brand&#8221;).Value.ToString()But it shows me error when it has value of Nothing and it works perfectlly when it has value of System.DBnull.What to do in this case? Thanks in advance<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/198e97040297ad9cfeb783345d694641?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFaulty Orc<br \/>\n.net vb.net winapp<br \/>\nI am having a windows form that whenever I want its controls like picturebox update normally I need to hide it and show it to let the cahnges happen. This causes a blink which I want to avoid.Does anybody know what are my options? It is a picture box from form1 being copied to form2 and let the user see the changes.Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3e94a1cec490c28b6b08ed0d8cf3ee22?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsebagomez<br \/>\n.net process io winapp<br \/>\nHere&#8217;s the deal. My WinApp is running, right? in let&#8217;s say process &#8216;A&#8217;.It creates a file and keeps the handle (keeps the file open for writing, this is a must). Then it starts other msbuild process, let&#8217;s call it &#8216;B&#8217;. This process is started with the System.Diagnostic.Process class. At some point, my WinApp (A) needs to delete the previously created file (remember it was created by A itself), and that&#8217;s when I get an IOException with the message &#8220;The process cannot access the file &#8216;X&#8217; because i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b4779212f57ff2e9549ea90a4499c2d7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmarc_s<br \/>\nc# .net visual-studio-2010 winapp<br \/>\nprivate void button1_Click(object sender, EventArgs e) {string url = urlTextBox.Text;HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);HttpWebResponse response = (HttpWebResponse)request.GetResponse();StreamReader sr = new StreamReader(response.GetResponseStream());richTextBox1.Text = sr.ReadToEnd();webBrowser1.DocumentText = richTextBox1.Text;HtmlElement htmlElement = webBrowser1.Document.GetElementById(&#8220;name&#8221;);string data = htmlElement.InnerText;label1.Text = data;sr.Close(); }I<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SysDragon vb.net winforms winapp I am working in VB.NET and I am wondering about the difference between Nothing and System.DBNull.When I fire save query at that time I am giving value from grid at runtime like as follow:gvMain.Rows(j).Cells(&#8220;Brand&#8221;).Value.ToString()But it shows me error when it has value of Nothing and it works perfectlly when it has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4527","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4527"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4527\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}