|
str=insert into tbl(datermdate) values("& format("{hh:MM:ss}",textbox1.text)
dim da =new sqladapter(str,cn)
da.fill(ds,"tbl")
I am trying to insert a value into table tbl from textbox where I am giving only the time in the format 2:4:34.But it is taking as datetime value and not as time.Kindly advise
|
|
|
|
|
Hey,
This is my first post here so lemmy start with thanks to all the contributors here. I have learned allot from the code hosted here.
My problem is with system.web.mail.
When I try to import system.web.mail with (Imports System.Web.Mail) I get squiglys telling me that "namespace or type (mail) for imports system.web.mail cannot be found.
I have searched both here and on msdn and found examples useing..
Imports System
Imports System.Web.Mail
and have try to copy/paiste them into visual studio as both windows application and console application and always get the error.
Is it that my library is incomplete or has this namespace been replaced by something else or what?
Thanks in advance for you're help
EDIT: If it helps anyone to see what I meen here is a link to the namespace info on msdn.
Also I should have mentioned that I tried calling smtpMail.send useing the full path (System.Web.Mail.smtpMail.send() ) and it still sais it doesn't exist.
2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
|
|
|
|
|
Add a reference to System.Web in your project
Charlie
if(!curlies){ return; }
|
|
|
|
|
I can import system.web and can also reference it from inside other classes etc. the squigly lines show up when I add .mail or when I try to use anything or these dudes (MailAttachment MailFormat MailPriority
MailEncoding MailMessage SmtpMail )
I admit I am a vb.net newb but I have checked and rechecked my syntax and spelling etc even going as far as to copy and paste example code from msdn and even downloaded some project files useing the class and always get the squiggly lines and compile time errors.
Its like it isn't there. Is there a way to download the full library? I'm guessing my library is incomplete or corrupted. I just installed a fresh visual studio .net enterprise archetect from an unopened retail box. (still in the plastic)
For example I can start a new visual basic - console application and paiste the code directly from this msdn page and get the same problem.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmailsmtpmailclasstopic.asp
2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
|
|
|
|
|
The Imports keyword is only a coding shortcut. For example, adding Imports System.Windows.Forms at the top of your source code file allows you to type Dim myForm as New Form instead of Dim myForm as new System.Windows.Forms.Form
If you want to use a class in an assembly that's not referenced by default, you have to add that reference manually. To do so, right click on the References folder in your project (in the Solution Explorer) and click Add Reference. Scroll down until you find the one you're looking for (System.Web in this case), double-click it and click OK. Now you can use any of the classes defined in that assembly in your code.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Thank you very much.
I actualy found my solution yesterday BUT that is exactly what I wasn't doing and you are the only person who responded and tried to help so I DO apriciate the help.
This was my first application and as part of my course I was to write something that I felt was usefull while small and make myself find everything I needed to know to get it done. Not the usualy first exercise in a course but very usefull. I lurned allot of the basics and this way they will stick, since I spent so much time finding each.
Again Thanks,
Harley
2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
|
|
|
|
|
Hi
I'm just testing differents sql command into the code. But just worked the select, update, delete and insert. But other command like fetch, if..then..else, etc, not works..
Why this happend.. Only works with standards commands?...
Johnny Lizardo
|
|
|
|
|
Hi,
I'm trying to get notified by application when the folder is added with new file.
The problem is when the file being added to folder is very big....94 MB. And it takes > 15 minutes to complete the file transfer/copy. And I want only be notified by the application when the file transfer is completed.
Currently I'm just able to get notified whenever the file is added to the folder, even if the file transfer/copy process still not completed
Is there any tips to overcome this problem?
Thank you very much for the help and tips.
regards.
|
|
|
|
|
i'm using the cTextBoxBackground class from vbAccelerator
http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Tile_a_Bitmap_Into_a_TextBox/article.asp
and trying to adapt it to change the background of a form (which i don't own), and it almost works.
If you remove the lines which refer to the hWnd of the parent window and use the class "as is" to subclass a form it works except the labels are not drawn onto the DC, nor are shapes and lines etc.
these controls don't seems to get painted onto the DC when you send the WM_PRINT message.
does anyone know of a way around this.
Thank you
mdb
|
|
|
|
|
Hi
I Already follow the instructions to configure the .NET environment. But when I "build" the setup project. The files don't change anything about validate or installing the DotnetFx or MDAC.
Please.. help me on that.
Johnny Lizardo
Johnny Lizardo
|
|
|
|
|
I have a tab control in my winform and i have to display a listview with the same set of data loaded in all the tab pages.Do i have to use inheritance or call a procedure?
|
|
|
|
|
How do i create a dll in VB.NET?
|
|
|
|
|
|
How can I insert a uninstall programs to my solution?
I think that is the only step further i have to complete.. The uninstall issue.
anybody can help me?
Johnny Lizardo
|
|
|
|
|
File-->New-->Project...
Select "Setup and Deployment Projects" in the tree on the left
Select "Setup Project" on the right
Give it a name and then add it to the solution.
This will provide a setup program that can also be used to uninstal your application via Add/Remove Programs.
--Colin Mackay--
When Monty Python meets Star Trek: WHAT is your name? Captain Jean-Luc Picard. WHAT is your quest? I seek the Holy Grail. WHAT is the average velocity of a Bird of Prey? Romulan or Klingon? I ... I don't know AAAAAHHHHH!
|
|
|
|
|
i m currently working on a program which is able to read a text file. however, i have encountered this problem while extracting information from the text.
first i have to reach a keyword found in the text (which i have successfully implemented), then i have to skip a few lines after the keyword to extract the useful information. i have no idea on how to skip the lines while the program is reading the information from the file. i think it is not wise to load everything into the program, which takes up memory, and discard. could anyone suggest on how to ignore the useless information?
Thanks.
Esther
|
|
|
|
|
Simple. Just read the line, or lines, you want to skip and don't do anything with them. You'll probably want to read the exact number of lines you want to skip inside a for/next loop.
Dim strDiscard as String
For x = 1 to n
strDiscard = ReadLine(filepointer) ' or whatever your using to read a line from the file
Next
|
|
|
|
|
thanks... i will try this out..
but i have found another command called 'SkipLine', does it help?
|
|
|
|
|
1. Dotnetfx.exe can be redistributed with my setup?. How..
2. The MDAC update also be redistributed with my setup?. How ...
Please let me know.. I need help on that.
As Soon As Possible.
thank
Johnny
Johnny Lizardo
|
|
|
|
|
There's a BootStrapper Addin for Visual Studio.Net
Here's more info :
http://www.gotdotnet.com/community/workspaces/workspace.aspx?ID=2F8F0A23-F529-4158-8E0A-D187D16F41F1
|
|
|
|
|
Thank men. That's works.
Johnny Lizardo
|
|
|
|
|
Hi all
i am working on VB.Net project. In the project we have to draw a regression line on a graph. First the graph is plotted against the two axis and after setting all the points the regressiopn line is to be drawn..
Also the equation for the regression line and the equation of the line are to be found
Please let me know the solution for the problem as soon as possible with code if possible
regards
ManisH
|
|
|
|
|
Boy! I wish I paid attention in maths class instead of reading Visual Basic Programmer's Journal! (yeh right!)
Can any kind soul give me a function which returns a Point object, where the point is a set number of degrees around a circle which fits inside a given rectangle. I know that's an odd way to describe it!
Dim lRect As Rectangle = new Rectangle(0,0,100,100)
Dim lPoint1 As Point = PointOnCircle(lRect,45)
Dim lPoint2 As Point = PointOnCircle(lRect,135)
The above two calls will acquire Points where the X,Y coordinates are at 45 degrees around the circle (which fits in a rectangle of 100,100) and 135 degrees respectively.
The bit that gets me is the X= some sin/cos nonsense and Y= the other bit (and those bl**dy radians are involved aren't they). Maybe I did keep one eye on the blackboard.
I would be prepared to have your babies if you can pull this one off for me (which I am just sure you are dying to know how I will manage that!).
Thanks!
Ps: Sorry for all the !!! in here, well it is New Year and all that!! oops! damn! can't stop it!
Nursey
|
|
|
|
|
Jeez you guys must be peeing laughing at my math abilities 8-)
I found this website for nuclear physics (OK its an explanation of trig for 2 year olds)
http://www.updatestage.com/previous/991001.html
If anybody would like the code for building a polygon of any number of sides that fits in a specified box/circle, then let me know.
Nursey
|
|
|
|
|
Hi
please Tell me the code about how exactly i used the pathgradiant brush to draw a sphere
Thanks.
Eman Ali Moughal
Senior Software Engineer
Soon Soft (pvt) Ltd
www.soonsoft.com
|
|
|
|