|
Hi All:
I want to make a dll by VB. It is dll and not ActiveXDLL.
can you help me? Thanks a lot
chnman
modified on Monday, January 5, 2009 9:18 AM
|
|
|
|
|
Start a Class Library, or Windows Control Library, or Web Control Library, or an Empty project and set it up yourself.
Your question, as asked, doesn't provide enough detail as to what you want to do with this .DLL.
|
|
|
|
|
The kind of dll your looking are called 'classic Dlls' , I dont know the way to build a 'classic Dlls' in VB , but they can be use in VB , to build them you may require VC++
-Regards
Bharat Jain
Phisys Software Solutions Pvt. Ltd.
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Hi there.
I currently have an application where a user can select items from a combo box and then display the results in a datagrid view depending on what is selected in the combo box. This is fine because the user is selcting an exact match from what is in the sql connection but i need the user to be able to select a range from a different combo box, ie - if a field/row in the datagrid is 'Total' then i would want the user to be able to filter out all totals between '100 and 200' or '201 - 300' etc.
I have tried using a case statement but am unsure if this is the right way of going about it.
|
|
|
|
|
Not sure how you have your data setup in the app. If you have a data table, use a dataview to filter the data as needed. The dataview.RowFilter is the where clause in a select statement.
So, just like you would do in SQL, your filter would be something like
"Totals >= 100 and Totals <= 200"
or
"Totals BETWEEN 100 and 200"
I took the example below from the MSDN help which is very descriptive on the dataview.
Private Sub MakeDataView()
Dim view As DataView = New DataView
With view
.Table = DataSet1.Tables("Suppliers")
.AllowDelete = True
.AllowEdit = True
.AllowNew = True
.RowFilter = "City = 'Berlin'"
.RowStateFilter = DataViewRowState.ModifiedCurrent
.Sort = "CompanyName DESC"
End With
' Simple-bind to a TextBox control
Text1.DataBindings.Add("Text", view, "CompanyName")
End Sub
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
ok
|
|
|
|
|
hi guys
i am drawing an rectanle around the the child nodes of my tree control but once i select or dselect its node the rectangele gets remove from its right and left sides ..
is there any solution to that problem ?
thanks in advance
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
How and when are you drawing the rectangle? If you are not using the Paint event, that's your problem.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i m drawing it in the paint event of the Form
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Well, you're not keeping track of something because your painting code isn't redrawing the rectange you painted. Without seeing your Paint event code, it's pretty much impossible tell you where you went wrong.
|
|
|
|
|
not very complex
i m just doing following thing in the Forms' Paint event .
Sub DrawRect()
Dim g As Graphics = Me.TreeView1.CreateGraphics()
g.DrawRectangle(New Pen(Brushes.Blue, 5), 100, 800, 180, 110)
End Sub
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
This is entirely wrong. You don't put this in the Form's Paint event and you don't create Graphics object for other controls. This code should have been put under the Paint event for the TreeView control. Create your own TreeView control, inheriting from the standard TreeView, and put your painting code in that control's Paint event.
|
|
|
|
|
run-time error 2147467259(80004005)
|
|
|
|
|
|
Good. It means something is wrong. Please don't give too much information, or someone will be able to help you.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Overly descriptive Aye.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I am getting session out problem in my application where i am using following code in web.config file
<trace> enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<authentication mode="Forms">
<forms name="appNameAuth" path="/" loginurl="/TTMS/TTMSLogin.aspx" protection="All" timeout="60">
<credentials passwordformat="Clear">
<sessionstate mode="InProc" statenetworktimeout="10000" sqlcommandtimeout="500" regenerateexpiredsessionid="true " stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="10000">
<httpruntime maxrequestlength="80192">
and on cs side of loginpage code is:
FormsAuthentication.RedirectFromLoginPage(txtUser.Text,true);//on click of submit form
but this code does not resolve my problem
|
|
|
|
|
First, this question belongs in the ASP.NET forum. Next, when you post code snippets containing tags, "<tag></tag>", you have to check the little box that says "Ignore HTML tags in this message" before you click "Post Message".
And lastly, this is the VB.NET Forum, not C#.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007, 2008
modified on Monday, January 5, 2009 8:15 AM
|
|
|
|
|
Hi Dave
Thanx for your suggesions,actually i am using this forum first time so did these kind of mistakes,i have send this code in c# but i m getting session out problem for vb.net applications also,do you have any solution
|
|
|
|
|
Ask in the ASP.NET Forum. What you're asking has nothing to do with VB.NET or C#.
|
|
|
|
|
Hi,
I am beginner in VB programming. I would like to write a program (using Visual Basic 2008 Express edition) to retrieve emails from a POP3 email account (such as yahoo mail).
Can anyone advise me how to go about it? It will be very helpful to me if you can give me sample code.
Thank you very much for your help.
|
|
|
|
|
Could you pls send code which you r using for sending mail
|
|
|
|
|
You can use the following code to send a mail , it use an smtp server,please enter proper email id as marked in the comments , i have tested it from a gmail account
Dim smtpClient As New Net.Mail.SmtpClient()
Dim mail As New Net.Mail.MailMessage()
'create the message to be sent
mail.To.Add("test@test.com") ' Enter the Email of the person you want to send the mail to
mail.From = New Net.Mail.MailAddress("username@gmail.com", "Your Display Name") ' Enter Your email address
mail.Subject = "Test Message"
mail.Body = "This is a test message"
' Prepare the client to send the above message
smtpClient.Host = "smtp.gmail.com"
smtpClient.EnableSsl = True
smtpClient.Port = 587
smtpClient.Credentials = New Net.NetworkCredential("username@gmail.com", "password") 'Enter username and password of the account , you want to use to send mail
smtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtpClient.Send(mail)
<pre>
Hope it is helpful
-Regards
Bharat Jain
Phisys Software Solutions Pvt. Ltd.
bharat.jain.nagpur@gmail.com
|
|
|
|
|
helen00 wrote: I am beginner in VB programming.
One of the first things all beginneers should learn is how to research a problem. Try google, there are loads of examples to be had.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi All,
Has anybody been successful with drag and drop or pasting to a webbrowser control in VS 9.0 VB.net? All examples I have come across refer to ‘ExecWB’ which unfortunatly is not a member of System.windows.forms.webbrowser in VB.Net 9.0. There is a property ‘AllowWebBrowserDrop’ but how I trap the event when DragDrop, DragEnter, ect… events for the control don’t exist? I am not sure where to trap the drop event. I would gladly give you my firstborn for any relevant information on the subject. Thanks
Stu
|
|
|
|