Topics
-
- 0 replies
- 627 views
I've been looking around for a solution but still haven't come across anything. My scenerio: bob is logged in to computer A with his username and pass. I connect to computer A with a WMI connection using an admin name and pass. When I connect to computer A i have complete administrative priviledges, however, when look in the registry settings a cannot view the current settings for Bob. Is there a way for me to revert back to bobs login credentials once i have logged in with admin credentials??? Hope someone has some input for me.
Last reply by jayy66, -
- 1 reply
- 660 views
Hi all, I'm currently writing a web application that performs several background-processes on a separate thread. This web application is set (in the web.config) to impersonate a windows system account that has full permissions to all of the resources that the application interacts with (Database, network file resources). Currently any standard page requests have no problem using these resources (retrieving data from a database, copy files from one location to another, etc) but if I try and do this on a thread in the back ground I get Permissions Exceptions thrown. I assume therefore that any new threads you create do not run under the same security context as …
Last reply by Superfly1611, -
- 0 replies
- 1k views
Hello, I made a program that fills a crystal report as a bill. But if i make the bill so big that they need more than 1 page, then the crystal report makes a 2nd report. But thats with the Section2 and section5. Section2 is only on the first page needed Section5 is only on the last page needed So how can i configure this? With code or some properties of the crystal report? From code i can put some sections to: height = 0; But how can i see how many pages there are....
Last reply by Jelmer, -
-
- Administrators
- 2 replies
- 2.5k views
Hi All, I wanna make a class to check when my printer is connected or disconnected from the network. This is for prevent user to send a job without the printer beeing online, and with this i wanna show some alarms. This is using a normal socket connection, and i'm pinging the printer when i start the program and when i'm ready to send a job to it. I use the ping class and after the event has been 'PingCompleted' raisen, i wanna make some actions, until here all well, but as the ping request is sent assincronously i having some problems, because i wanna wait for ping status before i go ahead, see my code: /// <summary> /// Pinga a Impressora …
Last reply by teixeira, -
-
-
- Leaders
- 2 replies
- 1.2k views
How could I copy the contents of a propertygrid to the clipboard so that the user can paste them to Excel or wherever? It seems a simple enough thing to want to do, but I can't figure it out at all.
Last reply by rbulph, -
-
-
- Administrators
- 1 reply
- 1.3k views
Hi, I have an ASP .net page that contains a label and a NEXT button. I want to display in the label, array values one at a time as the next button is pushed. This is the foundation that I will build further functionality on. This seems so simple, but I can�t figure out how to do it � I am new to asp .net. I�m trying to increment a counter to go through the array, but the counter keeps getting reset to zero. I hope someone can help me. THANKS! Here is my code: Public Class AssignRecTypePerms Inherits System.Web.UI.Page Dim ctr As Integer Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 681 views
In VS.2005, using VB.NET My editor is behaving strangely. If I press the tab key, the line moves over the appropriate number of spaces. When I click on another line, the line that I had tab'd on moves over more spaces. I have changed the tab and insert, but it doesn't seem to work. The help says: Indent size Sets the size in spaces of an automatic indentation. The default is four spaces. Tab characters, space characters, or both will be inserted to fill the specified size. What does this mean? What is an "Automatic indentation?" Is that a tab? What exactly is the difference between tab and automatic indentation, do they influence one another. …
Last reply by mskeel, -
i would like to transfer the contents of a variable from one form to another but i am unable. iam using vb.net 2003.
Last reply by Cags, -
-
- Leaders
- 3 replies
- 776 views
hello again, I'm trying to load a managed exe into memory and running it. I'm using code that worked great for me on the 2003 version of visual basic, not working now, not sure if it's the c# or the new version. The assembly loads fine, but when i try to invoke i get an array of errors. i tried looking for a newer example but can't find antying anyone know of the proper way to do this?
Last reply by TaleOfTimes, -
-
- 4 replies
- 1.2k views
When I use this syntax to create a new table (and primary key), the command works as it is supposed to: CREATE TABLE "DBO"."promotion" ( "item_id" integer NOT NULL , "start_date" datetime NOT NULL , "end_date" datetime NOT NULL , "buy_quantity" integer NULL , "receive_quantity" integer NULL , "receive_item_id" integer NULL , "promo_id" varchar(17) , "description" text NULL , "customer_key" integer NULL , "parent_item_id" integer NULL , PRIMARY KEY ("item_id"), ) The only problem is that the Primary Key gets named with a seemingly random set of characters at the end of the name, as in: PK__promotion__78173…
Last reply by flynn, -
- 0 replies
- 1.2k views
hi, i have an image in a report that displays correctly in the report designer, however when i view the report in the web browser, the image wont display - it just shows the 'red-x' image (the same one browsers use for a bad image link) any ideas? thanks!
Last reply by sdlangers, -
- 1 reply
- 684 views
A code like this doesnt work in access: SELECt * from factuur where factuur.datum > #11-9-2006# It looks like the datum is converted to a big number.. wich code is good ?
Last reply by Jelmer, -
- 2 replies
- 1k views
I have a program that will use a lot of data from a plethora of sorces. I have come to the conclusion for ease and for the sake of memory I should move the data to a temperary database. The only database that I have write acess to is Access. I was wondering if anybody know how to create an Access database from .net(2005) code, i figure i can do the table editing in sql, but i need a database to start with. Any help would be apreciated. In addition, would the code run for users without Access? Thanks in advance.
Last reply by JJKazJr, -
- 1 reply
- 1.1k views
I have a good handfull of apps that I created spread out all over the place that I would like to monitor incase someone has closed them. Most of my created apps are data splitters or file maintence. So there is nothing malicious going on here. I work with a few people who like to close everything. At first I was thinking about adding a tcp port to all my apps and then having the monitor app connect to them but that would mean I'd have to rebuild the monitor app everytime I added a new application. I could loop through an IP range and look for the apps that way. Or I could have my apps send a udp packet to a IP address that is running the monitor program. Any Thought…
Last reply by mskeel, -
-
- Leaders
- 2 replies
- 4.4k views
Wow, rare that I can not find an answer on this forum through the search function. I have a Hex string like "51DD8" that I need to convert to a double. string sData = "651DD8 Plus More Stuff Here"; int iChannel = convert.tointeger(sData.substring(0,1)); double dData = convert.todouble("0x"+sData.substring(1,5)); //does not work, throws out "string not valid for this procedure" error //51DD8 should = 1.59893 Thanks MT
Last reply by MTSkull, -
-
-
- Leaders
- 3 replies
- 2.2k views
On form load of main Form a file is checked for if the file exists and contains certain data then a 2nd FOrm is opened... WHat I am needing to know is 2 things.... 1. How do I make it so the Form2 is the one that has the focus and not Form1 2. Also, How do I make Form2 open dead center of Form1? vbMarkO
Last reply by mskeel, -
-
- 1 reply
- 1.1k views
I have a combox NOTE; It is a toolStripCombox called tscStubDates I want to select an item then hit enter and it fire the code I have which will display records from an xml file I have. Note, I already have it where I use the click event.... but I want to select an item then be able to scroll through using hte arrow keys then when I get to the date of a specific record fire that event by hitting the enter key How do I do this? vbMarkO
Last reply by Cags, -
- 0 replies
- 898 views
Hi All I am getting ery confused at the minute with event firing from within a User Control. I have a treeview which is populated dynamically from my database which needs to be displayed on every page of my application. The perfect soluton to using this treeview is to add a usr control to each page which needs to display it. This I have managed no problem, however..... What I then need to do is catch the TreeView1_SelectedNodeChanged event and populate a datalist in my main.aspx page dependent on the value from the selected node in the tree. I can not work out how to do this, I have read that I need to raise an event to raise another event but the examples w…
Last reply by bj199347, -
-
- Administrators
- 1 reply
- 4.4k views
Hi All I keep getting the Requested Clipboard Operation did not succeed error when trying to clear the clipboard. I found it to be related to a textbox that has the multiline set to true. Example : I created a new form entered 2 textboxes . The first multiline = false and the second multiline = true. I also create a module. In the module I created the following methods. Public Function fnVerifyFile() As Boolean fnClearClipBoard() End Function Public Function fnClearClipBoard() As Boolean Try Clipboard.Clear() Catch ex As Exception MessageBox.Show(ex.Message) End Try In the textboxes_TextChanged I …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 1.3k views
With all these new .NET things im wondering whats the best way to test if a textbox contains any non-numbers. The best I came up with was: Dim i As Integer = TexBox.Text.Length Dim ctr As Integer For ctr = 1 To i If Asc(TextBox.Text.Chars(ctr - 1)) > 57 Or Asc(sender.Text.Chars(ctr - 1)) < 48 Then 'its not a number End If Next Seems like there must be a way to improve on this ?
Last reply by mukesh, -
-
Who's Online 0 Members, 0 Anonymous, 46 Guests (See full list)
- There are no registered users currently online