Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Python questions
View Java questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by Asgard25 (Top 29 by date)
For my previous work we rewrote vb6 to vb.net over two years. It was the best and most that I've ever learned the .net framework. So I agree by hand is the best.
Rewrite it by hand, java and c# is close enough so that it isn't an unmanageable task. And the best part is you'll learn a lot more about C#, becoming more efficient in it.
Have you tried ofd.SafeFileName ?
I'm not so sure about in wpf, but if you really have to test it, create a new non-ui thread in Application_Startup I'd say. Get your app's process(Process.GetProcesses()) and check if it is responding, if not kill and launch it again. Just do proper testing when doing this.
Have a look at this solution
Please post your full code as the question and code is unclear.
Just close the popup when you want to with
MyPopup.IsOpen = false;
It could be a css or z.index problem, inspect with firefox and have a look around
Currently we are not, that is the problem.
We only need to Sync down to the clients.
That part I have gotten so far.
What my main problem currently is the auto sync to a specific location without the user having to set it.
We have to update crystal reports and some other files on a weekly basis. And this is the path that was chosen for me..
The user shouldn't be able to change the files or upload them again.
aFld.Extract(11).StringValue returns a string value, in this case something like "182.82"
Those are some of the ways I tried, none of them works.
No not SQL server just windows server 2012, it has nothing to do with the DB.
This is the exact code that works on win7 and server2008
If aFld.Extract(11).StringValue < 0 Then
lblAvailCrW.ForeColor = Color.Red
lblAvailCrT.ForeColor = Color.Red
Nope still get "input string was not in a correct format" error.
double.tryparse(svalue,ivalue), was one of the ways I tried
on any line that does the converting it gives the error.
Haha sorry :-)
Dim index As Integer = Array.IndexOf(imgOption, eventSender)
And if I click any one of the images click event it goes to the sub. Even in debug it goes to the right sub and executes all the code except where I need the eventsender details.
Design Time, and yes I have double checked the names.
The code is fairly basic, from where I call it "frmGenP0053.ShowDialog()"
And the form that is called only got this code on form_load, for now
If Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printers.Count > 0 Then
'Iterate through all the installed printers
For Each prThis As Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer In Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printers 'PrinterHelper.Printers
lstPrinters is a listbox
It's basically stuck on the previous(is this case formA) screen.
Try removing TRIM() as it's not really needed, except if you actually need to trim it.
I have no idea how your code looks cause your hosting that locally..., but just make sure your IF statement is correct, just think by what I reckon is happening is that your calling an object that is null or not created yet
And try it on LoadComplete
Are you just trying to display sql data in your datagrid ?, if yes try this.
smodule will be your sql connection string
Dim dtHomework As New DataTable()
Using sqlCon = New SqlConnection(sModule)
Dim cmd As New SqlCommand("SELECT your sql query.....", sqlCon) '
Dim adp As New SqlDataAdapter(cmd)
dgAssign.DataSource = dtHomework
Have you tried giving the time to a string value(e.g sTime) and then, sTime = sTime.addDays(+1) ?
Thank you, that worked great !
Dim div1 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div1.Attributes("Class") = "row-fluid"
Dim div2 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div2.Attributes("Class") = "span13"
Dim div3 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div3.Attributes("Class") = "widget"
Dim div4 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div4.Attributes("Class") = "widget-title"
Dim div5 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div5.Attributes("Class") = "widget-content"
Dim dynDiv As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
dynDiv.ID = lcount
dynDiv.Attributes("Class") = "chart"
dynDiv.InnerHtml = "I was created using Code Behind"
Dim div6 As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
div6.Attributes("Class") = "clearfix"
Last Updated 1 Jan 1900
All Rights Reserved.