It seems I cannot use Regsvr32.exe to register it, or perhaps I am just missing something? I have checked the Register for COM interop option in the project's Build. And the assembly is set its ComVisible to true.
Below is a dummy of my
CSharp using System; using System.Collections.Generic; using System.Text;
I've got a fairly simple WCF self-hosted service using the WSHttpBinding that just refuses to work. If service and client runs on the same machine there's no problem, but as soon as I move the service to the window-server 2008 the client fails the communication attempts with
EXCEPTION [System.ServiceModel.Security.SecurityNegotiationException] {"SOAP security negotiation with 'http://hvw-svr-01/SIT' for target 'http://hvw-svr-01/SIT' failed. See inner exception for more details."}
I have 2 buttons in my form, one to hibernate the pc, and one to put it to standby. However, when I click standby, the pc hibernates too.I want to disable and re-enable hibernation, but I need to detect whether it is enabled or not, because I don't want to enable it if the user has disabled it.
When I first tried running the code I received an error message of "Invalid postback/callback argument". I set the ASPX page to have a enableEventValidation="false" property and tried running it again. It generates the page fine but when I click on a dynamically generated button it acts as if it is loading something and then just brings me back to select_hall.aspx (the page all this code is one), when (as you can see above) it should take me to select_room.aspx.
The datagridview has columns for all 4 values as well as a 5th (a checkbox column called "colIsSelected"). There is no problem binding the list to the grid and displaying the items. The problem is that the query that gets the selected items in the grid is giving me an implicit cast error when option strict is enabled.
This is the query...
Dim _changes As List(Of BaseChange) _changes = (From _row As DataGridViewRow In dgvChanges.Rows() _ Where Convert.ToBoolean(_row.Cells(NAME_COLUMN_IS_SELECTED).Value) = True _ Select DirectCast(_row.DataBoundItem, BaseChange)).ToList()
...and it produces the correct results with option strict off. The implicit cast squiggle is on the "row As DataGridViewRow" code, and the full message is "Implicit conversion from 'Object' to 'System.Windows.Forms.DataGridViewRow'*".
If I exclude the "As DataGridViewRow" from the query, I get a late binding error on the _row.Cells and _row.DataBoundItem and this also fails option strict.I need this to work with Option Strict enabled, and in VB.
When using Nero Recode I get a error message shortly into the program saying:
"An unhandled win32 exception occured in Recode.exe [5580]. Just-in-time debugging this exception failed with the following error: No installed debugger has Just-in-time debugging enabled. In Vision Studio, Just-in-time debugging can be enabled from Tools/options/Debugging/Just-in-time"
As far as i can see it is enabled but I still i get this error message.
I have a VB. Net App where I want the user to open a modeless form which contains reference information about items in a select box. If the user double clicks the item selected in the list box a modal form is opened to edit the item.I want the previously opened reference form to remain active/enabled, that is, I want the user to be able to click on it, move it, etc.I was able to get the form to at least show up on the task bar by setting it's "ShowInTaskBar" property to true, however, when it comes to the front the user can still not move it to the side to view all of the Edit Forms information.
As i'm learning more and more about developing ive just got my head around creating classes and modules, i started wondering about something to do with configuration of applications where deployment is in a more diverse environment say in a company where different branches dont need access to all parts of a program, so i thought id throw the question out there in a basic sense and get some feedback. so i can go off and do some more reading and learning.
So the scenario in my head is like this.
So we have for arguments sake FrmConfig which is the master configuration form, then we have FrmMain which is the root menu our application general user interfaces with. So here based on what options are checked as enabled in FrmConfig effects what controls (like buttons/menu options) are enabled in FrmMain.
I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
I am just a newbie with VB.net, though i have experience in c# .net environment.Now I was just wondering how to start a vb.net project in VS.2005? its the version installed here in my assigned PC.
Whenever I try to debug, I get an error message that says "Error while trying to run project: Unable to start debugging. The binding handle is invalid." How do I fix this? It's happening for every project.
I want to start the Windows calendar (c:program fileswindows calendarwincal.exe) minimized from my VB 2005 app. I have tried the windowstyle set to every option (including hidden), and it still comes up full screen. I tried it in VB6 using shell, then appactivate, and then using sendkeys, and it gives an "access denied" error.
I've got a VB2005 application written by a previous coder. I had to move it to a new windows 7 box, since the xp box it was hosted on had catastrophic hard drive failure. It worked fine on the xp box, but it fails on the windows 7 box.
More specifically, I've tracked it back to a specific subsection. It uses the Process library to start pscp, the putty scp command line tool. It has a timer to wait 400 seconds for the process to close, otherwise it stops the process and reports an error.
Unfortunately, on windows 7 it doesn't seem to even start the process, because it does not wait the specified 400 seconds, nor does it report the other error it would give if pscp did start, but failed. Is there a compatibility issue with the process library, or is it some configuration issue?
Update:
Alright, after more testing I've determined that the subprocess is getting spawned, but the parent is not waiting for it to exit.
it seems the VB code myProcess.WaitForExit(40000) is not actually waiting until the process exits. Is this because it can't 'see' the process and believes it has exited?
using the above for numbering in richtextbox, how I can trace if the cursor is in the selection.start which is in the place where numbering is there...
I am a RegEx virgin and have no idea where to start.
1. Where is the best place to start learning RegEx?
2. If i have an array list full of text, how can i search for a string which is in the list? For example, if i enter the search string "bob test" in this text: it will return a true. However, if there is only one match, it will also return a true.
3. thirdly, how can i search and pick out the link which is surrounded with the following tags?
I was working on something when i saw i didn't have a data base explorer window i was trying to add that in and it disappeared.. i though nothing of and and kept on working after i closed vb and reopened it i got this error and now i cant use vb
Is there a "best practices" way to parse a rich-text string (which contains the content of a several page document) so that I can identify the "start of a sentence"?The task at hand is this: basically, after making replacements in the text (substituting "markers" with actual data values), I then need to go back and see if any of the replacement data occurred at the start of a sentence, ensure that the first letter of that replacement is capitalized.
I can certainly find occurrences of sentences within paragraphs (i.e. a period followed by one or more spaces), but it is identifying the sentences at the start of paragraphs that would be the main challenge.In looking at the rich-text string in Notepad, I see that a paragraphs start with "par", but there are many variations, depending on other formatting, etc.
I worked on my project and then compiled it and I am trying to install it and test it on user machines it allows me to install the app but when its time for the app to start up it gives me the "Application cannot start error".There is a line in the details log that says "Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application." , The thing is I first uninstall the program before I attempt to install it again on the machine after testing it and fixing some bugs in the software.I've tried restarting the machine , antivirus scanning what more can I do to fix this?
Attached image(s) Attached File(s) CA0GAFI5.doc (6.88K) Number of downloads: 9
I recently finshed a program and made a finshed copy of it when I tested it on my computer it installed correctly but when I tryed to use it on a nother computer I got a error saying lication download did not succeed.Check your network connection, or contact your administor or network service provider
I want to launch a browser session from a Windows App to load a specified file using system.diagnostics.process.start("http://www.abc.com/doc1.doc") but I'd also like to specify that there shouldn't be a toolbar etc. on the browser window. Is this possible?
When I clear my form, I am trying to clear the Month Calendar of all selected dates. Using this code clears everything but the Selection Start Date, I would assume there would be a way to clear this, Refresh doesn't work, and I can't seem to find anything else.
Public Sub clearScheduleControls() Me.MonthCalendar1.RemoveAllBoldedDates() Me.MonthCalendar1.UpdateBoldedDates()