List Groups Computer Account is a Member of ASP.Net VB
Hi I notice you have an example code of listing groups Ad computer Accounts are a member of in c#, do you have an example in vb ? Cheers Andy ...
Hi I notice you have an example code of listing groups Ad computer Accounts are a member of in c#, do you have an example in vb ? Cheers Andy ...
Can anyone explain this weirdness: Dim result as single = 0 result = CType("8.01", Single) * 100 ' result=801.0 as expected result = CType("8.02", Single) * 100 ' result=802.000061 --- not expected Further to the above result = 8.02 * 100 ' result = 802.0 as expected ...
Hi, I tried to bring a previously done webform made in vb.net to an IronPython asp.net website with no luck. After seeing it didnt work, I tried to write the simplest codebehind vb.net webform to see if there was a problem with vb.net in an IronPython website and I got the following usual error "be sure that the defined class in this ...
The crux of the matter: -new Dell laptop without a Break key. -VB6 and VS2008 IDEs use Ctrl+Break to pause execution for debugging. -I need a way to map another key combination to trigger a Ctrl+Break My setup may make this easier or harder but to be clear I am running Kubuntu 9.10 (latest stable) and WinXP in a VirtualBox VM. Obvio...
How could i convert a Greek string, to Unicode with VB.NET, without knowing the source encoding? ...
Using the code below: Private Sub ShowDropDown() Using f As New DropDownForm f.Visible = True Do While f.Visible Application.DoEvents() // Call to not take up 100% resources Loop End Using End Sub If the ShowDropDown method is called by anything other than a button click, then th...
Which are the equivalent of the following operators from VB.Net to C#? UBound() LBound() IsNothing() Chr() Len() UCase() LCase() Left() Right() RTrim() LTrim() Trim() Mid() Replace() Split() Join() MsgBox() IIF() ...
How can I create a popup menu in vb 2008 for use as a context sensitive menu for when I right-click? ...
I need to make something like : if isdbnull(value) or value = something then 'do something else 'do something else end if of course i get an error using this method , so my question is how do i rewrite it to avoid the "operator not defined for dbnull and something" error ? ...
Using VB.NET (3.5), i have an ArrayList of Employees. I'm trying to build an XML representation (to feed another system) and one of the fields is a simple incrementing ID, starting at 1. The code I currently have is: Dim Emps = <Employees> <%= From ee As Employee In Employees _ Select <Employe...
Why did the anonymous type property "Points" still have the value "0"? Public Class Test Public Sub New(ByVal _ID As Integer) ID = _ID End Sub Public ID As Integer End Class Dim list As New List(Of Test) list.Add(New Test(1)) list.Add(New Test(2)) list.Add(New Test(3)) Dim query = From X In list Select New With {....
Hello, I am programatically creating instance of usercontrol as shown below Dim uc As Control uc = Me.LoadControl("~/Controls/DigitalSign.ascx") Me.Controls.Add(uc) I have two public properties in my usercontorl like clerkName and RespName. How can I set those values in the above code. Intellisense ...
Is there a way to add a Header to the popup menu? I don't find a property for this. ...
Hello, unfortunately I cannot resort to C# in my current project, so I'll have to solve this without the unsafe keyword. I've got a bitmap, and I need to access the pixels and channel values directly. I'd like to go beyond Marshal.ReadByte() and Marshal.WriteByte() (and definitely beyond GetPixel and SetPixel). Is there a way to put a...
Preface: I know this is an unusual/improper way to do this. I can do this with a "real" ShowDialog(), background worker/thread, and so on. I'm not looking for help doing it that way; I am trying to do specifically what I describe here, even if it is ugly. If this is impossible for X reason, please let me know though. I have created...
But I have several printers installed. I think the code is pretty standard... Dim printDocument As New System.Drawing.Printing.PrintDocument Dim pageSetupDialog As New System.Windows.Forms.PageSetupDialog pageSetupDialog.Document = printDocument pageSetupDialog.ShowDialog() Did I miss something? I can even enumerate ...
Need to make the Keyboard's LED (Caps lock / Num lock or Scroll lock LED) blink either using C# or VB.net. (With or without using interop is fine) ...
Hello, I have created a C# user control which I want to use in VB.NET .. the control works fine, but in VB.NET the Intellisense does not show any of the C# user control function descriptions (in summary xml doc tag). If I use the same control in a C# project the Intellisense show each function's description as intended.. is this norma...
I would like to write a little application in VB.NET that will detect a baby's cry. How would I get started with such an application? ...
Hello! I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? How about ReadOnly itself without the shared? Example: System.Type.Delimiter ...