|
Do the same thing at run-time not at design time.
|
|
|
|
|
Transparent isn't. All Transparent does is tell the control to take on the background properties of it's parent container, which is the Form it's sitting in.
For a truely transparent control, you'll need to make a custom version of the label. Google for "vb.net transparent label" and you'll find a bunch of examples.
|
|
|
|
|
Hi there,
I'm stuck with a problem formatting a datetime value:
Dim thisdate As DateTime = #10/15/2005#
Me.Label1.Text = Format(thisdate, "mm/dd/yyyy").ToString
Returns 00/15/2005
setting the month to 00 instead of 10
I must be doing something wrong, for I don't find any mentioning of this problem.
I use VB.NET Visual Studio 2003
Any help is more then welcome !
|
|
|
|
|
Hi,
Try MM in place of mm in the format string, mm is for minutes.
Alan.
|
|
|
|
|
Thanks Alan,
It works like a dream, you saved me!
Kind regards,
Hans
|
|
|
|
|
Hi,
I'm currently using flowcentric and need to connect to SQL2005, I have tried all the examples in the manual that I have for flowcentric, but none of the are working.
Flowcentric uses vbscript (It's the first time I use vbscript), anyone that can give me a few pointers or an article or whatever there is for more info on this
Thanks in advance
modified on Friday, September 19, 2008 9:41 AM
|
|
|
|
|
Is there some reason why you're not asking Flowcentric this question?
|
|
|
|
|
Currently i am trying to communicate with me hardware using my CPU. i am not able to transmit and receive command to and from the hardware. I have been told that mscomm control and mswinsck.ocx might be able to do the job but i am new to both library. Can anyone advice wat to do??
|
|
|
|
|
You'll have to be more specific. What kind of hardware?
|
|
|
|
|
Hi all,
I am developing one application in that I stored data in database.It contains more data approximately in lacks. I want to retrieve these data from database using data reader and bind it to list view at a time. I am displaying those data but it is not coming at a time.
Please anyone have any idea help me.
Thanks in advance
pavani
|
|
|
|
|
I have no clue what you're really getting at, so I'll take a guess as to what you mean:
You're trying to bind a set of 1,000,000+ records to a ListView. The solution is simple. Don't. Why would the user want to scroll through that many records?? Use some kind of filtering on the data to reduce the number of records returned or some other method of organizing the data. There's just no way any user is going to put up with a control containing that many records.
|
|
|
|
|
I want to Get the IP address of my machine using the Windows API in .NET(Windows Application).
Api's should support Ipv4 and Ipv6 format.
Microsoft Visual Studio .NET 2005(Windows Application), 2005
MOOSASAHIB
|
|
|
|
|
How To Get IP Address Of A Machine[^]
I don't think there are separate ways for ipv4 and ipv6. If the computer has ipv4, you'll get an ipv4 address. If ipv6 is enabled, you'll get an ipv6 address (::1).
|
|
|
|
|
#1 (permalink) Add to desperateboy's Reputation Report Post
Old Today, 1:09 PM
desperateboy desperateboy is online now
VB.NET Forum Newbie
.NET Framework: .NET 1.1 (VS 2003)
Join Date: Dec 2007
Posts: 20
Reputation: 12
desperateboy is on a distinguished programming path ahead
Default Insertion problem in database
hi friends,
I have added 3 buttons of name add,save and delete.When add username in the database first heck out that already exist or not.If not existed then insert into database.I trying using this code
Plz help to sort it out.
Try
dim str1 as string
str1 = txtusr.Text
conn.Open()
cmd = New SqlCommand("select * from usrs where uname='" & (str1) & "'", conn)
dr = cmd.ExecuteReader
While dr.Read()
str = dr.Item("uname")
If str <> Trim(str1) Then
usrexist()
Exit Sub
Else
Dim sYN As String
sYN = MsgBox("User Already Exists, Want to Update", vbYesNo + vbQuestion, "Update User")
If sYN = vbYes Then
'' update in the database''
End If
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd = Nothing
conn.Close()
dr.Close()
End Try
|
|
|
|
|
lahsiv wrote: #1 (permalink) Add to desperateboy's Reputation Report Post
Old Today, 1:09 PM
desperateboy desperateboy is online now
VB.NET Forum Newbie
.NET Framework: .NET 1.1 (VS 2003)
Join Date: Dec 2007
Posts: 20
Reputation: 12
desperateboy is on a distinguished programming path ahead
Default Insertion problem in database
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Copy / paste from a posting on a different site
|
|
|
|
|
|
lahsiv wrote: u don't know
Really?? It just takes a minute of googling to get at this page[^]
|
|
|
|
|
facing same problem buddy.I am not interested to spoil time to ask questions if i know.
|
|
|
|
|
hi
when i am running my windows application in vb.net .i am getting an error
as below
The CLR has been unable to transition from COM context 0x1a1298 to COM context 0x1a1408 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
please suggest any solution to above problem.its very urgent
thanks and regards
sneha
|
|
|
|
|
Press CTRL+ALT+E - opens the exceptions window. Goto Managed Debugging Assistants. I *think* you want to uncheck the ConextSwitchdeadlock checkbox.
If not, logically determine which one is appropriate.
Cheers!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Not enough information to go on. What COM components are you using in your app?? It would appear that one of them is not working correctly or, maybe, is running as an MTA when VB.NET expects to run as an STA by default.
|
|
|
|
|
Sometimes you maybe doing a call to an object that does a large amount of processing and takes longer than 60 seconds. The exception assistant assumes that the operation is a deadlock or is unresponsive and will throw the error.
Just something I ran into before.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
When I am Opening my appliaction from .exe, If a dll is missing it throw me an error :
An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'nsoftware.IPWorksSSL, Version=8.0.3022.0, Culture=neutral, PublicKeyToken=cdc168f89cffe9cf' or one of its dependencies. The system cannot find the file specified.
How Can I Check at start of the Application.
Or How can It Attached with my application
|
|
|
|
|
When you build your deployment project make sure the DLL is included or make it copylcal = true if you are using clcikonce.
Never underestimate the power of human stupidity
RAH
|
|
|
|