Ok so i'm working on this project that requires me to imput a month and year which then will output the number of days in the selected month for you to select from, then determines what day of the week it is. The problem i'm having is that I cant get the month to the converted value that I need for it to work . Example: January will be the 13th month and february as the 14th of the previous year. Heres what i have so far if it helps. Aslo the code that I have to use to find the day of the week only works when the total is divided by 7, and then the value of the remainder is the day of the week with saturday =0, sunday=1, monday=2, and so on.
I am working on a code where I need to add 21 years to the date 02/15/1957 and have it display the week day of that year. I have been looking at different web sites for visual basic
I need to generate a report that shows the 52 weeks of a year (or 53 weeks as some years have) and their start and end dates. There is an ISO spec to do this but seems awfully complicated! Im hoping someone knows of a way to do it in C# or Visual Basic (its actually for Visual Basic 6 but I will try port it across)
Sorry in advance. I emailed myself my coding since I don't have vb on my personal computer. Sooo, the format is going to be off. But my program allows the computer to generate a random date. The user has to guess what day of the week the random date lands on. I have written the whole code. It all works except when user checks his/her answer. The answer always comes up as incorrect. Here is the coding:
I have a ComboBox where I select which day of the week I want it to update. And each week at that day, at a predefined time as well I want it to add 1 to an integer. I want it to continue doing this until I stop it. When I close the program I want it to do a check on start up if it has past that set date and time, if it has it should add 1 to the integer again, if 2 weeks have past I want it to add 2 to the integer.
Form1 has:C# to VB converter 2 textbox (where they will put the code from C# or VB ):1 that will put info: other that will apeear the converted text 1 button
I need source how to make when its press button1 to show them in new texbox the souce code that he selected
Form2: VB to C# converter. i need the same and for VB to C# code when its pressed button for Form2
i am a beginner and trying to write a program that can convert .dwg file into .xml file format.i am familiar with visual studio 2008, vb.net and autocad 2007.
My boss has given me a new task of converting his old vb projects to new new .net projects. He wants me to convert both windows as well as web applications to the latest versions. As I am new to programming, I am having difficultly in converting the codes.w if there is any free VB6 to VB.Net Converter which can convert all code. And also let me know if there is any good way to manually convert VB6 code to VB.Net code.
I have this app written in VB.Net with winforms that shows some stats and pictures on a bigscreen monitor.I also monitor the memory usage of sad app by using this. Process.WorkingSet64
I know windows does not always report the correct usage but I just wanted to know if I didn't have any little memory leaks which I had but are solved now. But the first week the memory usage was around 100MB and the second week the memory usage showed around 50MB.
So why did it all of a sudden drop while still running the exact same code?I can hardly imagine that the garbage collector kicked in this late since the app refreshes every 10 seconds and it has ample time in between those periods to do it's thing.Or perhaps there is just better way to get memory usage for a process that is more reliable.
is there any ready to go solution within the microsoft framework, regarding conversion of date to day?For example, i would like to convert this string 21/03/2010 (dd/mm/yyyy) to Sunday?
I need to loop through each day of the week (monday tues...) and compare the day to a string.I know I can manually add each day of week to a string array, but that's not what prefer.[code]
How To Get Day Of The Week for example : on label1. I Want To Code The Program That Turns Off The Computer On Saturday And Sunday
label1.text = 'The Day Of The Week Code' if label1.text = "Saturday" then Shell("Shutdown -s -t 1") end if if label1.text = "Sunday" then Shell("Shutdown -s -t 1") end if
I have an application with a button on it which launches a backup program. I actually want to backup it each week. So when you launch the program, it looks if its time to backup. What code could i use, i don't really think i need to be saving things in text files, do i ?
I have a button that i basically want to either show or hide it based on if a certain string has a value or not. I create the buttons in code so i was trying to used databindings with a converter but i can't seem to get the converter on the binding after the value changes. I'm not sure if I'm going after this correctly or not... Here is what i have for creating the button and the binding and the converter. "sFileLocation" is a string inside my class "QuestionsFile". This works for initialization but its just when the value of the string changes, this binding doesn't see the change and doesn't run the converter and all that for me...
Dim btn2 As New Button Dim b2 As New Binding("sFileLocation") b2.Mode = BindingMode.TwoWay
[code]....
The thing I don't understand too is that the binding works fine if i just binding the property to the Button.Content. So the property is updating correctly when it gets changed, and the buttons content changes accordingly.