Topics
-
- 0 replies
- 938 views
Has anybody ever written any asp.net code that will connect to, retrieve, and store documents on a sharepoint portal server?
Last reply by patrick24601, -
- 0 replies
- 1.2k views
Please find code below which is run by an Excel macro. I am trying to make this call a Webservice I wrote in another C# solution. When the code trys to run this method, it gives the error "Execution permission cannot be acquired". Even the MsgBox At the Top does not appear. However, if I comment the line token = new usernameToken(..., The MsgBox Came to the End will appear. Does anyone know what is the problem. Thanks Guha PS. This application Imports Office = Microsoft.Office.Core (Microsoft Office 11.0 Object Library) Imports Excel = Microsoft.Office.Interop.Excel (Microsoft Excel 11.0 Object Library) <<<<<<<<<<<<<<…
Last reply by gprabaka, -
- 7 replies
- 2.8k views
I'm trying to figure out the .NET equivalent of VB6's DateDiff function, but so far the best I could find is the TimeSpan object. However, it appears quite limited since it only goes up to "days", which isn't enough for my purposes. I need to be able to find the difference in months or years between two dates, like DateDiff was capable of doing. What's the .NET equivalent do this? For instance, the old VB6 lines below would give me "63" and "5"... MsgBox DateDiff("m", "April 1973", "July 1978") MsgBox DateDiff("yyyy", "April 1973", "January 1978") How can I do this in .NET?
Last reply by JDYoder, -
-
- Leaders
- 12 replies
- 3.2k views
I'm attempting to make a program that will copy files reclusively in VB.NET. basically I have a function that calculates the total size of every file in the directory and sub directories then goes through all of them and calls the CopyFile function. this works alright in that my progress bar actually updates while the file is being copied instead of using filenames like I had been. It just seams to be going a lot slower. Five seconds for a 156k file as opposed to bellow three. Is there a better way? Clint Private Function CopyFile(ByVal OldFile As String, ByVal NewFile As String) Me.FileProgressbar.Value = 0 Dim FS As New FileStream(…
Last reply by MadMaxx, -
-
- 1 reply
- 1.2k views
Hello, anybody know the code using vb.net that if you change parameters on registry, it will take effect without restarting the computer. i am trying to change my IP address, DNS address on the registry but when i look back to the network properties changes did not take effect unless i restart the PC. im using Windows XP.
Last reply by Wraith, -
- 3 replies
- 2.5k views
I am trying to figure out how to remove a line of text from a txt file from within VB.NET. This is what my current code looks like, I put a line that says ***** where I know the delete command should go. I can not figure out how to do this. The item that I want to delete is contained with in JobFile dim FILE_NAME as string = (String.format(H:\Operations\{0}\{1}\Master.txt", DayOfWeek, ShiftAssigned)) dim objwriter as new system.io.streamwriter(FILE_NAME, true) dim jobfile as string = CStr(Me.ComboBox3.SelectedItem) ***** The delete command should go here!!!***** Beep() MsgBox("Master List Updated.") Thank you!!!
Last reply by jmcilhinney, -
- 4 replies
- 2.6k views
Is there a way to invoke events in a child control similar to the way a container control does? I know there is InvokePaint(...), etc., but is there any way to do this other events, such as the Mouse and Key events?
Last reply by Joe Mamma, -
-
- Moderators
- 5 replies
- 1.3k views
Is it possible to return the results of a stored procedure as an ASp.net dataset? Can I get some hints? I have been looking but cannot seem to find any examples.
Last reply by Robby, -
-
- 4 replies
- 883 views
OK, this app i'm working with has "search" pages. For example, a page has 10 textboxes on it and users can fillout only one box. It calls a stored proc and the stored proc takes into account the text boxes that were left blank So, it puts defaults values in there. For example, it defaults the date range from 1900 to 2999! Has anyone else done "search" pages? What's the best way to do build a search criteria and pass it to the database?
Last reply by Joe Mamma, -
- 1 reply
- 833 views
dears i have a problem here i have a windows app which synchronize with a web site and get news from the site and save it on the client's pc as xml and also save the user setting as xml the problem here that the xml is readable i don't want the client to be able to read those file so i decided to serialize the file as binary files here's my serialization function public bool Serialize(string fileName,object Object) { try { FileStream fs = new FileStream(fileName, FileMode.Create); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, Object); return true; } catch { return false; } …
Last reply by Diesel, -
- 2 replies
- 3.1k views
Hi, I have a question on multithreading, is there a way for the main thread to know how many, if any, worker thread(s) is still running in the background. Carl
Last reply by Diesel, -
- 2 replies
- 10.3k views
Ok, we all know that when a textbox is disabled its backcolor will also change. The problem is when you change the textbox backcolor during runtime. If you disable the a textbox after its backcolor was changed, it will no longer change to its disabled color but keep the one you assign. What I need to know is how can I tell the textbox to keep changing to its disabled color even after I forced it to go yellow? If this was not explicit enough let me know about it...
Last reply by EFileTahi-A, -
- 0 replies
- 1k views
Because the Cache() us an application wide option does that mean that if, for a given user if I stored something in Cache("username") that it will be overlaid everytime anybody else stores something in that same cache item? And if so is there a way to differentiate between items I want cached for a particular session vs. items I want globally cached? P
Last reply by patrick24601, -
-
- Administrators
- 1 reply
- 2.3k views
Please help !! This memory leak is getting crazy. My applications supposed to create 150 threads and after 30 minutes, I need to kill them and start over witn 150 new threads. Overtime the application keeps consuming the existing memory and it crashes. This is the class that generates the memory leak. visual basic code:-------------------------------------------------------------------------------- Imports System.Threading.Thread Imports System.Threading.ThreadState Public Class clsTest Private MyThread As System.Threading.Thread Public id As Long Public Sub New() MyThread = New System.Threading.Thread(AddressOf execute) …
Last reply by PlausiblyDamp, -
-
- 1 reply
- 2.6k views
Hello, I've been trying to work out how to apply conditional formatting on a datagrid and would very much like your input as i'm stumped. I have a DataTable which stores my data and is the datasource for my datagrid, i'd like to know how to format each row in the datagrid depending on a value in the datatable. Many Thanks
Last reply by AlexCode, -
- 2 replies
- 767 views
I'm sure this is simple to do but I'm stumped. I created an image gallery using a datalist. For each image, there are 2 radiobuttons (Approve, Disapprove). The radiobutton that needs to be checked is determined by the value of a field in a database. For example, if the DB field = "Y", the Approve radiobutton should be checked. If the DB field = "N", the Disapprove radiobutton should be checked. How do I get the correct radiobutton selected? Thanks
Last reply by rangerstud620, -
- 0 replies
- 840 views
What does this error mean, i have included the error messagebox with stack trace. Here is the code line it is occuring on: this.iconos_chicos.ImageSize = new System.Drawing.Size(16, 16); this.iconos_chicos.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("iconos_chicos.ImageStream"))); // <<<<<<<< this.iconos_chicos.TransparentColor = System.Drawing.Color.Transparent; Thanks in advance for any help, i got no idea what is causing this.
Last reply by jonorossi, -
Go to root
by PROKA-
- Administrators
- 5 replies
- 919 views
with "../" you go up a level what If I want to go directly to the root. I don't know in which folder I am, and I want to go directly to the root
Last reply by PROKA, -
-
-
- Administrators
- Leaders
- 16 replies
- 2.3k views
Will Microsoft "release" the .NET Framework v2.0 for 2002/2003 ? I mean, they didn't even allow .NET Framework v1.1 for 2002..... Good marketing strategy I guess. :mad: Sucks if they don't give support for 2002/2003.
Last reply by EFileTahi-A, -
-
- 3 replies
- 810 views
You know normally when you put a datagrid on a form and populate it.. setting readonly to be false, when data is displayed you get the little left hand thinging that then you can put a double click event on. How do you get that thingie to show up if it's not showing up. I've set the property for readonly to false. does that make sense... hope so thanks shannon
Last reply by jvcoach23,
-
Who's Online 0 Members, 0 Anonymous, 15 Guests (See full list)
- There are no registered users currently online