|
Of course you can change it. It's in the control panel.
If you want to use a different format or culture, specify it when you convert the date to a string.
---
b { font-weight: normal; }
|
|
|
|
|
I found that there is some activeX installed to my IE,
We may see them at IE -> Tools -> Manage Add-ons.
I know one of this is using for capture a drop event, eg:
When the user drop a email form outlook and then the activeX will do something.
If I need to write something such capture the drop event, What topic should I go for?
|
|
|
|
|
Hi,
Im quite new with using VB.NET and I am trying to find out how to send data between programs. From what I have read so far, there are a number of ways to do it. Can someone please give me advice on which method is the best to use with sending data between programs on the same computer and over a network? anyhelp would be greatly appreciated.
Thanks
|
|
|
|
|
How about using the winsock...
http://justicemansoftware.tk
|
|
|
|
|
Hello!
I’m sick and tired of Crystal Reports and it’s dll’s… Anyone knows a reporting tool simple to work, easy to deploy and (hopefully) free?
The objective is to work with vb.net 2003 in windows apps.
TIA
Jorge
|
|
|
|
|
I'm new to Reg Expressions and VB script, but after doing some seaches, I found that the following works well to return the first value...
Set re = New RegExp
With re
.Pattern = "\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b"
.IgnoreCase = True
.Global = True
End With
Set matches = re.Execute(htmlResult)
getadd = matches.item(0).value
msgbox getadd
If I change getadd to...
getadd = matches.item(0).value + ", " + matches.item(1).value
I can get the first 2 values. The problem is I want all of the values (the total number will vary) in the single variable getadd (I want to return all of the matches in a single message box). Any help?
|
|
|
|
|
create application by using vb.net2005 i add sqldataadapter to my project when i try to configure dataadapter to connect to database this error apear
*************************
an error has occurred while establishing a connection to the server.when connecting to sql server 2005 this failure may be caused by the fact that under the default setting sql server does not allow remote connection (provider:sql network interfaces,error:26-error location server/instance specificed)
**************************
i need to solve this error to end my project
plz answer me very quickly
thanks
ma_refay
ma_refay
|
|
|
|
|
I have created a very simple program that will basically keep and changelog file.
I consists of three forms
1. Main menu form (New Change, Show Summary, Exit)
2. New Change form (textbox, 2 buttons, RT box)
3. Summary Form (RT box control)
What I would like to happen:
1. When user clicks on New Change button in Main Menu I would like it to load the new change form. On the form there is a Textbox for name entry, a button that once clicked adds the name and timestamp to the RT box in Bold font, and a button for Save/Close.
When I Save/Close I would like for the bold text in the RT Box to Append to the top of an existing .rtf file.
2. When user clicks Summary i would like the form to load the .rtf file in its entirety. (Read Only)
Number two I don't have a problem with.
Number one I cannot get to append. Here are the choices I ahve tried thus far:
1. Use the .SaveFile option. Works great but no Append option
2. Use a StreamWriter to write the information. This also works great but I cannot seem to get it to keep the RTF formatting. I have tried a lot of the Encoding types and it does not seem that a Streamwriter can write in RTF encoding. Am I wrong here?
Please let me know in what direction I should head on this...=)
Thanks,
Taen Karth
|
|
|
|
|
A rich text textbox control and a rich text file are two quite different things.
The rich text textbox control is just a textbox that supports formatting, and that can export the formatting as an rtf document.
The RTF file format is a document format, it's not an encoding for formatted text. You can't add text to an rtf file by just appending (or prepending) text. You have to open the rtf document, add the text to the document body, and save the changed document.
---
b { font-weight: normal; }
|
|
|
|
|
So how would I accomplish this task? or is there a better way other than RTF for saving and readin formatted text
Thanks,
Taen Karth
|
|
|
|
|
Im developing a system and the project sponsor wants it to be viewed in 3 different languages, is the a package i can use or do i hard code it?
Thank you
Nothing lasts but nothing is lost
|
|
|
|
|
Internationalization is built into .Net. All of your strings that you show the user can be stored in a resource file and configured for a particular language/locale. There's a lot of material available on MSDN about this.
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
Hi
I have a windows application where I have programmed and designed my forms in normal(96dpi). The problem is that some of the users are changing their settings to large font(120dpi) and it is causing the text in the forms to enlarge and it is therefore screwing up the design/look of the pages. I have been able to search online to find some code that is available in VS2005, but I am using VS2003 and it does not seem to have the systemfont class required for those solutions. Does anyone know of how I can implement those solutions or if they know of where/how I can solve this issue? thank you
eg code:
<br />
Imports Microsoft.Win32<br />
<br />
Public Class Form1<br />
Public Sub New()<br />
' This call is required by the Windows Form Designer.<br />
InitializeComponent()<br />
<br />
' Add any initialization after the InitializeComponent() call.<br />
AddHandler SystemEvents.UserPreferenceChanged, New UserPreferenceChangedEventHandler(AddressOf SystemEvents_UserPreferenceChangesEventHandler)<br />
End Sub<br />
<br />
Private Sub SystemEvents_UserPreferenceChangesEventHandler(ByVal sender As Object, ByVal e As UserPreferenceChangedEventArgs)<br />
If (e.Category = UserPreferenceCategory.Window) Then<br />
Me.Font = SystemFonts.IconTitleFont<br />
End If<br />
End Sub<br />
<br />
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing<br />
RemoveHandler SystemEvents.UserPreferenceChanged, New UserPreferenceChangedEventHandler(AddressOf SystemEvents_UserPreferenceChangesEventHandler)<br />
End Sub<br />
End Class<br />
eatwork
|
|
|
|
|
Im trying to create a folder on a remote server (eg http://Server1/locatonX). any idea of how to check and creat a folder on this server. (I have full access)
|
|
|
|
|
Use the ftp protocol it should be some where under the system.web namespace in 1.1 if 2.0 use system.net
|
|
|
|
|
I have a program that does all of it's work in one master loop on one button click. The form has a label and a progress bar. Every 25 records in the loop the label text is set to display how many records have been processed and the progress bar value is updated accordingly. I finish this display update with a Me.Refresh so that the screen will redraw itself. This all works fine. The problem I'm having is that I'll start my program and while I'm waiting for it to finish I'll pull up some other program, then I go back to check on it's progress and the window will not redraw. How can I get it to redraw in this instance?
|
|
|
|
|
Use thread to do the task.
|
|
|
|
|
ok, before even looking at some posts , i had an example source for using the WNetOpenEnum.But i dont understand anything .. what do the params. mean.. and how do i use it?
These are the params.... .
· dwScope<br />
Specifies the scope of the enumeration. This parameter can be one of the following values:<br />
RESOURCE_CONNECTED<br />
All currently connected resources (the dwUsage parameter is ignored).<br />
RESOURCE_GLOBALNET<br />
All resources on the network.<br />
RESOURCE_REMEMBERED<br />
All remembered (persistent) connections (dwUsage is ignored).<br />
<br />
· dwType<br />
Specifies the resource types to enumerate. This parameter can be a combination of the following values:<br />
RESOURCETYPE_ANY<br />
All resources (this value cannot be combined with RESOURCETYPE_DISK or RESOURCETYPE_PRINT).<br />
RESOURCETYPE_DISK<br />
All disk resources.<br />
RESOURCETYPE_PRINT<br />
All print resources.<br />
<br />
If a network provider cannot distinguish between print and disk resources, it may enumerate all resources.<br />
<br />
· dwUsage<br />
Specifies the resource usage to be enumerated. This parameter can be a combination of the following values:<br />
0<br />
All resources<br />
RESOURCEUSAGE_CONNECTABLE<br />
All connectable resources<br />
RESOURCEUSAGE_CONTAINER<br />
All container resources<br />
<br />
This parameter is ignored if the dwScope parameter is not RESOURCE_GLOBALNET.<br />
<br />
· lpNetResource<br />
Points to a NETRESOURCE structure specifying the container to enumerate.<br />
If this parameter is NULL, the root of the network is assumed. Windows organizes a network as a hierarchy; the root is the topmost container in the network.<br />
<br />
· lphEnum<br />
Points to a variable filled with an enumeration handle that can be used in a subsequent call to WNetEnumResource.
i have only ONE workgrounp and i need to enumerate all the computers in IT.. .but could someone PLEASE EXPLAIN.. the API to me... or gimme a link to a TUTORIAL not some crazy source code =( . i might need to use this API later on for more complex things...
also... .... this was the example..... http://gideon.110mb.com/code.html
When i RUN this code i get C: UNC path C: ...WHAT THE HECK DOES IT MEAN!?
Thanx
Gideon
|
|
|
|
|
Hi.
I need to create a console application that has to run DTS located on the server.
Does anyone knows how to do that?
I have imported Microsoft DTSPackage Object Library to my application and created an obect.
But what do I do next? I guess I'm not sure how to use pkg.LoadFromSQLServer
My test DTS returns String to me. How do I capture it? DTS I'm writing the application for does not return anything, I just need to execute it on a scheduled basis.
Dim pkg As DTS.Package2
pkg = New DTS.Package2
Any help would be appreciated.
Thanks Alex.
|
|
|
|
|
Look at MS KB article 321525.
Hope it helps,
djj
|
|
|
|
|
I am looking for a vb script that can pull a line of data from an .ini file on all my pc's accross my network and store it to another txt file using comma delimited. I would need it to store the computername and the single line of data from the file. Below I have included what the file looks like, the line I would need is "WS=" and whatever number WS equals, in this case it would be 737.
Would someone be able to help me out with this? Thanks for your time...
FOCUSXP.INI
_______________________________________________________________________
[Internal]
Version=19.09.1228.05
Install=F:\
Path=C:\XP\
SetupPath=F:\setup_image\
MaxClients= 6
Type=XP2
[xpwnav]
WebApplication=XPWEB
OpName=
WSDesc=
AHelp=0
TimeOut=0
ConRetry=0
WS=737
OPID=532
TimeSync=0
TimeDelta=73
LogOpt=1
CTrace=1
STrace=1
Rptpr=0
Rctpr=0
Chkpr=0
Cls4pr=0
Cls5pr=0
ScrPrtCls=2
ESPColors=12632256,0,8388608,16777215,8454143,65535,33023,8421376,16777215,8421504,255,65280,8388608,16777215,0,32768,255,8454143,0,0,16777215,0,8388608,8388608,16777215,128,16777215,0,0,0,0
NavColors=12632256,0,0,128,12632256,12632256,8454143,0,8454143,12632256
NavPath0=XP: OPDVR - Workstation Reset
NavPath1=XP: CI - Central Information
NavPath2=XP: OPDVN - Networks
NavPath3=XP: OPDVP - Printers
NavPath4=XP: OPTOOP - Operator Control
NavPath5=XP: DCOP - Operator Profile
NavPath6=XP: DCCO - Current Operators
NavPath7=XP: DCCM - Console Monitor
NavPath8=XP: XP - XP² Applications
NavPath9=XP: XP - XP² Applications
QB1=
QB2=
QB3=
QB4=
QB5=
QB6=
QB7=
QB8=
XPPrint=0
DyIPAdd=0
WSBranch=0
WebServer=3021xpweb2
[XPWESP]
sysfmts=SYSFMTS.PDS
formats=FORMATS.PDS
formats1=FORMATS1.PDS
sysscrn=SYSSCRN.D8
screend=SCREEND.D8
screend1=SCREEND1.D8
font="-9,400,0,Courier New"
helpfont="-10,400,0,MS Sans Serif"
dvfont="-9,400,0,Courier New"
[GIFT]
ChangedText=16711935
NegativeText=255
Cautions=65535
Warnings=33023
Supervisory=255
ShowCodes=0
[XPSBA]
EndrData=1
EndrStop=1
EndrParity=1
EndrCom=2
EndrFlow=1
EndrBaud=1
[XPACTT]
CardData=1
CardStop=1
CardParity=2
CardCom=1
CardFlow=2
CardBaud=3
CardDelay=100
[XPFile]
Viewer=Viewer
Editor=c:\windows\system32\write.exe
Font=MS Sans Serif,8,-1,0,0,0,0
|
|
|
|
|
Hey all,
I'm getting a really annoying error when trying to save my xml document. I was using the example from the MSDN and it failed to with the same error. Here's the current code:
Friend Sub upload()
'create xml doc
Dim XMLDoc As New XmlDocument
'get all controls from form1
Dim ctrl As Control = f1.GetNextControl(f1, True)
'if the control is a special type called unitbox
If TypeOf ctrl Is UnitBox Then
'set it to x
Dim x = DirectCast(ctrl, UnitBox)
'if unitbox.unittype falls in the case
Select Case x.unitType
Case "infantry"
Dim inf As XmlElement = XMLDoc.CreateElement("infantry")
inf.SetAttribute("number", x.number)
inf.SetAttribute("location", x.endcountry)
inf.SetAttribute("owner", x.owner)
'also tried xmldoc.appendchild(inf) to no avail
XMLDoc.DocumentElement.AppendChild(inf)
'more cases... all the same stuff though
End Select
End If
'gives a system error
XMLDoc.Save("testxml.xml")
End Sub
Thanks a for any help
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
What kind of error specifically? Is it an access denied error? You're telling it to save as testxml.xml. but what directory are you running in? Did you set the DocumentElement to something before appending children to it?
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
hi
i have a package developed in vb.net.how can i deploy the embeded crystal report of my project to the client machine using vb.net code?when ever i ll run my program in client machine it will ask for the login information from registry.bt from that registry value,how can i set the login information of reports that i already ve been developed in another machine having different server,password & database name.please explain it with an example
u can send me the source code at pradipta_pkc@indiatimes.com
any suggestion in this regard will be highly appreciated
thanking u all in advance
i m pradip kumar from india,working in vb.net & asp.net
i m pradip kumar from india,working in vb.net & asp.net
|
|
|
|
|
I need to capture the Ctrl+Shift+C keys even when my form does not have the focus (more like a service running without an interface).
Can anyone help?
Urgently needed
|
|
|
|
|