C# To VB Transition?
Jan 6, 2009I have a C#.net project which I need to convert to a Vb.net project...anyone have an idea how to do it?? is there like a direct conversion method in visual studio?
View 3 RepliesI have a C#.net project which I need to convert to a Vb.net project...anyone have an idea how to do it?? is there like a direct conversion method in visual studio?
View 3 RepliesLook at this video[url]...
How can I create such a popup window that open when i Clcik on a button?
How can I make a transition between forms so that it appears the second form slides in from the right? I know its possible to make a slide effect with a timer, but how do I do it to move a form?
View 18 RepliesWhat are some good exercises that an intermediate/advanced VB.NET web programmer should to do gain syntax chops on C#? I imagine some good examples would be: algorithms or project exercises that run the gamut of C# syntax,reference material,list of the key syntactical differences that VB.NET programmers should be aware of?
View 10 RepliesHow to slide a form up while revealing another form. II basically want form1 to slide up when closed by the user and while the slide transition is taking place I want form2 to Gradually show. How to achieve the slide up transition in Visual Basic 2010?
View 4 RepliesSuppose I have 4 different forms form1-4. If I open form1 from form 2 and close form2 how can I know that form2 opened form1 and not other form. Is there any function that does this or we need to pass the form_name during the transition and which one would be efficient.
View 6 RepliesI'm trying to build an application to increase my understanding of visual basic. I may have set the bar too high for myself but it's the challenge that makes it fun right? Anyway, I'm trying to make a transition effect of a page turning. The application is a brewing database which looks like a book. I think the transition would make it look more professional. Dose anyone have on how I might be able to accomplish this? A basic example even would go a very long way.
View 5 RepliesI added a web reference to my VS 2005 console application [Code] The call to this WS times out with :"The CLR has been unable to transition from COM context 0x1a3008 to COM context 0x1a3178 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages.
This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations."
I used WCFStorm to call this WS and the result comes back in an instance, so I don't think the WS is a problem. I deleted the web reference a few times and added it back again. did the clean and rebuild operations.
I'm implementing a State Machine in WF 4.0. In some transitions, I have added a condition where I check that some variables have the expected values. The variables are enums and booleans, and everything is fine.
However, now I tried to evaluate when a property is null. I have and argument in my workflow, let's say, 'MyArgument'. In a transition, I try to put a condition like 'MyArgument.MyProperty = Nothing'. I never developed in VB.NET, I don't know if I'm missing something here...
VS2010 gives the following error: "Error 4 Compiler error(s) encountered processing expression "MyArg.MyProp = Nothing".
Operator '=' is not defined for types 'XXXX' and 'XXXX'
The type names are exactly the same, and I have debugged VS2010 to ensure that my assembly is not loaded from 2 different locations.
How can I check if the property is null or not?
BTW, I'm using VS2010 SP 1, with .NET Platform Update 1 installed, on W7 64 bits.
How could i re create the slide transition in the windows 8 lock screen. I want my form1 to quickly slide up while revealing form2(Both forms are borderless and in maximized state) (like when the lock screen slides up while revealing the logon screen in windows 8)
View 2 RepliesI am just making the transition from VBA to full on VB net 4 using Visual studio 2010. I think I have the basics down but am struggling with learning the commands for windows/filesystem manipulation. The problem is as follows I am creating my first program - the aim is to accept a root directory, then go through each sub directory in that location and delete the contents of any files whilst retaining the folder (hope that makes sense!)
[Code]...
I'm making a browser type program and I want it to transition to a different link (from a list) when the timer runs out.
View 8 RepliesWhen bulk renaming files (14000 of them) i get this error: The CLR has been unable to transition from COM context 0x4cefd8 to COM context 0x4cf148 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
My code is as follows:
Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim asd As List(Of String) = FileIO.FileSystem.GetFiles("D:Music").ToList
Dim rs As New ADODB.RecordSet("SELECT * FROM Songs", My.Settings.Files_Database__Connection)
[code].....
I got this message because of a long process: ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x3dc190 to COM context 0x3dc300 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time.
To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations. I've poked around on the internet and on a forum, someone suggested to use application.doevents(). I did that and the messaged goes away. In an earlier thread a member wrote that using application.doevents rarely was used appropriately. Is my situation a proper usage of application.doevents or is there something else I should be doing?
The application uses ADO.NET to invoke sprocs for nearly every database operation. Some of these sprocs also contain a fair amount of domain logic. The data access logic for each domain entity resides in the domain class itself. ie, there is no decoupling between domain logic and data access logic. I'm looking to accomplish the following:
[Code]...