Topics
-
-
- Administrators
- 2 replies
- 598 views
What I want to do is add items to a combobox list that when the app is closed will be saved and preserved for the next time the app it open. I am not sure whether using an xmlfile would be the right thing to use or maybe a class of some sort that will act as a simple data store. I want to avoid using an external text file and streamwriter or reader if possible. What would be the most simple approach to do it? Any suggestions would be welcome. Thank you!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 6 replies
- 975 views
Hi! I'm using Visual Studio since its first .net Version and never had any annoying problems. Currently I'm working with VS 2005 Standard Edition. (I've got it quite after its release) Since a few days I have a very disturbing problem. It takes very long (~15 secs) to save a file! I tried the repair features of VS,.. I reinstalled it.. I defragmented my disk. Turned off the anti virus file scanner. Deinstalled the anti virus program.. Now I'm clueless. I can't imagine what's responsible for this. It not just the immense amount of time which is needed to save a file. While this progress VS isn't responding! Do you have any ideas? Thank you, and nic…
Last reply by crazy-weasel, -
-
-
- Administrators
- 1 reply
- 1.9k views
Can I add objects to a listbox so that they display their name but are still linked to te induvidual objects?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 705 views
Im reading about the commandbuilder class, and im not really sure the point. It says it's easy and less details, but i havent seen any good examples of this. Id like to connect to a SQL database (not really sure whether to use sqlconnection or OLE), and use commandbuilder in a fast efficient way to update/insert/select. Please help.
Last reply by et_, -
-
- Administrators
- Leaders
- 2 replies
- 3.2k views
well Ive been programming VB6 for a long time and now I bought Visual Studio 2008 and I want to start programming in VB.NET I have different questions: 1) VB6 needed runtimes files to be able to run on PCs without Visual Basics (if the program had winsock or inet.....), does VB.NET Need runtime files on XP, Vista? Where can i get them? 2) Does VB.NET have winsock? where can I learn how to use it? Or what is its replacement? 3) Is there any tut that helps me convert (my syntax writing) from VB6 to VB.NET 4)How to exit/close my program in VB.NET (application.exit????) or is there any better way (in VB6 Unload Form1)
Last reply by snarfblam, -
-
- 1 reply
- 1k views
Hey, I know this has been asked multiple times, but I've got a page with a Crystal Report on it. The .rpt file was created externally and added to the project. Here's the code that is supposed to fire the report: Dim P1 As New ParameterFields Dim OrdNum As New ParameterField Dim CheckNum As New ParameterField Dim OrdNumVal As New ParameterDiscreteValue Dim CheckNumVal As New ParameterDiscreteValue Dim crTableLogonInfos As New TableLogOnInfos Dim crTableLogonInfo As New TableLogOnInfo Dim crConnectionInfo As New ConnectionInfo Dim CrTables As Tables Dim CrTable As Table Dim TableCoun…
Last reply by Harkon, -
-
- Administrators
- 2 replies
- 2.9k views
I have two columns in my database, one called hours, the other called minutes, both of which are of datatype int. When my users submit a time on a web page, the value is broken up and placed in the appropriate column. I am using a datagrid to display all the times, originally I was displaying the hours and minutes in two different columns. However, I now need to display them in a single column, and I want to seperate the hours and minutes by using the symbol ":". I am using: CONVERT(varchar, Hour, 110) + ':' + CONVERT(varchar, Minute, 110) AS times The code works properly, the only problem that I am having is if the minute value is less than 10, then I n…
Last reply by Harkon, -
-
-
- Administrators
- 3 replies
- 783 views
Hi, I use this to set focus while running my code on a thread: Delegate Sub SetFocusCallback() Private Sub SetFocus() On Error Resume Next If Me.ProcessButtonX.InvokeRequired Then Dim d As New SetFocusCallback(AddressOf SetFocus) Me.Invoke(d) Else Me.ProcessButtonX.Focus() End If End Sub I can do everything I need but I cannot use Me.Close in a thread! How should I change the above code to close the form inside a thread for me and then finish thread?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 4 replies
- 932 views
If i create a small class: Public Class XMLNode1 Private xmlHeader As String Private xmlValue As String Public Sub New() xmlHeader = Nothing xmlValue = Nothing End Sub Public Sub New(ByVal head As String, ByVal val As String) Me.propHead = head Me.propVal = val End Sub Public Property propHead() Get Return xmlHeader End Get Set(ByVal value) xmlHeader = value.ToString End Set End Property Public Property propVal() Get Return xmlValue End Get Set(ByVal value) xmlValue = value.ToString End Set End Property End …
Last reply by PlausiblyDamp, -
-
- 3 replies
- 2k views
Currently when I select and open multiple files in windows explorer at once, it opens them in separate processes. Is it possible to associate windows explorer to launch only one instance of my application with all the selected files in the commandline?
Last reply by OMID SOFT, -
- 0 replies
- 728 views
Public Function CurrentTheme() As String 'Function to get the current Windows XP theme. 'Optional: You can use it to set different colors for each theme. Dim key As RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\ThemeManager") If key IsNot Nothing Then If "1" = (key.GetValue("ThemeActive").ToString) Then Dim s As String s = (key.GetValue("ColorName")).ToString() If s <> Nothing Then If String.Compare(s, "NormalColor", True) = 0 Then CurrentTheme = "XPBlue" : Exit Function If String.Compare(s, "…
Last reply by OMID SOFT, -
- 3 replies
- 1.7k views
I'd like to use Activator.CreateInstance with a non-public constructor for a class of mine. Here's my code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Activator.CreateInstance(GetType(X1), Reflection.BindingFlags.NonPublic, Nothing, New Object() {8}) Dim j As New X1(8) End Sub End Class Public Class X1 Friend Sub New(ByVal p As Long) MsgBox(p) End Sub End Class but in spite of the use of the NonPublivc flag, I get the message that the constructor is not found. Maybe I need to set the binder parameter to something, but I've no idea what. Anyone know ho…
Last reply by rbulph, -
-
- Leaders
- 3 replies
- 3.3k views
Hi, I use "GetRegistryString" in the following code to read string data from registry: Const REG_SZ = 1 'Unicode nul terminated string Const REG_BINARY = 3 'Free form binary Public Const HKEY_CURRENT_USER = &H80000001 Public Const HKEY_LOCAL_MACHINE = &H80000002 Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.…
Last reply by snarfblam, -
-
- 3 replies
- 1.1k views
Hi, trying to create a program to log what programs i have open. i'd like to be able to get a list of all open applications, however most importantly, the active application. this way i can log what applications i use, and what % of the day i use each. does anyone know the code to get this information? thanks
Last reply by Camaro Z28, -
-
- Leaders
- 1 reply
- 7.3k views
Here is what I want to do: I have an MDI form and it has a tool dialog docked to the right side. I want to keep it on top of all other MDI child Forms and if possible remove the portion it takes from the MDI client frame. Can anyone help me by explaining how I should do this? Thanks in advance Napivo got this: So what can you do ? Here's how to set up an MDI application so that MDI childs operate normally, but some child windows always stay on top. (there is a simple trick � ) How do we�ll do it ? 1. The always-on-top child is not an MDI child ! � Don�t set its MdiPatent property 2. We will achieve the child�s behavior for this form by calling t…
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 762 views
I'm running Visual Studio 2005. Does anyone have any views on whether it's worth downloading the service pack available here http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en? I was prompted to look for the service pack because I just reloaded my application only to find that all of the toolbar buttons had disappeared and I now have to reinsert them. I wonder if the 6GB of the service pack will help to avoid this sort of thing in future or if it will simply create more problems. I know this thread relates to a different service pack, but it has got me worried - http://www.xtremedotnettalk.com/showthread.ph…
Last reply by rbulph, -
-
-
- Administrators
- 7 replies
- 3.6k views
http://img261.imageshack.us/img261/8364/35243224yc5.jpg http://img261.imageshack.us/img261/9025/55228780nl8.jpg http://img149.imageshack.us/img149/2123/40218207kg1.jpg Dunno what to put there to use IIS.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 859 views
Hi all Maybe this community could solve a slight disagreement between two developers...We have a web app that has a functiona that allows users to download data. The function is simply using a green arrow button, pointing downwards, the image also has a tooltip which says the word download. Is this simple button sufficient for non-technical users (I don't believe so) or should we have something more obvious for the users like a hyperlink/linkbutton that says "download"/"save"? Mike55.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 3 replies
- 1.4k views
Hi, I want to convert the FIRST WORD of my sentence to upper case. For example: this is a test string. Should become: THIS is a test string. So I wrote this: Input.Substring(0, Input.IndexOf(" ")).ToUpper + Input.Substring(Input.IndexOf(" "), Input.Length - Input.IndexOf(" ")) But it returns Index Out of Range ! :confused: Anything is wrong with me?
Last reply by JumpyNET, -
-
- 2 replies
- 904 views
I have a game that I've generated for an assignment. It isn't a true sudoku game in that it's only 4 regions of 4 squares instead of the nine. I have looked over some of the code that has been posted to solve the standard games and it doesn't appear that there should be anything different with mine, just less complex. The problem is this. Some of the squares are already filled in, and while the game is easy enough to solve manually, I am supposed to put a option in to hint for the correct number in a given square. This means I'm not displaying all the correct numbers for all the empty squares, just the one specified. I thought of passing the handle of that button to…
Last reply by JumpyNET,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online