
moongodess
Avatar/Signature-
Posts
40 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by moongodess
-
Registry: Load, Save and Enumerate
moongodess replied to moongodess's topic in Directory / File IO / Registry
Thanks for all help :) I thank your help would solve my problem, but... my boss found another way to do what I need :o Thank you all... And sorry for the time you spend... I have no doubt that there will be another ocasion to practise this :) -
Registry: Load, Save and Enumerate
moongodess replied to moongodess's topic in Directory / File IO / Registry
As you told me :) I took a look at that class... But all I can get (at least, what I saw) was how to get all the subkeys on current_config, current_user, etc... How do I specify a key to be seached, for example: HKEY_CURRENT_USER\Software\Settings\MyProg\Grid\Columns ??? -
I need to do a class to write and read some specific values in the registry. That is quite simple.... What I really need to know is: - How to check if a key exists - How to check if a value exists - How to get all sub key in a single key Thanks for any help :)
-
I've done "Imports System.Windows.Forms" and now it works... I just don't understand is why did'nt I need that until now... But it's ok :) Works! Is what matter... Thanks a lot :)
-
I've made a module with some functions to show/handle messageboxes and their results. I've been using this module since I started Vb.Net, in all my projects. Now I created a nes dll project and add this module, but every messagebox, messageboxbuttos or items says that they are not declared... Am I missing something?
-
Check out http://www.janusys.com. They are great!! :)
-
I want to make my own outlook program (at my way :cool: ) but I don't know where to start! I don't know, for example, how do I connect to the server and load the emails, how should I save then to the disk.. Any help would be appreciated :)
-
Sometimes it is taking more than 2 seconds to fill a collection with 10 items, for example. I declared everything as object because this is a 'generic colecction' wich i'll use many times, to different variable types. Do U think this can be a cause? How do I use an HashTable? I'm new at Vb.Net and I never heard about it :rolleyes:
-
I have two classes: Friend Class clsItem Public Sub New(ByVal objId As Object, Optional ByVal objNr As Object = Nothing, _ Optional ByVal objCode As Object = Nothing, Optional ByVal objDesc As Object = Nothing) Try Id = objId Nr = objNr Code = objCode Desc = objDesc Catch ex As Exception InfoError(ex) End Try End Sub Private mobjId As Object Public Property Id() As Object Get Return mobjId End Get Set(ByVal Value As Object) mobjId = Value End Set End Property Private mobjNr As Object Public Property Nr() As Object Get Return mobjNr End Get Set(ByVal Value As Object) mobjNr = Value End Set End Property Private mobjCode As Object Public Property Code() As Object Get Return mobjCode End Get Set(ByVal Value As Object) mobjCode = Value End Set End Property Private mobjDesc As Object Public Property Desc() As Object Get Return mobjDesc End Get Set(ByVal Value As Object) mobjDesc = Value End Set End Property End Class Friend Class clsItemCol Inherits CollectionBase Public ReadOnly Property Item(ByVal index As Integer) As clsItem Get Return CType(MyBase.List(index), clsItem) End Get End Property Public Sub Add(ByVal item As clsItem) MyBase.List.Add(item) End Sub Public Sub Remove(ByVal item As clsItem) MyBase.List.Remove(item) End Sub End Class This is supposed to be used as collections, to fill some combos with specific values. Recently I verified that filling the collection is taking too long, and I dont know why. I'm doing something like: Dim colData As clsItemCol colData = New clsItemCol colData.Add(New clsItem(1, 3, "Item3", "Description3") (...) Does anyone have an idea, or some other way of doing this?? Thankx
-
My only problem using SelectedIndexChanged (or stg like that) is that I don't wanna show the detail window if the user is navigating in the grid with the keybord. But... If I can find a way to know if it was a click or a keypress........ It would be great!! Does the 'sender' object gave me that? Sorry, but I'm not to familiarized with the newm objects of vb.net :)
-
Yes.. Let me try to explain what happens... If I have no breakpoints: - If I doubleclick and there are no details to show it shows the main windows as supposed to (and also a message just to indicate that it was a double click) - But, if I double click and there are details to show it shows the detail window, but doesn't show the message box and the main window :( If I have break points: - It always work as if it was a single click It seems to me that showing the detail window is 'disabling' the double click for some reason :(
-
The code is the following:[size=1][font=Verdana]Private Sub gdxSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles gdxSearch.Click If (gdxSearch.HitTest = GridEX.GridArea.Cell) Then msSelectRow() End If End Sub Private Sub gdxSearch_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles gdxSearch.DoubleClick If (gdxSearch.HitTest = GridEX.GridArea.Cell) Then msSelectRow(True) End If End Sub Private Sub msSelectRow(Optional ByRef bolOpen As Boolean = False) On Error GoTo ShowError Dim gdrRow As GridEX.GridEXRow = gdxSearch.GetRow() Dim intId As Integer = CInt(gdrRow.Cells("GuestId").Value) Dim intType As Integer = CInt(gdrRow.Cells("GuestType").Value) Dim bolRefresh As Boolean = False ShowPopup(intId) If (bolOpen = True) Then Id = intId If (Id > 0) Then Select Case Mode Case Open.Sch Dim f As frmUpdate f = New frmUpdate f.Id = Id f.Type = intType f.ShowDialog() bolRefresh = f.Saved f = Nothing Case Open.Sel Me.Close() End Select End If End If If (bolRefresh = True) Then intStartAt = 0 msRefreshGrid(Direc.Front) End If Exit Sub ShowError: InfoError(Err.Number, Err.Description) Exit Sub End Sub Public Sub ShowPopup(ByVal intId As Integer) On Error GoTo ShowError Dim bolShow As Boolean = DbParameterGet(PIPopupShow, PVPopupShow, PTBol, PDPopupShow) Dim bolExists As Boolean = DbPopupExists(intId) Dim strShow As String = GetSetting(SetApp, SetSec(intId), SetKeyDate, DateString) Dim dtmShow As Date = CDate(strShow) Dim bolDate As Boolean = (dtmShow < DbHotelDate()) If ((bolShow = True) And (bolExists = True) And (bolDate = True)) Then Dim f As frmPopup f = New frmPopup f.Id = intId f.ShowDialog() f = Nothing End If Exit Sub ShowError: InfoError(Err.Number, Err.Description) Exit Sub End Sub[/font][/size]
-
Hi! I hope you can help me somehow, because I have a big, big problem... I have a grid with some rows. When I click a row my program must verify if there are some specific (important) details for the selected guest (row). If there are, it must show the 'details window'. When I double click a row it must do the same, but after closing the details window, must open the 'master window' of that guest. When I make just one click, everything works fine, but when I make double click not so good :( If there are no details the master window appears. If there are details the 'details window' appears, but when I close it the other window doesn't appear. Do you have any idea for what I need? Please..
-
That's what i'm trying to do. Inside the dll i'm trying to get that values, but instead of dll information, i'm getting the test project information.
-
I've made a dll, wich will be oppened by our main application. His main form have a 'about' button. What I an trying to do is get the product name, etc, by using Application.ProductName... But i realised that with this i'll get the main project properties. I don't want that :-( How can I get the dll properties, such as productname, filename (xxx.dll), dll version, etc?????
-
Object reference not set to an instance of an object
moongodess replied to moongodess's topic in General
:confused: I have nothing in load event.. I've created a LoadValues procedure to prevent that from happening. That procedure is called only when the form (wich contain the control) displays. -
Object reference not set to an instance of an object
moongodess replied to moongodess's topic in General
I made that user control inside my project.. -
Object reference not set to an instance of an object
moongodess replied to moongodess's topic in General
Yes marble_eater, this is happening when I drag it out from the toolbox :( My project is a 'simple' windows application (in vb.net) with some forms and user controls. What I don't understand is why do I get an error with just one of the user controls. The others are ok. All of them have the same properties, what changes is the controls in them.. -
I have a project with many user controls. What I need to do is insert some of them in a form. For some reason I can't insert one of them :( It gaves me an error (attached) What am I doing wrong?? error.bmp
-
Read/Write grid settings to/from ini file
moongodess replied to moongodess's topic in Directory / File IO / Registry
I searched a lot and I found a way to create a file like the attached.. (This one was made by me :rolleyes: ) Now I need to know how can I read from each section, in order to get a collection with columns information, another with groups information, etc. settings.zip -
Read/Write grid settings to/from ini file
moongodess replied to moongodess's topic in Directory / File IO / Registry
And how can I do that? I never worked with xml files :o -
Hi!! I have a grid in my project that must have some 'properties' saved and loaded.. I created a sample txt file with some things that I have to save about that grid. I was wondering if it is possible to read the file doing something like this: Dim c as column for each c in columns 'Do something next Dim g as group for each g in groups 'Do something next I have the mentalis class to read and write to some file, but with that it's not possible to have quotes and 'subquotes'. Can someone help, please? settings.txt
-
When my program shows some message box, a form, or simply fill a grid, a bip is heard. Is very annoying for the user :-( I already checked sound properties in control panel and my sounds are all off :-( How can I avoid this from happening??
-
How can I do this?? I can't do this, because the database structure is already defined, and already has a table wich contains all messages in all languages. If I could change this, maybe it would be easier, but this is a small part o a huge project, and I must continue with what was already decided. Thanks anyway, for the suggestion. I'll consider in the future. Thanks!!