Topics
-
-
- Administrators
- 2 replies
- 1.3k views
I have an asp application with c# code behind which will be used to collect user entered data from all over the place. I am going to stamp the data with... string.Format("{0: yyyy-MM-dd H:mm} MST", DateTime.Now); This is going to happen in the code behind at the server. So the question is, will the stamp be the local time at the server, or the local time for the end user? I tried to set up an experiment but it was less the successful. Thanks MTS
Last reply by MTSkull, -
-
- 1 reply
- 2.9k views
I am launching a process that uploads a file to a remote server. Then I will launch a second process that will run a script on the remote server to process the file. All of which works except... I would like to read the console outputs so i can tell if what I am doing is working. When I set up the process to redirect to a standard output stream, if I call any of the Read(), ReadBlock(), etc, commands, the program hangs. If I try to run the reads in an event, the event code never fires. If i call the Peek command I can see the First char that would be expected if I was running the console manually. Is there something I can do to get the read to work? Thanks …
Last reply by MTSkull, -
-
- Leaders
- 3 replies
- 885 views
Hi, i am automating a home brewery, i have come up with the following code, can someone go over it and pick out why its not working? Thanks! Public Class Form1 'Declare variables Private selecteddate As Date Private timeokpressed As Date Private boilstartedtime As Date Dim mashvolume As Integer Dim boillength As Integer Dim mashlength As Integer Dim boilvolume As Integer Dim differencebetweenmashvolumeandthirtyoneminutes As Integer 'digibee+ declare functions Declare Function InitDgb Lib "dgb.dll" () As Boolean Declare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Integer) As Boolean Declare Function ReadInputs Li…
Last reply by EccentricDyslex, -
-
-
- Leaders
- 6 replies
- 8.4k views
anyone know where I can find code on making a connection to and writing/reading to/from an excel spreadsheet? Thanks -Bret
Last reply by sw22, -
-
- 0 replies
- 594 views
I have designed a Composite UserControl that is similar to a ToolStrip but without all the Bells & Whistles and with the buttons behaving in the fashion of "RadioButtons" The Parent Control inherits from a "ContainerControl" and the Button from a UserControl. Everything works fine using the mouse for navigation and Button selection: MouseUp MouseDown MouseEnter MouseLeave MouseMove Etc I am now trying to navigate by means of the Keyboard and have arrived at a complete mental block. I have investigated "ProcessCmdKey" and "SelectNextControl" only to have my code evolving, more and more, into the proverbial spaghetti type. So far all I have managed…
Last reply by Toby Twerl, -
- 0 replies
- 638 views
Hi all, I'm hoping someone can point me in the direction of a good place to start learning about API calls using C#. I want to work towards obtaining handles to external programs and retrieving various bits of information. Ideally I want to be able to watch a window and act everytime a WM_PAINT message is triggered. I'm just finding it a tough topic for a beginner to understand with all the complex looking parameters and all. Any good advice is welcomed. Jib.
Last reply by Jibrohni, -
- 0 replies
- 1.4k views
Hi guys! Am working on an app that has a feature where user will have a broswer to locate certain files. Feature is asking to have a "Preview Pane" much like that used by Vista and W7 Ultimate. My thinking was go the way of the thumbnail. I want to use Shell32 but the namespace (given by intellisense) is System.Design.UnsafeNativeMethods.Shell32 where UnsafeNativeMethods is tagged (with tooltip) that it is inaccessible due to protection. Is there a way to go around this? I also can't find the Shell32 API/DLL that I can reference directly with solution explorer. Also found a few places on the web where they have demo apps but all are too large (in my opin…
Last reply by Eduardo Lorenzo, -
- 9 replies
- 6.7k views
Is it possible to render a webpage as a bitmap in GDI+?
-
-
- Administrators
- 1 reply
- 669 views
Hi, I have no idea why when I compile and run my application in x64 mode or anycpu my application crashes some time. some times it returns : Unhandled Exception Attempted to read or write protected memory. This is often an indication that other memory is corrupt. and some times just says x has stopped working w/o details, any one knows anything about it ? :(
Last reply by PlausiblyDamp, -
-
- 1 reply
- 804 views
Since my trigonometry skills suck (I mean they really suck) I need help into translating coordinates (X,Y) into degrees. Ok, lets assume we have a circle on the screen. The circle has naturally its center located at some x,y pos. Now, what I want is to click anywhere on the screen a return its current degree value based on a 360º navigation system related to the center of the mentioned circle. Therefore, if I click at the right side of the circle's position it should return 90º degrees, if I click directly bellow the center of the circle it should return 180º degrees. At the top of it it should return 360 / 0 degrees. The clicking area can be anywhere, not neces…
Last reply by EFileTahi-A, -
-
- Administrators
- 14 replies
- 16.5k views
I have a windows form application with a datagridview control. The user can edit and add records. Can someone advise me on how I can paste data in the same format on the dataviewgrid. Thanks for your help. Guha :)
Last reply by thesignalman, -
-
-
- Administrators
- 3 replies
- 3.2k views
Hi everyone, I have a strange problem in my VB.NET project when I want to compile it as x64. If I set the target CPU to Any CPU, it will be fine and on x64 systems it will run as x64. But if I set the target CPU to only x64, my project will show up some error/warnings and won't compile at all, here are them: - Error 1 : An attempt was made to load an assembly with an incorrect format Warning 2 : Possible problem detected while building assembly 'x': Referenced assembly 'mscorlib.dll' targets a different processor Warning 3 : Possible problem detected while building assembly 'x': Referenced assembly 'System.Data.dll' targets a different processor Warning 4 …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 853 views
Hi, I use this code in a loop to launch some files and wait for each one to close: Dim MyProcess As System.Diagnostics.Process MyProcess = New System.Diagnostics.Process() MyProcess.StartInfo.FileName = ProcessPath MyProcess.StartInfo.Arguments = "/quiet /norestart" MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal MyProcess.Start() MyProcess.WaitForExit() MyProcess.Close() However, I am not sure if I used MyProcess.StartInfo.Arguments in the correct format. To each file 2 arguments should be sent : /quiet and /norestart I just put both in double quotations is that the right way? Thanks :)
Last reply by usvpn, -
-
-
- Administrators
- Leaders
- 4 replies
- 1.6k views
good night someone can help me with how to read contents of the xml to multiple text boxes. and change the value of the text boxes is possible to write this same update? Best regards and thanks for the help;)
Last reply by RivasBoy, -
-
- 1 reply
- 775 views
I've been using SendInput to send some automated mouseclicks to a window on a computer with XP installed. Now, trying this on a computer with Vista, the mouseclicks get ignored. Nothing happens. It sounds as if this might be something to do with "privileges". Anyone know how to resolve this? Thanks
Last reply by rbulph, -
-
- Leaders
- 9 replies
- 2.2k views
Good day one and all, I have a randomness headache... I have a simulation that is trying to create upto 10,000 random decks of cards, one after the other, as quickly as possible. The problem I seem to have is that each random Deck repeats 4 or 5 times before a new one is created. I think this may be because the random function works off the current tick or seed (I've tried using DateTime.Now.Millisecond as seed). It seems that it's managing 4 or 5 iterations before the tick or seed value actually changes. Is there anyway I can use a seed that will be quick enough to take effect before the next iteration? I'm basically trying to build a poker odds calculator so…
Last reply by Jibrohni, -
-
- 0 replies
- 725 views
I can create an add-in and when I run it in debug mode everything seems OK. Visual Studio opens a new instance of Visual Studio where I can see the command button for the add-in on the Tools menu, and it's all fine. But when I want to use the add-in with another project I can't see the command button even though all three check-boxes in the row for the add-in the the add-ins manager are checked. What do I have to do to actually use my add-in?
Last reply by rbulph, -
-
- Leaders
- 2 replies
- 2.1k views
Hi I'm really stuck on this: I want to loop through the timers on my form, and even better to be able to direct cast them from a name. What I tried: For Each ctrl As Control In Me.Controls If (TypeOf ctrl Is Timer) Then cControl.Enabled = False End If But get this error: "Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.Timer'. " That method works perfectly for looping through buttons, textboxes... but not timers Another problem is trying to DirectCast from a name to a Control. It will (again) not work with Timers. I Tried: Dim ctrl As Timer = Directca…
Last reply by purpl3mod, -
-
- 1 reply
- 2.3k views
Greetings, I am new to the boards. I have looked through 36 pages of posts and was not able to find an answer to the task i need to preform. I have done extensive google searches, but all answers lead back to compatibility issue directly in vb.net and i need setting information for a single file. File.attributes does not contain the information i need. I have a file C:\SomeFile.exe. I right click on it and go to properties, then the compatibility tab. I need to retrieve what the setting is under compatibility mode using programmatic methods including if the value is null using VB.NET. Thank you for any responses
Last reply by Eirwick99, -
- 1 reply
- 1k views
Using The code in vb.net im having a product error when i enter infromatoion. The Error is Invailidoperation............... Token StartElement in state Epilog would result in an invalid XML document. heres the code im working on Imports System.Xml Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim writer As New XmlTextWriter("C:\Documents and Settings\Justin\Desktop\Pictures\XMLFile\product.xml", System.Text.Encoding.UTF8) writer.WriteStartDocument(True) writer.Formatting = Formatting.Indented writer.Indentation = 2 writer.WriteSt…
Last reply by Dracitus,
-
Who's Online 0 Members, 0 Anonymous, 9 Guests (See full list)
- There are no registered users currently online