Search:
Type: Posts; User: bmahler
Search:
Search took 0.22 seconds.
-
I posted this in the codebank a while ago. It should do what you are looking for. Also has the ability to decode the keys generated to your passkey
http://www.vbforums.com/showthread.php?t=466358
-
np, be sure to mark this resolved. :)
-
You are not breaking out of the for loop when it is set to true, so it is setting it based on the last item in the ListView. You also don't need a loop as you can just use the ListView SelectedItems...
-
This is not going to work on a website. This will print using Acrobat on the system where the code is executed. It is designed for a Windows application not a website.
-
I'm just curious, how have you made your own setup file? Did you write an app in .net to install your other app? Because if this is the case and the user does not have the .net framework installed...
-
Actually nevermind, I figured it out.
I had to set the ServiceBehavior InstanceContextMode to Single in the service and then Pass and object reference to the ServiceHost Constructor.
-
So I have a WCF Service that has service methods. One of the methods needs to be called from the application that is hosting the service. I am using a ServiceHost to host it.
Dim url As Uri = New...
-
Thanks, sorry for my delayed response, I finally figured that out. It is a pain, but I got it working.
-
Anyone else seen this behavior. I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone...
-
Ya you guys were right. I got it working tonight, wasn't the framework that was the issue. I was just thrown off by the cryptic clr error. I found the null reference. I had a...
-
Yes 3.5 is installed on the server. I can run the same code in an exe but when I add it to my service and install it, it crashes out with the .net 2.0 clr error that I posted above. I am in the...
-
Ok, so I have built a Dll and a Windows Service in vs2010. Both are targeting the .net 3.5 framework, but when I install it on the server it installs fine, but for some reason it targets the 2.0...
-
http://pinvoke.net/default.aspx/user32.SendMessage
There is a TON of information on the web about using SendMessage. A simple Google search will new you plenty of results.
-
Don't use the mshtml document. Use a system.windows.forms.htmldocument. You can still get all of those properties you are looking for
Dim doc As HtmlDocument = Me.WebBrowser1.Document
For Each...
-
You can use a collection for this. Perhaps a hashtable
Dim ht As New Hashtable
ht.Add("Ford", True)
ht.Add("Toyota", False)
ht.Add("Volvo", 100.0)
ht.Add("Peugeot", "This is a string")...
-
There is no foolproof way to stop hackers. Anyone can crack just about anything, so what we do is try to make it harder for them. Why not have your application connect to a web service and return...
-
You can get it with Reflection
Imports System.Reflection
Namespace Reflection
Public Class Peeker
Public Function GetTargetFramework(ByVal Path As String) As String
Dim...
-
Processs.Start("Processname")?
-
Well first of all how are they organized int he txt file? is it a different file on each line? if so it's very simple
Dim Files As String = WebClient.DownloadString("URL/file.txt")...
-
You could use the keydown and keyup events coupled with a stopwatch and see how long they have been pressed. For example on KeyDown start the stopwatch, on keyup stop it, check amount of time and...
-
I ran into this until I just started using an installer for all updates. It is easy for the application to download an update installer, then start it and exit allowing the installer to overwrite...
-
Is this inside of another class? If so, you can use an ISynchronizeInvoke object to invoke the ui thread and use an event to update the text. Here is an example.
Imports System.ComponentModel...
-
On a side note, the WebClient class has a DownloadFileAsync method that will run the download without locking the UI thread. There is also a DownloadProgressChanged Event as well as other events.
...
-
Is the DataGrid databound? If so that field value may be DBNull. I would try something like this
For i As Int16 = Me.LvwMain.Rows.Count - 1 To 0 Step -1
If...
-
You need to make sure that x is not equal to the number of rows in the grid
for example
Dim x As Integer = dg.CurrentRow.Index
If x < dg.Rows.Count - 1 Then
dg.CurrentCell = dg.Rows(x +...
-
Backwoods is absolutely correct. If you want your users to be able to connect and access data in the same environment, you will need a dedicated SQL server PC for them to connect to at any time. ...
-
What you are doing there is setting the textbox text to your forms left and right
You should be using the Location variable that is retrieved in the button click.
Here is a little example...
-
If you are using a database on your computer, it will have to be on and accessible for anyone to access it. Do you need to have one centralized database or can each user have their own database?
-
I assume you are trying to get the value of nome, is this correct?
If so you can replace the 0 with the name of the field like this
Private Sub DataGridView1_CellMouseClick(ByVal sender As...
-
IT should update it every time it checks. That code is very simple and assumes that you only have one instance of Notepad open. If you have multiple instances you would have to move the first one...
-
If you are trying to connect to your PC from another one you have to have a couple things set up. First of all you need to allow SQL server connections through your firewall and it looks like you...
-
Can you post your code? That method I posted is working for me. Are you sure that you have the Value at the end?
-
That looks like vb6 code. I just ran some tests using IO.Directory.Exists and it finds directories with - or _
Simple function that I used
Private Function CheckPath(ByVal Path As String) As...
-
You can use the CellMouseClick event and get the rowindex
something like this
Private Sub DataGridView1_CellMouseClick(ByVal sender As System.Object, ByVal e As...
-
How are you Checking if it exists? IO.Directory.Exists?
-
You can just use a for loop to loop through all the rows and set that value to True.
Something like this
For Each drv As DataRowView In Me.DataGridView1.Rows
drv.Item("Cut") = True
Next
-
Just a note on your method. You don't need that FindWindowByClass API because .net lets you retrieve the handle of a window very easily through the Process class.
-
Could be a firewall issue on your pc. Do you have the SQL Server port allowed through the database pc?
-
You can use Windows API to get the position of an external window. A great resource for looking up these api's is http://pinvoke.net
That being said, here is an example of how to get and external...
-
If you set your app to compile as x86 it will work on both 32 and 64 bit versions of windows. I have found that if you compile in a 32 bit os as Any Cpu, it will not work on 64 bit versions of...
|
Click Here to Expand Forum to Full Width
|