|
If you make a menu and then click its properties, you have the option to make an image list. Do this and then add the images you want.
|
|
|
|
|
Hello!
I want to do a program that can tell me how many pages were printed in a time interval.
I mean that this program once started to count automatically the pages that were printed.
I have no ideea how to do this.
If is someone that can help me please tell me how to do this, or what documentation I have to read/learn.
Thank you!
|
|
|
|
|
Hi Guys,
I'm new to this thing.
1. does anyone know how to capture the image from a digicam and insert into a SQL server database using vb .net?
2. How to capture the signature file using a pentablet hardware using vb .net and save the image into SQL server?
Pls. Help.
|
|
|
|
|
1. does anyone know how to capture the image from a digicam and insert into a SQL server database using vb .net?
You might want to check out Windows Image Acquisition here[^]. No garantee that it will work with your camera though. It would appear that you have to check with the manufacturer of the camera to see what device drivers are available for it and any possible SDK's. You also might want to check for TWAIN compatibility. That should make your life much easier when using the WIA API's.
Once you have the images, it's not that hard to put them into an SQL database. This[^] article describes the process for use with an Access database, but the concepts apply to SQL databases as well.
2. How to capture the signature file using a pentablet hardware using vb .net and save the image into SQL server?
You're probably going to have to depend on the manufacturer for the SDK's and docs for this one. But, once again, when you get the image, the SQL part is easy.
RageInTheMachine9532
|
|
|
|
|
hallo
i try to make a columnstyle for usercontrols. the output for rows in noneditmode should be made by a bitblt of an invisible form. an that's my problem. if a form is not in the visible area of the screen, the bitblt returns an empty graphics. so my question:
is it posible to open a form on a virtual graphics device?
is it posible to get a bitblt from a form out of the visible area?
is there a better solution to do this?
thanks for your help
bernd
|
|
|
|
|
how to draw the charts (2D or3D)in VB.net.
i need complete in this regard...
Nothing ...........................................................
|
|
|
|
|
These companies sell .NET charting tools:
http://www.dotnetcharting.com/home.aspx
http://www.aspose.com/Products/Aspose.Chart/
http://www.softwarefx.co.uk/
http://www.dundas.com/charting/
http://www.gigasoft.com/
http://www.java4less.com/charts_dotnet.htm
http://www.steema.com/products/teechart/TeeChartNet.html
http://www.advsofteng.com/
http://www.componentone.com
http://www.quinn-curtis.com/
http://www.imagiotech.com/simplechart
http://www.tensegrity-software.com/en/components/demo/index.html
http://www.nevron.com/home.asp
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
Enumerators in .NET: See how to customise foreach loops with C#
|
|
|
|
|
:-Ohi,
I need help regarding the following application.
1. The application should have a button - "Launch PowerPoint" - clicking it
launches PP.
2. The application has a browse button to select only PP files. On clicking
it, it brings up a file selection dialog in which only the PP files are
enabled for selection. On selecting a file, it opens into PP.
3. The application has a "Play" button. On clicking this, the PP brings up
the slide show.
4. The application has a "Next" button. On clicking this, the PP proceeds to
the next slide in the presentation.
5. The application has a "Back" button. On clicking it, the PP goes back to
the previous slide.
6. The application has a edit field which takes only numbers. A check box
labeled "Custom Timing" enables or disables it. When enabled, the contents
of the check box is taken as the time separation between the slide changes -
if "Next" is not clicked by then. For e.g. if we enter 10 into the edit box
while the PP is playing the slide show, then if we do not press "Next" for
10 seconds, PP displays the next slide automatically. This you do by
changing the slide flow information of the presentation slides.
Thanks and Regards to all of u out there
Ramya.
|
|
|
|
|
ALL of this functionality is already built into PowerPoint. Why would you want to "reinvent the wheel"?
Basically, you'll be setting a reference to the Microsoft PowerPoint object Library and controlling it thru code. You can create your own Open dialog and pass that file on to the PowerPoint application object you create. Playing the slide show should be as simple as myPowerPointAppObject.Show(), or something to that effect. The only sticking point is going to be the timing box. You can implement the textbox that only takes numbers very easily, but your going to have to override the presentations built in timers to get the next slide to show up when you want.
Basically, all the functionality you described can be done as part of the presentation itself. All you do in PowerPoint is hit F5 to start the presentation. Click a mouse button or hit any key to show the next slide...
RageInTheMachine9532
|
|
|
|
|
I know this should be simple but I can't get it to work. Isn't there a way to pass command line arg's to a vb.net program without have to use the vb6 class?
I search help but I must haver it installed incorrectly becuase it keeps saying it is updating my recent changes?
Thanks
Tom
Tom
|
|
|
|
|
Sure. You can use the System.Environment class to get the command line arguments in a String array. Something like this should work for you:
Dim arguments As [String]() = System.Environment.GetCommandLineArgs()
The System.Environment class will also let you get the entire command line as a String, get at environment variables, get and set the exit code of your app, current directory, NETBIOS machine name, ...
Docs on the class can be found here[^] on MSDN.
RageInTheMachine9532
|
|
|
|
|
|
I want to create a TextBox Control that will change the back colour when it gets focus and then reset the back colour when it leaves focus
|
|
|
|
|
Use the GotFocus() and LostFocus() methods of the TextBox control to change the background color.
...
Private Sub TextBox1_GotFocus(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles TextBox1.GotFocus
TextBox1.BackColor = System.Drawing.Color.Blue
End Sub
Private Sub TextBox1_LostFocus(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles TextBox1.LostFocus
TextBox1.BackColor = System.Drawing.Color.White
End Sub
...
|
|
|
|
|
If you want this functionality in a custom control here are the steps you need to follow: (from the documentation on Inheriting from Existing Windows Form Controls)
1) Create a Windows Executable or a Windows Control Library project. (in the end you'll want to use a Windows Control Library, but for my test I just created the control in a Windows Executable project)
2) From the project menu select Add Inherited Control.
3) Select Custom Control in the Add New Item dialog box.
4) Go into the code for your new control and modify it so that you are inheriting from the specific control (in our case TextBox).
change
Public Class MyColorTextBox<br />
Inherits System.Windows.Form.Control
to
Public Class MyColorTextBox<br />
Inherits System.Windows.Form.Textbox
...
Now put in your code for the GotFocus() and LostFocus() events...as we did before.
For my test I then put a TextBox control on the form of my test application. Then I went into the system generated code and changed the declaration of the Textbox to a MyColorTextBox.
ie.
change
Me.TextBox1 = New Systems.Windows.Forms.TextBox
to
Me.TextBox1 = New WindowsApplication1.ColorTextBox
Now what you really want to do is wrap your new control into a Windows Control Library so that you can just draw a MyColorTextBox on any form. But I'm not going to go into all of that here. Hopefully this is a good start for you.
|
|
|
|
|
My code is this :
---------------------BEGINS----------------------
Private Sub TreeView1_BeforeLabelEdit(Cancel As Integer)
Dim Animals As Node
With TreeView1.Nodes
Set ndAnimals = .Add(, , , "Animals")
.Add ndAnimals, tvwChild, , "Dogs"
End With
---------------------ENDS----------------------
GOAL : To allow User to delete items such as "Dogs" from there system.
PROBLEMS : I dont understand what I need to do to make my code seek out
the files listed in the Tree
1) Dont know Operating Systems "drive letter" (where OS is installed)
2) Must create a backup if file is choosen from TreeView before deletion
|
|
|
|
|
I am new to ASP.NET and looking for help.
I am attempting to change the text on objects dropdowns, textbox, and so on.
I reviewed the information on executing string but I am having problems, below is the code and the error.
Could someone tell me what I am doing wrong.
Thank you.
Dim exeInstrt as string = "BUTN2.text = 'WORKS2'"
exeInstrt = Replace(exeInstrt,"'","''")
Execute(exeInstrt)
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30469: Reference to a non-shared member requires an object reference.
Source Error:
Line 19: Dim exeInstrt as string = "BUTN2.text = 'WORKS2'"
Line 20: exeInstrt = Replace(exeInstrt,"'","''")
Line 21: Execute(exeInstrt)
Line 22: ' Response.Write(exeInstrt & " ")
Line 23:
|
|
|
|
|
|
I need to do this dynamically it is for Languages in many ASP>NET pages and it is driven from a Data Base table.
Sorry for the lack of information
|
|
|
|
|
So you want to internationalize an ASP.NET application based on a database back end?
Why not just DataBind the Text property to a function that retrieves the text from your database? In your Page_Load, just call MyControl.DataBind()
eg:
<asp:Label id='MyControl' Text='<%# GetText('MyControl') %>'></asp:label>
and
Protected Function GetText(ControlName as String) as String
' I know what language the user wants, as I've
' probably stored it in the Session or something. Do whatever I need to
' do to get the text from the database or something. Then Return it.
End Function
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
This is good and we can use this elsewhere but all the Objects and all the Dim's that are messages and or error code messages are in this table for all languages of out applications. The code below is the code we will be using.
*****************************
sub bindLanguage()
Dim Strconn99 as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\AAA MS Access\POS.mdb;"
Dim Conn99 as new OLEDBConnection(strconn99)
Dim Rdr99 as OLEDBDatareader
Dim Cmd99 as OLEDBCommand
Dim strSQL99 as string
STRSQL99 = "SELECT LANG FROM POS_USRPROFL " & _
" WHERE USERID = '" & UserID & "' "
Cmd99=New OLEDBCommand(strSQL99,Conn99)
Conn99.Open()
Rdr99 = Cmd99.executereader() 'A
while Rdr99.read <> false
LanguageID = rdr99(0)
end while
rdr99.close
conn99.close
if LanguageID = "" then
else
STRSQL99 = "SELECT OBJNM, TXTVAL " & _
" FROM POS_LANGUAGE " & _
" WHERE PAGENM = 'POS_View_Log_Language' " & _
" AND LANGCD = '" & LanguageID & "' "
Cmd99=New OLEDBCommand(strSQL99,Conn99)
Conn99.Open()
Rdr99 = Cmd99.executereader() 'B
while Rdr99.read <> false
Dim exeInstrt as string = Rdr99(0) & " = '" & Rdr99(1) & "'"
exeInstrt = Replace(exeInstrt,"'","''")
' Execute(exeInstrt)
end while
rdr99.close
conn99.close()
end if
end sub
***********************************
What we are looking for is a way to execute a string dynamically.
This is the code that is not working --> Execute(exeInstrt) <--.
We can see other uses for executing a string dynamically.
Do you know of anyway this can be done?
|
|
|
|
|
Junk the idea of executing code like that - it isn't practical. If you want to get all the language strings in one go, store the resultset in a DataTable instead of looping through a DataReader, and then just pull them out of that using the DataBinding mechanism I described earlier for controls, and a straight function call for anything else. You'll need an OLEDBDataAdapter to Fill the DataTable.
A colleague has suggested that you can use the Eval statement if you use JScript.NET as your code behind language, but neither of us recommend this approach, as it's intended for ASP application migration.
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
OK Thank you for your time and I will look into this Thanks again.
|
|
|
|
|
|
I am developing a project in vb.NET and I am a beginner in this field. I required a code for simple chat server in which multiple clients can be connected (Please keep in mind that I am working on (file any where system). In this chat server the message should move btween client to client and client to the server. So please send me simple code.
Waqar Ahmad Nadeem
|
|
|
|