I have a web-app that will reside on a production server where I want to get the user's logged in computer name, circa
DOMAINNAME/USERNAME
Many people have told me that I must use Impersonation/Delegation in order to get this, but no details beyond that have been provided. Originally, my tests used:
Response.Write("HttpContext: ...
Hello there.
I've got a DateTimePicker which I 'dynamically' assign the Paint-Event, unfortunately as long as this Event is assigned neither the text nor the DropDown-Button are rendered (but are working).
I've written a component which takes another control and draws something on it
Public Sub New(Byval parent As Control)
Me._par...
I know that all installed programs and updates can be found at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key in the registry.
But how can I differentiate between installed programs and installed updates?
...
Hi,
Say I have a listbox lb, which I initialize using:
lb.DataSource = wordList \\wordList is a list of strings
lb.DataBind()
The listbox is initialized perfectly, and everything that should appear there does.
However, now I select one of items in the listbox with my mouse (coloring it dark blue, in case anyone wondered what I mean...
I'm having trouble converting a C# Linq statement to VB.NET. I need the following statement converted. I am getting hung up on the i.Sum(v=>v) part.
from p in Products
from u in Users
let i = (from op in OrderProducts
where op.Order.User == u && op.Product == p
select op.ProductQty)
let quant = i.Count() == 0 ? 0 :...
I am trying to mimic the results of some C code that uses the OpenSSL library using the system.security.crytography library in the .net 3.5 world, and I can't seem to get it right. I need some help... part of the issue is my understanding of crytography in general.
Here's what is supposed to happen:
I send a request for authenticatio...
I have a button inside of a gridview's template field. Onclick i want to the button to open up a modal popup while force updating the updatepanel and formview inside the modal popup because the formview's datasource depends on a hidden field in which i am setting after click also.
This is what i have so far.
protected void bttnEdit_Cli...
Using VB.NET 2008
I want to know what is 3 Tier Architecture for windows application?
Can any one give a example of How to make a code for Inserting, Deleting, Updating in a database using 3 tier architecture.
Note am not asking a real code. Just give me a example.
...
I have a class where it's problematic to relay on the properties being serialized in alphabetical order at design time.
In other words, property Z must be serialized before property A.
The problem arises because property property Z clears property A whenever it changes - which happens in InitializeComponent.
I work around this problem b...
Hello,
i have some truetype fonts and a programm takes these fonts so that a user can select a font he like to put some symbols around. The programm save these information (which font name und character code) in a file. (I dont have the source of this programm)
Now i have to reed these file into another programm (vb.net) and get the ch...
I am trying to load a icon from a path and set it as program icon any idea how to do that .
I googled it saw a lot of anseres but nothig worked .
Thanks
...
Dim selection As IHTMLTxtRange = Doc.selection.createRange()
selection.pasteHTML("<span class=""header"">" + selection.text + "</span>")
I am using the above code to wrap the selection in span tags but the pastHTML method is removing the quotes around my class name. Is there another way to do this or am I doing something wrong...
I'm in the process of trying to hook StructureMap in to an existing webforms application.
Since it's webforms I have to use Setter Injection, which is not ideal, but it's better than nothing.
Where I'm coming unstuck is translating to VB (I'm really a C# dev currently working in a VB shop). I've written a custom scanner, which works fin...
I have a WinForms app in a single project written in VB.Net 2003 (legacy code). There is a MainForm and a SecondaryForm that is run by the MainForm. When I run the app thru the MainForm, I can debug with no problem. However, if I just run the SecondaryForm, I get the debug error, "There is no source code available for the current loca...
Good Morning,
I'm using Reporting Services 2005 to produce a one-time report that will group records according to the PLANCODE field. I've created the following VB function:
Function PayorGroup (ByVal ipc as String) as String
set ipc = PLANCODE
Select Case ipc
Case 'M01' to 'M99'
PayorGroup = "Medicare"
Case 'A01' to 'A99'
PayorGroup ...
I am getting this error when trying to connect to sybase database using oledb connectivity from visual studio.net 2005
The 'Sybase ASE OLE DB Provider' provider is not registered on the local machine.
...
I have a datagridview and few testbox. User types in the details into the text box and when pressed enter it adds to the datagridview. Now the question is user will be allowed to save the rows into a text file but it in not saving in a proper format ie i am getting as:
Quantity Name Rate
--------------------
12 wers 30
2323 ertd 40
...
I have a list box that loads data from MS ACCESS but i want to filer the words..
The O/P of listbox
bmw
yamaha
suzuki
audi
bmw
suzuki
This is how it dipsplays but actually i want like this
bmw
yamaha
suzuki
audi
How can we do this in vb.net
...
usually the desktop folder is something like:
C:\Users\username\Desktop\
is it possible to detect where the desktop folder is using vb.net?
...
I'm going to rely on the saying that no question is a dumb question, but I have a slightly dumb one to ask.
EDIT:
Seems that this question has been asked and answered a few times on here already, though using titles I didn't come across when searching for duplicates. Here are some related posts:
http://stackoverflow.com/questions/15...