|
There are a couple of articles on this site describing ways of printing a data grid to span multiple pages (including one written by myself) - I'd suggest you look at those.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
hello
i want to bind a pirticular row of my table with the textboxes which i have in my form. i am getting that row from the datagrid and that is a current row which is clicked by the user. i have saved that row refernce in a seprate datarow object. now how i will select that pirticular row from my table and display the values of each column in realted textbox
Dim xCM As CurrencyManager<br />
Dim drw As DataRowView<br />
Dim row As DataRow<br />
<br />
xCM = CType(DataGrid1.BindingContext(DataGrid1.DataSource, DataGrid1.DataMember), CurrencyManager) '= <br />
drw = CType(xCM.Current, DataRowView)<br />
row = drw.Row<br />
Me.ItemCode.DataBindings.Add("Text", ds.Tables(0), "locid")
the last line bind the first row but i want to bind a cuurent row which is clicked by the user on the datagrid and want to display its values plz help me as soon as possible
|
|
|
|
|
|
Hi guys, I'm on role based security thing. I have a roles table , a users table and a UserRoles table which contains User Id and Role Id (both primary keys). For assigning roles to the users, I have a form which has a combo box for listing all the users and a checked listbox for listing all the roles. To assign a role I select a user and check the role I want to assign. That Information is stored in the UserRoles table.The problem is when I load the form and select a user who as been assigned roles, I need those roles to be checked.The datasource for the checked listbox is the roles table. Any help will be highly appreciated.
Every day is a learning day
|
|
|
|
|
dear friends when the cursor enter the datagrid on the press of tab the cursor moves from one cell to another but i want the cursor to move from one control to another for eg
I have 3 control in the form 1st textbox 2nd datagrid n 3rd button. On the load of the form the cursor focus will be on textbox on the press of tab the cursor will move to datagrid on tab again the cursor will move to the next cell in the datagrid but i want the cursor to focus on the button.
How can i make it possible please help at your ealiest.
Thanks
|
|
|
|
|
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
End Function
This sub capture key messages before the form get's it. You can handle the key message manually from here and set the focus to the next control is keyData = Keys.Tab
Try this, it's how I manage to control where the focus is on my application and it works fine!
A programmer's life is good... or is it?? Ek dink nie so nie!
|
|
|
|
|
what the return value by using String$()??, example:
value = String$(255,32)
Thanks
angela
|
|
|
|
|
|
ok, thanks
angela
|
|
|
|
|
Please forgive me in advance for any ignorance I show. I've recently arrived in the world of .net from VB6. I have seen applications that can send a method to an object with a compiled executable. For example, the screen capture software called SnagIt has the ability to scroll a list box within any application window that is active. From my experience, the only way to accomplish such a task would be to send a call to a dll file but it would seem impossible to me that SnagIt (for example) would know the dll to hit for a software program that it never saw before. Somebody told me that this functionality is now possible because of the .net technology.
Does anybody have any code examples of a VB .net program that can send methods to a control within a complied executable?
Thanks,
Derek
|
|
|
|
|
You cannot send "methods" to other applications. You can't send methods to anything actually. What you're seeing is SnagIt sending Windows Win32 messages to those controls. You need to get the Window Handle of the control that you want to send messages to, then call the Win32 function SendMessage to send whatever messages you need to to that control.
This is nothing new. This is how Windows has worked for years. There's nothing in the .NET Framework that makes this any easier than it was 10 years ago.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
when I run the query
select @@ version on query analyzer (sql server 2000) i get
Microsoft SQL Server 2000 - 8.00.194 (Intel X86) Aug 6 2000 00:57:48 Copyright (c) 1988-2000 Microsoft Corporation Personal Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
it seems that service pack2 is already present in SQL but when i use DTS in my vb.net (visual studio.net 2003) code i get the following error
" 13 queryinterface for custom task DTS.customtask dll"
plz tell what is wrong and how to get rid of it?
|
|
|
|
|
i want to add more pages to printdocument component in .net2.0 windows application
please help me.(i want to connect to database and read records and for each record ,add new page to printdocument and print all together)
|
|
|
|
|
who can give me a example about the True DBReports 6.0 ?True DBReports 6.0?
初学者!Don't try it, just do it!
*Archibald*rever dragon!
|
|
|
|
|
How about asking ComponentOne for help. After all, that's what you paid the money for...support. Right?
Sorry, there's just too many cracks out there for their ActiveX components to believe that you paid the money for the component and are still asking this question.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hellow to all ,
i wrote a code that send's email , by useing the System.Web.Mail refernce the code is fine i don't recive errors , i send to a vaild address , and i config my IIS , but i don't recive anyemail ,
the funny thing that i run the same code befor 1 week and it worked fine !
and now it's not working ...\
anyhelp
-- modified at 7:54 Sunday 18th June, 2006
|
|
|
|
|
This question is a bit vague. Are you saying that you're running your own SMTP/POP3 mail servers at home? Most ISP's will NOT allow you to do this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i use this code , to send email ...
System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1"
mailmsg.Subject = "message subject"
mailmsg.Body = "message body"
mailmsg.From = "Complaints@Nateevexpress.com"
mailmsg.To = SendToEmails
mailmsg.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.Send(mailmsg)
some times it send emails fast and some times it take a long time to recive email ..\
thxx
|
|
|
|
|
You didn't answer my question...
What do you mean by "some times it take a long time to recive email"?? Are you running your own mail server at home? Are you expecting a message from an outside sender to be delivered to your mail server and you're not receiving it? Or are you saying that the mail message never leaves your mail server and arrives at its destination?
By the IP address in your code, I'll assume that your running a mail server on your local machine. Most ISP's will NOT allow this and will NOT forward messages sent from unauthorized mail servers.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hellow ,
i am only trying to send to outers emails ,
i am not trying to recive ,
and some times i recive this message could not access CDO.Message object ,
how can i do this ?
-- modified at 8:19 Tuesday 20th June, 2006
|
|
|
|
|
Change the SmtpServer IP Address to that of your ISP's SMTP server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i did is there anything else that i have to do ?
|
|
|
|
|
That depends on your ISP's SMTP server. But, generally, no, there isn't.
As for the CDO.Message object error, you might want to take a look at this[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi Friend,
can u show or email ur code to me!!
I also work on that!!
my address is "rahulshendurnikar@gmail.com"bbye
Rahul here
|
|
|
|
|
I add some picture to imagelist, the imagewidth and imageheight property has been set.
Then show them in a listview by icon view mode.
However, the picture is not clear.
How to do?
Thanks!
VB 6.0
|
|
|
|