Perform A Better Colorize Function?
May 20, 2009Duplicate of [URL] I am using this function in vb2005 to colorize a pixel, however when a user chooses a color >50 i begin to lose detail in the image,
[Code]...
Duplicate of [URL] I am using this function in vb2005 to colorize a pixel, however when a user chooses a color >50 i begin to lose detail in the image,
[Code]...
i wanted to ask how to make picturebox1 ,to which functions are already assigned, perform the same function as picturebox2 ,to which no functions are assigned.For example:I have already made picturebox1 and have assigned it alot of function like when play button is pressed then picturebox1.visible = true and when we press pause button picturebox1.visible = false. So now i decided to make a theme and have to remove the picturebox1 and want to allow the picturebox2 to havefunction of picturebox1.But when i disable the theme the function of picturebox1 should go back to picturebox1.
View 6 RepliesIn my project, there are 3 user controls; BasicContact, BasicDetail and ActionTime. They are in EditOrder.aspx page. There is "ReportDate" property (Date type) in BasicContact, RadioButtonList "rdl_Priority" (with integer value from "prio_id" field) in BasicDetail and "CheckDate" property in ActionTime. The ReportDate value is derived from txt_ReportDate and txt_ReportTime and CheckDate value is derived from txt_CheckDate and txt_CheckTime.
[Code]...
I am writing a small app to automatically connect my PC to the internet at a certain time and I am using rasdial.exe for it...
Private Sub SetIt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SetIt.Click
Dim windir As String = Environment.GetEnvironmentVariable("WINDIR")
Shell(windir & "system32
asdial.exe", AppWinStyle.NormalNoFocus)
End Sub
My question is how to make the shell function run at a specified time or after a certain interval?Also how to wake up my PC from hibernation using vb and winresume.exe
I was trying to increase the date value in a textbox automatically be 1 but wont let me do it. I have try to go through the Help but couldnot get something meaningful (or let say i do not get where to go).
View 2 Replieswhen I try to perform a cross thread call to fill a text box with messages with the following code I have no problems:
Delegate Sub SetTextCallback(ByVal [text] As String)
Public Sub SetStatusBox(ByVal [text] As String)
If Me.statusBox.InvokeRequired Then
[code]....
However, I am having problems when I use the following code to do a cross thread call to close a form. The form just hangs there.
Public Delegate Sub setFormClosing(ByVal ctrl As Control)
Private Sub closeForm(ByVal ctrl As Control)
If Me.InvokeRequired Then
[code]....
I'm new to VB and Windows programming but I do have a fair amount of experience programming at the command line level. A friend is having problems with his laptop. He does a lot of speaking engagements with Powerpoint. His laptop uses the F7 key to toggle the output to his external monitor port to the video projector. The F7 key has stopped doing this. Is there a way to create a Windows program that will do this without using a DOS window? He is not familiar with command line processing and needs something that he can double-click.
View 2 RepliesI know nothing of VB.NET, but if I were you
View 2 RepliesI am trying to colorize my datagridview in event cellformating (as written on msdn [URL])but it works so slowly. I have seeing before more difficult possibility to set color for cells thrue Class, but currently I forgot where it was and can't find. Or may be my datagridview is slow self. Is it exist a possibiity to make this element faster on VB.net?
View 3 Repliesis it possible to colorize the contents of a combo box ? Practically I'd like the various texts in the combo box to have various colors (i.e. the first element to be in green color , the second in red etc) . I know this might sound funny but if it is possible it would be fun to use it !
View 3 Repliesi have a textbox and 48 labels in 6 rows 8*6=48 i want when i type a number example 210456 to colorize in red the eual numbers in the labels
View 5 RepliesThe users instead of using Vertical ScrollBar in DataGrid1 they requested for NEXT and PREV buttons for paging the display on DataGrid. I have added the NEXT Button and PREV Button but doesn't know how to create the script to perform the function of NEXT Page and PREV Page.
View 2 RepliesI have used the following code to shutdown the system but it will perform logoff windows
Private Const EWX_LogOff = 0
Private Const EWX_SHUTDOWN = 1
Private Const EWX_REBOOT = 2
P[code].....
I want to make an numerical integration method with takes in an analytic function and integrate it over a specific interval. For the numerical integration procedure I want to use some procedures in nr.com. The problem is that these are programmed in C++ and they uses functors to pass a function to the integration method. How can I do this in VB 2010?
I want to initialize the function (i.e. set a=1,b=0 for function y(x)=a*x+b) and then pass the function to the integration method. Then when the integration method call the function it only calls the function with one parameter (i.e. x since a,b is already set)
What is the best way to do this in VB2010?I want to make a general integration method where I can pass any single valued function and integration limits.
I have just started using VB, and from what I have found so far it seems like the tools you have is
- to us a delegate for the function
- to use a lambda expression for the function
- send a pointer/adressOf
- to create a function class/structure and submit this to the function
As for now I am most inclined to create a function-class. But I am not really sure how.F.ex. I make different classes for each "uniqe function" I want to integrate, but how can I pass them to the integration function when I need to specify the argument type in the integration-function-call?This seems like a basic problem which applies to many Math operations, so I think it would be very useful to clarify this.
I'm trying to undersatnd the syntax of calling a funciton and it seem confusing when I'm using a web service in ASP.net. Maybe this question should be in an ASP forum, but it is a VB question. This simple web service allows you to type in your name and it response with an alert box with you name.
My question is, How can you call a function with 2 arguments when the function is only defined for one. I understand that the second argument is actually a method that handling the respons, but how can you interchange function arguments for methods and how do you know that there are methods for
Here's my call:
<script type="text/javascript">
function HelloWorld()
{
var yourName = $get('txtYourName').value;
[CODE]...
I've been reading the official DNS RFC [URL].. and looking at articles like this that explain how DNS query packets are structured [URL].. but I'm having a hard time trying to combine the two and actually get to a point where I know what to do
Basically I know that I need to use UDP to send the query and there is only one type of query I actually want to perform - an MX lookup. So I'm hoping that means I dont need to account for a lot of things that anyone creating a complete DNS Resolver would need to implement.
The only experience I have with network communication like this is with protocols that are text based (and use TCP, but I dont think that makes much difference here, if anything UDP should be easier). DNS however is binary based and I just cant figure out how I would know what bytes to send down the wire for a specific MX query..
I just downloaded Windows Search 4. Ive seen several spots that seem to hint that you can access it using .NET but I cant seem to be able to find anything.
View 3 RepliesI am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:
typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);
[code]....
how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.
Is there a way to set a variable in VB.NET in an IF statement. I would like to do the following:
[Code]...
Is there some way I can get the last "ElseIf" to work? I know I can re-write it to get it to work but is there some syntax that will make it work the way it is?
I have loop to create a column of button and now i wish to implemented the eventhandler into all the buttons but is not working. The iteration to create a column of button
[code]...
Most of the solutions were built using C# with silverlight and they seem to be working great. While i having problem by using VB.NET with silverlight
Having read this page, I can't believe that VB.Net has such a terrible performance when it comes to I/O.Is this still true today? How does the .Net Framework 2.0 perform in terms of I/O (that's the version I'm targeting)?
View 2 RepliesI know .Net and C# pretty well, but never even looked at VB.My problem is: our Win32 COM library is used by a number of clients, and we see that the number of failures is higher for those who use the library from VB (both VB and VB.NET) than for those who use C++, C# or Delphi. One thing about our library is that it is supposed to be used from one thread only - can some threading magic by VB be the cause of failures?
Clients tell us the do not create any extra threads on their own.
i have got a value in time span lets say: tsp1= 2 hour 5 minuts i have a another time span variable which contains value like: tsp2= 0 hours , 2 minuts?how can i divide tsp1 by tsp2 so than i can get exact number of times tsp2 divied the tsp1 and how much value is remaining.i am using vs2008?
View 3 RepliesI remember with InterSystems Cache code, you can use indirection to take a string and turn that into real executable code by preceding the string variable with "@". Can this be done in C#.NET or VB.NET code? So I'd like to have a method that would take an arguments array of strings (with one or multiple lines of code), and run that code, assuming it doesn't throw an exception of course. Where am I going with this? I'm trying to write a compiler within .NET code.
SET x="set a=3" XECUTE x ; sets the public variable a to 3
OR SET x="tag1" d @x ; do/call the public subroutine tag1
OR Set Y = "B",@Y = 6 ; sets public variable B = 6
I would like to know if its possible, and if so how, to use VB.NET to automate a keyboard shortcut. In the application i am developing, it receives email as a outlook addin and runs various checks and if those checks are positive it inserts information about the message into the database. But i want to be able to tell it that when the subject = "Keyword" to perform Ctrl+Alt+Up for, essentially a prank. However - I can't find anything on this anywhere, all i find is "Custom Short-cuts In VB.NET" and stuff about the KeyDown, KeyUp and KeyPress events.
View 1 RepliesI want to perform serial communication on selecting
.Net Framework2.0--->Visual Basic--->Device application
Presently I am using this code
Imports System.IO.Ports
Imports System.IO.Ports.Serialport
If Button1.Text Is "open port" then
SerialPort1.Open()
Button1.Text="close port"
Button2.Enabled=True
[Code] .....
But I am getting error as
"An unhandled exception of type System.InvalidOperationException occurred in System.dll
Additional Information: The basestream is only available when the port is open".
I tried this but it doesn't work
[code]...
I'm trying to build a four step process into a VB.NET GUI. The application transfers objects from AppA to AppB.
The application will follow these steps:
User constructs a general query in the GUI to identify which AppA objects to transfer. Model gets queryResults, datagrid in View lists each result User deselects items not to be transferred to AppB Model transfers selected items
how this should work. I've have the following functions implemented in the model, but don't know the MVC-way to tie them into my GUI:
Function getQueryResults(queryParams) as Items
Function transferItems(items)
Do I keep the Items data structure in the model?
How do I remove deselected from the Items data structure without building logic into the view?
Both of the above functions take time, how can I design thing to allow me to BackgroundWorker the model's functions?
What i want is i have a listbox in form a, which display data from database, for example it's displaying student ID.
after user double click on the id, form b will "show" and load that particular informations.so should i do that action in ListBox1_DoubleClick or form b_load?
i'm using a datagridview to display the records which are filled in my dataset. however i need to perform paging to display only selected numer of records (e.g: display only 10 records per page) and by using the buttons (like: FirstPage, NextPage, PreviousPage, Last Page) allow users to nevigate through the records. and possibily display the total number of records in my dataset (e.g: |< last <Next 10/100 previous> first >| ) this might sound very simple but i'm new in .net and so far whatever source code i found in google is moslty written in C# which i don't know.
View 4 Replies