|
No problem, I think I covered both cases in one anyway, while assuming you already had VB.NET, given your choice of forum.
|
|
|
|
|
|
A few months ago I finally made the same switch, and I don't regret it. The few things that took a bit of time to get used to:
- A few type conversions that are handled automatically by VB need to be explicit in C#. It does however force you into better programming.
- If you are working with forms: Forms are instances of the Form object (well, as they should be in OOP). The default form you get in VB however is static.
- If you're working with Visual Studio: use the latest one (2010); in older versions the intellisense felt a bit slower in C# compared to VB (might be just a 'feeling').
Good luck.
|
|
|
|
|
So I am trying to learn , and decide to look at BYTE .
What it is is clear , but why I might use it in code is not clear.
Maybey I could trouble someone to write a tutorial example that may highlight the value
of knowing what a byte is. hope this question is appropriate.
I probably clean up nice.
|
|
|
|
|
See here[^] for some basic information. You would use it when it is appropriate in your code, but only the context of the program can help you decide when that is.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
a byte is a small integer number, much smaller than an int . For a single variable, it probably isn't important to save a few bytes of memory. It can be most important when you either need millions of variables (e.g. in an array), or when you have a data structure (a C# struct) that must match either a file structure or a native data structure (e.g. when calling a Win32 function).
|
|
|
|
|
Thanks I like your expanation and appreciate your time.
I probably clean up nice.
|
|
|
|
|
A nice example of working with bytes is imageprocessing. Each pixel of a bitmap is represented by a byte for red, one for green, one for blue (optional one for transparancy), as each of these can take a value between 0 and 255. A 640*480 24bit (RGB) bitmap then takes less than one kb of memory.
If you would use 32bit integers to represent all these values that can not be greater than 255, you would end up with with four times the memory usage (whereof 75% empty).
|
|
|
|
|
This answer is great and now I'm glad I asked.
I tried to give a 5 vote to Youre answer. not sure if thats what happend.
I probably clean up nice.
|
|
|
|
|
To add another point of view:
Bytes are very helpful if you want to do bitwise operations.
Think of the first 5 positions of your nickname, that is a bit structure, now combine it with another bit structur (byte) and you'll get a third bit structure.
This is extremely helpful if you are working with digital I/O hardware. There the state of lets say 8 intputs are displayed in a BYTE. 16 I/O use a WORD; 32 I/O use a DWORD
Ours is to ask why
|
|
|
|
|
The concept is simple. We have a child doing star jumps for 30 seconds. This footage is reordered on a camcorder and then played back automatically after the 30 seconds have finished. We already have access to a camcorder, laptop and projector and now I just need a simple (hopefully with NO teacher interaction at all) concept that will make this work.
What I am looking for is some solution like this.
http://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=21048&av=31144[^]
but I need to have it in VB.NET because I don't understand C++.
And I need have delay future.
another example:
When student has difficulty understanding new motion patterns, instant feedback is the perfect tool.
By closing the capture-review-retry cycle, students can feel the new positions and get the vital instant feedback to confirm the position.
With "Action Replay" video delay, the student can perform the motion then look to the screen for instant feedback.
All instant feedback features work with overlaid graphics and can appear on screen with other video, even multiple cameras.
|
|
|
|
|
Member 8284226 wrote: but I need to have it in VB.NET because I don't understand C++ Hope this will help you. .NET Code Conversion[^]
|
|
|
|
|
Dear All,
This spring, I'm having my final year project (capstone) in computer science and I'm actually targetting the best capstone award
My idea consist of developing a platform-indepedent mobile website that uses QR codes to shop. You can see an example over here: http://www.youtube.com/watch?v=h7HnR02kJxY[^]
I live in Morocco which is not a really developing country but a really promising one! I'm trying to figure out how can I market well my product so the capstone committee would appreciate it. For example, if I do an eGrocery site that wouldn't be a good idea because elders in my country are not really tech-oriented :p.
Any idea how to develop the idea of linking eBusiness with QR codes?
|
|
|
|
|
hi i am trying to create an report viewer / editor
with vs.net 2005 or 2010 c#
i have witness the power of report builder and editor in many software and am trying to make one now
i recalled that there is a class which already have report viewing controls available, does anyone know what it is?
also i would appreciate any tips to teach me how i can do the report editor part like what kind of controls should i use.(i am thinking of using panels at the moment)
|
|
|
|
|
|
I am writing a touchscreen application in WPF the tablets we are targeting are multitouch. My question is are there built in gestures in .NET or another Microsoft sdk. For instance what I would like to do is capture a long press event and a swipe for and possibly something like an X or Check.
Humble Programmer
|
|
|
|
|
|
Hello,
in my app I heave three roles: "admin", "user" and "company". The user can heave only one role. I want that after checking the database redirect them to certain pages - more precisely their content panel. How to specify the page to redirect for each user when it is not contained in:
FormsAuthentication.RedirectFromLoginPage(userName,createPersistantCookie);
or
FormsAuthenticationUtil.RedirectFromLoginPage(userName, commaSeperatedRoles, createPersistantCookie);
I know it is specified in web.config as default and it works for your site, but, the problem is that when I type in the URL to directly access the "admin"'s content panel (admin\default.aspx) and then try to login as "user" it does not directs me to the "user"'s content panel (user\default.aspx) but it remembers the "admin"'s one (admin\default.aspx) and redirects me to login.aspx which is NOT correct. The user exists and it should redirecting me to the default user's page.
What you suggest about this?
|
|
|
|
|
My first suggestion is that you ask this in the ASP.NET[^] forum. That's where you will find the experts on this type of thing.
|
|
|
|
|
|
VB.NET code for what?
No comment
|
|
|
|
|
|
Here you go. Bask in the glory:
Imports System.Threading
Public Class CrazyBatShift
Public Sub HelloWorld()
Console.WriteLine("Hello World")
End Sub
End Class
|
|
|
|
|
Pete O'Hanlon wrote: Console.WriteLine("Hello World codes")
FTFY.
|
|
|
|
|
Your VB.NET knowledge surpasses mine. I award you a 5.
|
|
|
|