|
Try to go to control panel and find Regional and Language Option (in windows xp) icon. Double click on it, on the first tab click on the Customize... button and click on the Date tab. From this tab you can set the order of your date as you want. Try to do it and let me know if it is working or not.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
The language-settings for the dates (and currencies) are all in the right format. In Access the dates are in the right format.
It is just my Visual Studio program, that switches days and months.
What I noticed however, is that in Access, when I use a query like SELECT * FROM tblLeden WHERE StartDate = #10-06-2000#, I have to use the US-format to find all records that are from the 6th of oktober. When I use SELECT * FROM tblLeden WHERE StartDate = #06-10-2000# , I find the records that are from the 10th of june. Still, when I look in the table, I see that the StartDate is correct (06-10-2000, which means the 6th of oktober, which is correct).
|
|
|
|
|
Hi all !
I have an app that read the content of a folder, when we specify one...
the thing is this :
I add a contextual menu in the «Windows contextual menu for folder» (when a folder is right-click...) that say "open with (my app...)"...
So when i right-click a folder, and select that menu, my prog. open, with the folder as "content to read"...
My question is this :
With windows 2K, sp4, everythings is fine, and working well...
BUT
With windows XP sp2 (maybe sp1 too, didn't test it...), i have an error message when i try the same operation... It says : access refused (sorry, the real error msg is in french, so it may not be that exact spelling in english...), with the name of the folder i was trying to open...
I'm admin on that computer, so it is not access rights, or something else...
Maybe XP sp2 is too much secured ???
If you need more details, ask for it...
I may not have been as much clear as i would like to...
Thanks for your time !
Ding !
|
|
|
|
|
I think it relate to the security in windows xp sp2. Try to read the information from here[^] for more information about configure windows xp sp2.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Yeah, that's what i think first, but i'll need to install my app on a lot of computer, and i'll be oblige to configure all of them ?
I'd like to use an installer...
And maybe i'm wrong, but by giving full trust to my app by the framework configuration didn't solve my problem, so is it really security related ?
I'll read all about SP2, but i'm suspecting it will be a lot of wasted time...
Thank for your reply, The man from SCN-CO !!
|
|
|
|
|
It is not a security related problem...
See, windows 2k can use som relative link (ex. %programfiles%\(folder)...)
In HKEY_CLASSES_ROOT\Folder\shell\
But XP just ignore it, so i have to use an absolute path
(c:\program files\...)
Pretty stupid, eh...
|
|
|
|
|
It is not a security related problem...
See, windows 2k can use som relative link (ex. %programfiles%\(folder)...)
In HKEY_CLASSES_ROOT\Folder\shell\
But XP just ignore it, so i have to use an absolute path
(c:\program files\...)
Pretty stupid, eh...
|
|
|
|
|
I'm writing an ASP.net web page to create new users, and its all going very well. I can create users, set almost all of the AD fields and configure a password. The one thing that is bugging me is the profile path field (profilePath in AD). Everytime it attempts to commitchanges, it bombs out. I've tried changing the format I send it in from \\servername\sharename\username to \\\\servername\\sharename\\username (this is how the output of csvde displays this AD field). Its not a permissions thing as I've set the path where the share and NTFS permissions are set to full control for everyone. I'm now configuring 20 or so AD fields, but this one is going to drive me mad!!!!
This is the section of code:-
Dim ADLocation As New DirectoryEntry("LDAP://DCNAME/" & LDAP_PATH, "domain\accountname", "password")
Dim NewUserAccount As DirectoryEntry = ADLocation.Children.Add("CN=" & txtSamAccountName.Text, "user")
.
.
NewUserAccount.Properties("profilepath").Add("\\servername\sharename\username")
NewUserAccount.CommitChanges()
Any help much appreciated.
|
|
|
|
|
Dear guys.
I wanna make VB application package with my product key. so that nobody can use my application without product key. please give me the solution.
Thanks
Murtuza
|
|
|
|
|
Try to read the information from here[^].
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I was wondering if anyone has had experience in displaying DXF or DWG files (file type produced by AutoCad - a design application) within vb.net. An example of code would be great
Cheers
Simon
|
|
|
|
|
Hello Simon,
Ok I have done something similar for my company. You can go 2 ways.
First way: Using the OCX control called DWGTHUMBNAIL.OCX. This one can only see DWG and in a small preview window. It should be part of your AutoCAD. If not you can look on the internet. I don't remember from the top of my head for the address though. Any ways. The code for first way:
'===========================================
Private Sub File1_Click()
On Error Resume Next
File1.SetFocus
DwgThumbnail1.Visible = True
If Right(File1.Path, 1) = "\" Then
fullpath = File1.Path & File1.List(File1.ListIndex)
Else
fullpath = File1.Path & "\" & File1.List(File1.ListIndex)
End If
DwgThumbnail1.DwgFileName = fullpath
End Sub
DwgThumbnail1.DwgFileName = fullpath
'===========================================
DwgThumbnail1 = The name of the control DWGTUMBNAIL.OCX in your form
File1 = The FileListBox control
fullpath = the path of your dwg drawing.
Second way:
Using a OCX control from Invisio. I am not sure if this control is freeware or not. Please check before use.
Code for this:
//==============================================
Private Sub File1_Click()
On Error GoTo Err_han
If Right(File1.Path, 1) = "\" Then
fullpath = File1.Path & File1.List(File1.ListIndex)
Else
fullpath = File1.Path & "\" & File1.List(File1.ListIndex)
End If
DwgThumbnail2.FileName = fullpath
Exit Sub
Err_han:
MsgBox "File is in use. Please try later.", vbInformation, "File in use"
//========================================
DwgThumbnail2 = the name of the INVISIO.OCX control in your form.
File1 = The FileListBox control
fullpath = the path of your dwg drawing.
Please not that the above code work OK in VB6. I haven't tryed it in VB.NET but i don't think it would be any problems. Hope this helps.
Still trying to find the way
|
|
|
|
|
Hai Frens
I need to allow user to select multiple rows in MSFlexGrid, used in my application when the Ctrl key is pressed.
Can any one help me to do that. ..
Thanx
|
|
|
|
|
Try to check the information from here.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Here they have mention how to select number of cells.
They havent mention how to Make multiple selection
Thanx
|
|
|
|
|
How to create multiple linklabel in RichTextBox at specific positions?
Like in a rich text box i have text and also at the end of some lines i want to add linklabels. Any solution or can u suggest any other control for doing this.
thanks
Sumit Domyan
|
|
|
|
|
Hello,
I need some help in image control. When I press the next button on the form the image should be change with next record and similarly with previous and last buttons.
|
|
|
|
|
what kind of a question is that?
|
|
|
|
|
You should change the Picture property of the image manually.
Image1.Image = Image.FromFile ("Image.gif")
|
|
|
|
|
|
I suppose that you use VB6 as the interface and ms access as the database. In you access file create the table that you want to store an image path. In that table suppost that you have many field with difference information in clude the field of the photo too. In the field of your photo, don't use OLE object as the data type. Use Text as the database instead of OLE Object . Then on your form when you want to select the picture you will use common dialog to open the picture that you want and return the string of the picture path. Use LoadPicture function in vb6 to load the picture base on the path to that picture. So when you add the record you will add the string of path to the image in your record.
Working with this way is save your database a lot of space instead of using an OLE Object . When you move back or next you just load the picture by using the path that store in the database. I used to do this before and its working very well
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi All,
I have a VB6 project which uses OleCreatePictreIndirect to create a bitmap.
When this is converted to VB.NET (a change forced on me but IT services) it no longer seem to work. The code compiles but throws a;
SystemNullReferenceException: Object not set to instance of an object.
Code used is below and was originally sourced from the standard microsoft example.
Public Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (ByRef PicDesc As PicBmp, _
ByRef RefIID As GUID, ByVal fPictureOwnsHandle As Long, ByRef IPic As IPicture) As Integer
Private Function CreateBitmapPicture(ByVal hBitmap As Integer, Optional ByVal hPalette As Integer = 0) As System.Drawing.Image
Dim r As Integer
Dim Pic As PicBmp
Dim IPic As IPicture
Dim IID_IDispatch As GUID
Dim PicTypeBitmap = 1
' Fill in with IDispatch Interface ID
ReDim IID_IDispatch.Data3(0)
ReDim IID_IDispatch.Data4(7)
With IID_IDispatch
.Data1 = &H20400
.Data4(0) = &HC0S '&HC0S
.Data4(7) = &H46S '&H46S
End With
With Pic
.Size = Len(Pic)
.Type = 1 'PicTypeBitmap
.hBmp = hBitmap
.hPal = hPalette
End With
MsgBox(Pic.Size)
MsgBox(IID_IDispatch.GetType.ToString)
' Create Picture object
r = OleCreatePictureIndirect(Pic, IID_IDispatch, True, IPic)
'Return the new picture
CreateBitmapPicture = IPic
End Function
I have read some posts stating that the OleCreatePictureIndirect has changed in .NET but as I have no .NET experience and no reference material, the detail given in the solutions is lost on me.
Could someone please explain in relatively plain english the situation and the solution???
Could you also recommend some good reference material for getting up to peed with .NET
Any help greatly appreciated
Cheers
Dave
|
|
|
|
|
Hello world
I've written an app that employs disconnected data via datasets. I had a situation lately where a user modified over 10 records (out of a total of 25 contained within my dataset). When the user tried to update the datasource with their changes some of those records violated database rules. The user then had to manually scroll thru the dataset SEQUENTIALLY to see which records caused the update to fail. How do I modify the app so that in such a situation it automatically displays the first record that causes the update to fail?
If it is any help, the app was built using the Data Form Wizard in VB.NET.
Rommel the iCeMAn,
Computer Programmer,
Barbados, West Indies.
|
|
|
|
|
I have a suggestion that u might wanna look at,
what you can do is to highlight those records that caused the problems and let user rectify.
BTW : I am curious, how can u let user update fields that can cause DB error? wanna leave an example here?
thx
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
You're thinking along the same lines as me. However, the question is, how does one determine which records are the rogues? For example, if we are sending 5 records back to the datasource but one has caused a concurrency violation, how do we know which one has caused the violation?
As for your question I think it's just a case of highlighting the field (on the data-entry form) that caused the error, allowing the user to correct the data, then allowing them to save the data again (via the appropriate command button on your form).
Rommel the iCeMAn,
Computer Programmer,
Barbados, West Indies.
|
|
|
|