|
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
|
|
|
|
|
Eman,
I just hacked this code out of my own C# project, hoping thatit will be of use to you. It may help clarify a few quirky things about PathGradientBrush. I think, by altering the focus parameter of SetTriangle... or SetSigma... in the code below, that you may be able to present a highlite at a position in a circle which approximates the look of a sphere. I honestly dont think you will get anything high quality though without breaking the sphere into triangles and shading each one appropriately, and that's way beyond me.
Another kludge you might use is to take a bitmap of a sphere, drawn in a 3D package or using Photopaint etc., and scaling it.
Well, for what its worth, here is my code, you will have to hack out my variables and try follow what's going on quite closely.
This method returns a brush that you can use on Graphics.FillPath.
prPath is a GraphicsPath
prFlip just flips a start and end color around
prBrushType is my enumeration which controls whether blends or triangle or bell type fills
public PathGradientBrush CreatePathBrush(GraphicsPath prPath)
{
Color lStart, lEnd; // Start and end color
PathGradientBrush lBrush; // Brush to assign to
lStart = Your Start Color;
lEnd = Your End Color;
// Create the linear brush
lBrush = new PathGradientBrush(prPath);
lBrush.CenterColor = lEnd;
// Create an array of colors which are the end color at each point
Color []lColors = new Color[prPath.PointCount];
for(int lCount = 0 ; lCount < prPath.PointCount ; lCount ++)
{
lColors[lCount] = lStart;
}
lBrush.SurroundColors = lColors;
// Experiment with the 0.5F figure, it should change the highlight on the shape you fill
// Of course you will want to fill a circle or ellipse would be better still.
lBrush.SetSigmaBellShape(0.5F);
return lBrush;
}
---------------
Hope this makes some kind of sense to you.
Nursey
|
|
|
|
|
Hi cnurse
thanks for the help buddy.
i have now my concept bcome bit improve about the path gradiant brush.
Thanks for your help.
|
|
|
|
|
You're very welcome. I'm glad I can offer back to a system I have gained so much from.
By the way. Watch out for my Theme system which will be released in the next few weeks. It lets you edit and manage gradients and will show you lots of ways to use them.
Regards,
Nursey
|
|
|
|
|
How can i make connection between optionbuttons and recordsets?
|
|
|
|
|
|
Hi..
I have created 3 different application.out of 3 ,one is taking care of "sales automation",second is "sales account" and last application is taking care of all MASTERS .so i want implement this in one deployment package.for example in oreder to implement in client side ,i would require a check box along with all this application name,where i can select which app is require and which is not require.so it would be easier for me to select app name accroding to users requirement.ex:an administartor might require all the application where as a normal user require only "Sales Automation" part,and a account person might require "Sales Account" part.In order to differentiate and implement i require all the application in a single deployment package other than having different 3 deployment package.
If any one know this ,please help me
Thanxs in Advance
|
|
|
|
|
I am just beginning serialization on .NET, having dealt with it many times before with other systems. I have been told serialization using the XML serializer is simple, and the documentation makes it appear so. But, do I have to make all my properties public? I create accessors for all properties, as its easier to debug things that way, and some of my properties are read-only. I can't go making my internal member variables public, that would be crazy, so what do you do about it?
(By the way, if you don't think it is crazy to make your member variables public, then how would you do range checking and protect yourself against corrupted data on de-serialization?)
I'm about to start writing my own serialization code for each class, so a quick guide would be really appreciated.
I don't care if its XML or binary format, I guess there's really not much difference from a coding point of view anyway.
Many thanks, and a Happy New Year to all.
Nursey
|
|
|
|
|
Can anyone tell me either API calls or VB.NET code to do the follow steps or items.
1. Start Windows Explorer. (ProcID = Shell("C:\Winnt\explorer.exe))
2. Size Window Explorer and set it's position.
3. Set Initial Folder.
4. Set Filter on files shown. (Not a must but would be nice.)
5. Recieve Event or know they have closed Window explorer with my ProcID.
Any assistance would be great.
Thanks
Don
Don Hamilton
VantageMed Corporation - Kansas City
|
|
|
|