|
Please help me
Thanks
Needy
|
|
|
|
|
Hi Guys
I am working on a project which requires me to scroll an object such as "Label" object. Right now I am doing this with the following method:
Declaration:
Dim Pos as integer
Private Sub btnscroll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnscroll.Click
lblscroll.Left = Me.Width + 1
pos = Me.Width + 1
Timer1.Interval = 100
Timer1.Enabled = True
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
lblscroll.Left = pos
pos -= 1
End Sub
But the problem is that it flickers and I want it to be smooth. And as the value of the left property of the "Label" cannot be in decimal.
So if anyone of u can help me to scroll the object flicker free then please tell me and also note my email: maptiger@hotmail.com
Thanks anyways.
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
If you are using .NET 2005, you can set the form's DoubleBuffered property to True.
|
|
|
|
|
Well, there wasn't much difference after doublebuffered property is set to true. Well, ok lets more specific what if come other thing provides me a surface where i can move the object in decimal format i.e 1.1, 1.2, 1.3 etc except 1, 2, 3 etc. so then the doublebuffered property will be more useful n i would have more precise control over the scrolling.
Thanks in advance.
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
Here is an easy way to capture the hostname for a Windows form in VB.NET
Add this entry to declarations:
Imports System.Net
Establish the variable with the GetHostName function:
Dim strLoggedHost = Dns.GetHostName()
I searched all over and found many other ways that required more lines of code. This is simple and to the point.
LWhite
|
|
|
|
|
Ok, so I'm a VB newbie so hopefully this doesn't sound too trivial. I'm having fun using the CreateObject("Excel.Application") deal but I want to do more with it and can't seem to find any good resources beyond the basics. The CreateObject concept is still a bit fuzzy to me, but I sure would like to know all the possible methods/properties so I can expand and debug. All I've found so far in the way of resources are basic examples. Anyone know of any sites/articles/gurus?
Thanks!
|
|
|
|
|
I have a sub called Save that saves a record to a table. I have an ID column that is autonumbered in the table. I also have a textbox that is bound to the ID column. Every time I click the save button, it creates a new record which is fine, but the ID in my textbox always remains the same.
How can I "autonumber" my textbox, so that the textbox looks at the most recent ID, or saved record?
Thanks in advance,
Rashar
|
|
|
|
|
I figured it out... I changed the order of my dataset to order by ID Desc.
Now it looks at the current record.
|
|
|
|
|
Hi,
I had created some crystal reports in my application and they are working fine, and i wrote some code for converting them to HTML and PDF Files which is even working fine.
The problem is after publishing the application and installing it.
The reports are not loading on to the screen. the message is "Load Report Failed". but i am able to convert the Reports into HTML and PDF after installing.
code used to load report to Screen
-----------------------------------
rptViewer1.ReportSource = "\xxx\xxxApp\xxxApp\xxxReport1.rpt"
rptViewer1.Show()
Plz help...
Jats
|
|
|
|
|
The report source has to be a designer component created in your vb IDE
|
|
|
|
|
Can u tell me how to create a designer component. I am using VB.NET.
Jats
|
|
|
|
|
-----------------------------------------------------------------------------
Hi ALL...
Using SMO I want to do backup and restore database thru my VB.Net application (2005).
The backup operation is working fine.
The restore is also working if i'm restoring to the same database in the same machine.
But, if i'm restoring as a different database name or in a different machine(where the MSSQL data files' folder path is different from the server from where i took backup), it is giving an error.
The problem i found is that i'm not able to change the path of the data files (eg; C:\Program Files\Microsoft SQL Server\MSSQL\Data)
Pls help
Have a nice day
-----------------------------------------------------------------------------
"I firmly believe that
any man's finest hour,
the greatest fulfillment of all that holds dear,
is that moment,
when he has worked his heart out in a good cause
and lies exhausted in the field of battle - victorious..."
-- modified at 7:24 Friday 30th June, 2006
|
|
|
|
|
Dear Friends,
I want to write a program in VB.Net using CheckedListBox.
Also I would like not to allow the double_click event. Because when an item is selected, the selected item should be saved in a file, now the problem arised is that, if i make a first doubleclick event the item is selected, but the selected event is running. If I call the procedure which are in the Item_selected event, then there is an error, because the system doesn't know the selected item's index.
So I prefer to cancel the event happend by the doubleclick. Please let me know how can I achieve this.
Thanks in advanced,
Suganthan
|
|
|
|
|
One old-time solution: set a "tamper-proof" switch within your program (you'll probably need to create one for every checkbox you've programmed in, so a "1 or 0" table might be best suited to the purpose) that is set "Off" when the program is initialized but is turned "On" when the Checked Item is first selected. Program the Selection verification process to not allow deselection if the "tamper proof" switch is on. That way, the only time the box can be checked or unchecked is (1) either the next time the program is initialized, or (2) unless the you programatically allow the "tamper proof" switch to be turned off while the program is executing.
A bit clumsy perhaps but it'll serve your purpose if you need a quick solution .
|
|
|
|
|
Hello friends,
i am usinfg a structure and that structure is going to save on a file..
code snipet-->
Open file_Name For Random As #1 Len = Len(myStructure)
Put #1, 1, myStucture
Close #1
---
If structure contains more values, the Put command throws an error.
I dont know why? but i think if structure size is bigger then only it happens.
Plz tell me the allowable size in bytes that can be aaded into the file.
thanks in advance!!
hoping best from U
Rahul here
|
|
|
|
|
I seriously doubt your structure is that big. The limit is controlled by the Filesystem of the device you're writing too.
Without seeing your structure, it's impossible to tell you whats wrong. The code you've posted appears to be fine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i read msdn about sockets. I want to block access to and from all URLs.ie Block internet explorer,or any Internet application from accessing the web and vis-versa. I wrote an app but it fails and i dont know wheather ive got all right. Is there anyone who knows how to stop trafic to and fro? then allow trafic to flow when desired?
|
|
|
|
|
|
Didn't I just get done telling you what your solution is?
Now, you changed the requirements a bit. Now you want ALL applications to be denied access to the 'Net. Your best solution is now a firewall between either your network and your ISP, or installed on your machine. Either way, you'll need some kind of management app to control the firewall, like turning it on and off, opening/closing ports, ...
If you're new to socket apps, writing your own firewall will be next to impossible. You'll need an in depth knowledge of writing NDIS drivers, like Colin said, which you really can't do in VB.nET or C#. You'll need to be familiar with the TCP/IP stack and how Microsoft implements it.
I know how to mix a wheelbarrow of concrete, but it doesn't really help me in building a dam, now does it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
if we use vs 2005 masked text box, there's no way to privent input spaces.(using array key can put blank)
can we privent this.
anyone's help
|
|
|
|
|
hi
i want to know how to validate a primary or unique key in database when the user is filling on the application layer , for example in a datagrid the user shouldn't be able to enter two same values.
i have seen an article in msdn. but i didn't bookmark it and now i can't find that article.
thanks in advance
-- modified at 20:11 Thursday 29th June, 2006
|
|
|
|
|
Really, the user shouldn't be entering Primary Key values. They should either be autogenerated and/or built from fields in the data, otherwise known as a compound Key. Part of this reason isn't necessarily because of the possibility of duplicate keys, but getting the keys entered consistantly.
The only way to verify that the new Key doesn't exist is to look it up in the database and see if it returns anything. Performance can become an issue if your table contains a large number of rows and/or you don't have your index built correctly.
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 22:43 Thursday 29th June, 2006
|
|
|
|
|
thanks.
two month ago i was working on a project for a small bussiness, i validate a "IDNO" field by using table search for new number. that table had only 140 records. but the most important issue is the performance in such a large tables with 10000 or above records.
thanks.
-- modified at 15:18 Friday 30th June, 2006
|
|
|
|
|
Hi again to Alex@UEA and other nice helpers:
I am making a prototype for my dissertation. The prototype is expected to have a view ( form) similar to the MS Access "Relationship" view.
Question in details:
1. Brief background/requirements. In my form/view, there may be one to many floating stuffs (e.g. controls/forms/thumbnails), which can be linked through drag-and-drop. A link between these stuffs is presented using a "line" (chart). User can arrange floating stuffs into a fancy layout. When move a floating stuff, the linking line is able to move, yet snap the two related stuffs automatically.
2. My solution. Floating stuffs are to be implemented with floating forms or withevent controls which are allowed to drop/move. The linking line is drawn using System.Drawing functions.
3. Question point: How to make the linking line automatically snap to floating stuffs? More advanced if possible, the line can go round other stuffs on the way when it's moving?
Can any genius advise me with a shortcut to implement this described above?
Or indicate a code sample reference? Thanks a lot.
abc
|
|
|
|
|