|
OK I've scoured the WEB for this but can't find a working solution.
I'm trying to create a "fade" effect for a user control without any luck.
Basically I'm trying to get the control to gradually "appear" on a form as part of it's methods, i.e. add the control to a from and then "fade" it in.
As an example, assume I have a user control containing various other controls (text boxes, labels, listviews, etc.). The control should then fade all of these in.
NOte - I can't use a Form and then change the opacity, it has to be a user control, but that's basically the equivalent effect...
Any ideas?
Thanks.
???
Carp
|
|
|
|
|
i am printing information on a form and i send all the items individually to the printer, however i have a textbox that contains a large body of text, and when i print it just goes in one straight line, how do i break it down so it shows all the text
thanx
|
|
|
|
|
|
|
Hii,
I need to set minimumpasswordlength for my system Using Visual Basic .
For this Iam Using IADsDomain interface.
My code is as follows....
Private Declare Function GetComputerName Lib "Kernel32.dll" Alias "GetComputerNameA" (ByVal strString As String, strSize As Long) As Long
Private Sub Command1_Click()
On Error GoTo ErrorHandler
Dim dom As IADsDomain
Dim cls As IADsClass
Dim v
Dim x As Variant
Dim str As String
Set dom = GetObject("WinNT://" & ComputerName & " ")
Iam getting an exception in the above line
Set cls = GetObject(dom.Schema)
For Each x In cls.OptionalProperties
v = dom.ADsPath
If x = "MinPasswordLength" Then
dom.MinPasswordLength = 10
End If
Next
ErrorHandler:
MsgBox Err.Description
End Sub
Function ComputerName() As String
Dim buffer As String * 512, length As Long
length = Len(buffer)
'GetComputerName returns zero on failure
If GetComputerName(buffer, length) Then
ComputerName = Left$(buffer, length)
End If
End Function
'My computer is connected in domain. if I specify the domain name instead of ComputerName in
Set dom = GetObject("WinNT://" & mydomain & " ")
,i could execute the code successfuly.But i need to execute the code on a system which is connected to work group.
Can anyone please provide me the relevant information??
Thanx
|
|
|
|
|
narayanagvs wrote: Can anyone please provide me the relevant information??
Yes, if you do.
What exception do you get?
---
b { font-weight: normal; }
|
|
|
|
|
I have an xslt file main.xsl whose output is XML & uses Main.xml .I use document function in my main.xsl to get data from Submain.xml(Document('Submain.xml')) file and transform some information from submain.xsl.my above main.Xsl transforms perfectly on xmlspy or stylusstudio but when i try to transform using vb.net submain.xml is never read & so i don't see any relevant information from Submain.xml.
can somebody help me
i will paste the vb.net code below
xmldoc.Load("Main.xml")
xsltTransformer.Load("main.xsl")
writerHtmlOutput = New System.IO.StringWriter
xsltTransformer.Transform(xmldoc, Nothing, writerHtmlOutput, Nothing)
Stream = New StringReader(writerHtmlOutput.ToString())
Vijayendra
|
|
|
|
|
.net 2.0 seems to be a little different when saving data back to a database. In the form designer I created a datasource and dragged fields to the textboxes on the form. VB created some objects including a dataadapter an inserted these objects in the form designer tray. When I click on the save button the following code runs but does not update the database. What do I need to do to updata the database? Thanks for anyhelp given!
Me.Validate()
Me.MyTableBindingSource.EndEdit()
Me.MyTableTableAdapter.Update(Me.MyDataSet.MyTable)
Me.MyDataSet.MyTable.AcceptChanges()
|
|
|
|
|
If you are using an access database, check if you have created the primary key You cannot update your database until you create the primary key.
Regards,
Chatura Dilan
|
|
|
|
|
I do have a primary key defined. Any other ideas?
|
|
|
|
|
I have a class that I want to serialise to XML with a date value as one of the members - however I need it to either (a) populate the xml element or (b) not create the element at all. I have implemented it as a nullable(Of Date) e.g.:-
<XmlType("paydates")> _
Public Class IRSPayDates
#Region "Private members"
Private _StartDate As Nullable(Of Date)
'-- 8< ---------------------------------
#End Region
<XmlElement("startdate", datatype:="date")> _
Public Property Startdate() As Nullable(Of System.DateTime)
Get
Return _StartDate
End Get
Set(ByVal value As Nullable(Of System.DateTime))
_StartDate = value
End Set
End Property
End Class
However, serialising this with an empty date comes out as:
<paydates>
<startdate />
</paydates>
How would I make it omit the null date element at all?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hi to everyone.... I need an advice...
I have a folder with some .rpt files and i want to make an application, where with a button_click the user can print all these files!!!
Does anyone knows how can i do that??
The only data from user it will be the folder path!!!And i want to print all the contains .rtp without open them....
Thanks!!!
giotis
|
|
|
|
|
Hello friends,
i am doing a project , in that i have to genarate excell report.
i did it very finelybut problem arises that the excel file is created but even if i close that file and not saved , it remains in memory.
i used .........
Dim xclApp As New Excel.Application
Dim xclWorkbook As Excel.Workbook
Dim xclSheetA As Excel.Worksheet
Dim xclRangeA As Excel.Range.... etc
insert all record to excel object and finaly called...
xclApp.Visible = True
ActiveWindow.Zoom = 50
after this command excel sh*t genarates but even though i close it without saving its remain in memory and ask me to save or not when i shut down the PC.
Thanks in advance
Hoping Best from u!!!
Rahul here
|
|
|
|
|
This would be probably due to the fact that Excel Workbook object or Excel Worksheet is left open. You need to close them after using. There is a property I dont remember exactly that will close the object and do the trick for you.
_mubashir
|
|
|
|
|
'Close the workbook
xclWorkbook.Close
'Quit Excel
xclApp.Quit
Bhaskara
|
|
|
|
|
Thanks frds
Rahul here
|
|
|
|
|
Hi All,
I have a Application which generates XML file and this XML file will be used to generate Crystal Report. Using wizard, i.e. by right clicking and selecting Add/Remove Database on Database Field we can set Data Source into the Report. Now I want to do the same, i.e. setting Data source through code. Can any body tell me how can achieve the same.
Thanks in advance.
Regards,
Krishnaraj
|
|
|
|
|
Hi 2 all!
Actually i am workiin on a project in which i have to tackle with the URDU/ARABIC/PERSIAN Languages.
I want to ask the how could i handle this problem. I have to store/search/retreive data from database in URDU/ARABIC/PERSIAN Languages.
Thanx in advance
Kind Regards,
Arfan Qadir
|
|
|
|
|
Use unicode data types (nvarchar,ntext in SQL Server) to handle multiple languages.
If you want to enter text in one language and search using another language, you may need to use some form of normalization to convert the text to a common format.
---
b { font-weight: normal; }
|
|
|
|
|
I would like to convert my code from VC#.net 2003 to VB.net 2005 as I use VB more than C#.net and this is the only version of 2005 VStudio I have and I need the project I'm working on done whithin 2 weeks. Is there any free programs that will convert all the code?
In the end we're all just the same
|
|
|
|
|
Hi,
Probably this will help you a bit.
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
Best Regards,
Apurva Kaushal
|
|
|
|
|
If you're ok to convert 100 lines at a time, you can download the demo edition of our Instant VB converter (www.instantvb.com).
You'll find the results much more accurate than the on-line converters.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
|
|
|
|
|
I want to creat my own visual styles in my application similar to that of vista's black shell. How would you go about doing that? I know that this code:
void Main() <br />
{ <br />
Application.EnableVisualStyles(); <br />
Application.DoEvents(); <br />
Application.Run(new Form1()); <br />
}
Gives the app a WIndows visual style, but I want it my own style. How would I do that?
In the end we're all just the same
|
|
|
|
|
hi
in XP you can get similar tasks to group together on the task bar. what i like to do is group programs i invoke through a navigation toolbar program but with programs aren't named the same and have some customizations, but shares a common DLL. is this possible? if so how do i do this. i havent seen anything on the web that has anything about this. also if possible if this could also be done in Win2000 using some kind of API?
|
|
|
|
|
I am making a web browser in VB.net 2005 and need some info..
I want my Web browser to block pages with certian words like: Sexual terms and swear words etc...
What i want is if the explorer comes to a page with "F*ck" for example, on it more than 4 times, A message box will appear saying "This page has obscene language. Do you wish to continue?" Yes will let you continue and no will load up a html page that is in the same directory as the .exe file. How would you do this?
In the end we're all just the same
|
|
|
|