|
Very nice tip astanton, didn't know that option was there.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Thanks,
I used it all the time for debugging JS in asp.net apps until I found FF/firebug and IE8.
|
|
|
|
|
Thanks to All dear
I try everything but Success is so far.....
So Please suggest what i do.... bcoz i try all the suggesstions and i also search on google and msdn but.... no success.
So plz gave me help!
Thanx
Khatri Mitesh
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Hi, How can I create a move next command in web development???
Dim DS As New DataSet
TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME")
This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one.
can you give me some solution?
Thanks a lot in advance.
|
|
|
|
|
1 - we have an ASP.NET forum
2 - please tell me you don't have a textbox called textbox1 ?
3 - ADO.NET returns a full record set. You can iterate over it any way you like, but there's no movenext, like there was in ADO.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ohh.. thanks for d reply. And about the textbox1 in the code. I'm just testing the code that I've used and didn't bother to change the ID of the textbox. But thanks for the advice though.
Happy Holiday .
|
|
|
|
|
Hi,
i had a crystal report.it takes time to load.so i would like to show the user that it is loading
so that like to know how can I create a progress bar that will show the progress of a loading crystal report in vb.net?
the time of to display progerss bar to just report opend when the report are open than the progres bar dosen't show please help
if have a source code so please give it please
modified on Wednesday, December 17, 2008 12:24 AM
|
|
|
|
|
You almost certainly cannot, as Crystal almost certainly doesn't tell you how long it wil ltake and provide progress indicators. You can do a progress bar that just spins tho, just load your report in another thread so your UI thread stays responsive.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I'm creating a new PowerCfg for Windows XP however, when I run the code it says that it can't change the values because I don't have the appropriate privileges when I do. What is wrong with my code? Thanks in advance.
Dim HVal3 As Byte() = New Byte() {&H01, &H00, &H00, &H00, &H02,&H00, &H00, &H00, &H01, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H02, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H2c, &H01, &H00, &H00, &H32, &H32, &H00, &H00, &H04, &H00, &H00, &H00, &H05, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H84, &H03, &H00, &H00, &H78, &H00, &H00, &H00, &H10, &H0e, &H00, &H00, &Hb4, &H00, &H00, &H00, &H00, &H01, &H64, &H64, &H64, &H64, &H00, &H00}
'Creates the SubKey for the Power Configuration
My.Computer.Registry.CreateSubKey("HEKY_USERS\.DEFAULT\Control Panel\PowerCfg\PowerPolicies\1000")
'Gives a description of the Configuration
My.Computer.Registry.SetValue("HEKY_USERS\.DEFAULT\Control Panel\PowerCfg\PowerPolicies\1000", "Description", "This scheme is...", Microsoft.Win32.RegistryValueKind.String)
'Names the Configuration
My.Computer.Registry.SetValue("HEKY_USERS\.DEFAULT\Control Panel\PowerCfg\PowerPolicies\1000", "Name", "Config1000", Microsoft.Win32.RegistryValueKind.String)
'Creates that actual policy
My.Computer.Registry.SetValue("HEKY_USERS\.DEFAULT\Control Panel\PowerCfg\PowerPolicies\1000", "Policies", HVal3, Microsoft.Win32.RegistryValueKind.Binary)
'Change the Current PowerCfg to the new one
My.Computer.Registry.SetValue("HEKY_USERS\.DEFAULT\Control Panel\PowerCfg", "CurrentPowerPolicy", "1000", Microsoft.Win32.RegistryValueKind.String)
modified 8-Sep-21 21:01pm.
|
|
|
|
|
may be system allowed only the admin user change the registry. It not leave or limited user. Check it once.
|
|
|
|
|
The account that is running the code is of the Administrators group and has the privileges to edit the Registry. Thanks though.
modified 8-Sep-21 21:01pm.
|
|
|
|
|
Brian Wernick wrote: The account that is running the code is of the Administrators group
According to the error you're getting, the account you're using, Administrators group member or no, doesn't have the permissions to modify those values. It's possible that those kes/values are locked by group policies setup by your LAN Admin.
|
|
|
|
|
Hi,
I am trying to convert the 24 bit image to 1 bit image.
How can I convert it.
I had tried the following code and obviously it didn't work.
Thank You.
<br />
Public Function ConvertTo1bpp(ByVal img As Bitmap) As Bitmap<br />
Dim rc As New Rectangle(0, 0, img.Width, img.Height)<br />
Dim bmpS As New Bitmap(img.Width, img.Height, PixelFormat.Format1bppIndexed)<br />
bmpS.SetResolution(img.HorizontalResolution, img.VerticalResolution)<br />
Dim bmpDataSet As BitmapData = bmpS.LockBits(rc, ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed)<br />
Dim bmpDataSource As BitmapData = img.LockBits(rc, ImageLockMode.ReadOnly, img.PixelFormat)<br />
bmpDataSource.PixelFormat = PixelFormat.Format1bppIndexed<br />
img.UnlockBits(bmpDataSource)<br />
<br />
Return img<br />
End Function<br />
|
|
|
|
|
This isn't going to work because how does the code know which pixels to turn on and which to turn off?? 1bpp only leaves white and black as your colors, so you need to come up with a cut off point in the original image to make the conversion mean anything. In other words, if the brightness of a color is below a certain threashold, the target pixel should be black, otherwise it's white. This code will not do that for you.
3 seconds worth of Google came up with this[^] C# source to do the conversion your talking about.
|
|
|
|
|
Thank You Dave.
I had looked at that link and already using it.
There is a problem so I had to post this message here.
I should be more specified on my question.
Here is what i want..
I have color Jpg image file and I converted it to black and white tiff image using colorMatrix.
Everything came out good but the tiff image is in 24 bit color depth.
I need it to 1 bit color depth and should not change the look of tiff image.
I also found out if the tiff image is in floyd-steinberg and it can have grayscal with 1pbb.
But I just dont 'know how to do it.
Here what i did.
1) convert the jpg to GrayScale() using colorMatrix
2) then use the result image which is black and white with 24 bpp and convert it to 1bpp using the example on this link http://www.wischik.com/lu/programmer/1bpp.html[^]
but the image turn all black and white .. no more shadow.. depth like I have before.
|
|
|
|
|
pnpfriend wrote: I need it to 1 bit color depth and should not change the look of tiff image.
I also found out if the tiff image is in floyd-steinberg and it can have grayscal with 1pbb.
No, that is not true. A 1 bpp image has two colors, black and white. This is greyscale only in that those two colors are the two extremes of the greyscale range. A greyscale image is 8bpp.
pnpfriend wrote: but the image turn all black and white .. no more shadow.. depth like I have before.
That is exactly what converting to 1bpp will do. EVERY time.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
pnpfriend wrote: no more shadow.. depth like I have before.
Unless you use some kind of dithering algorithm to get the effect you want, you can't get "shadows" in a single bpp image.
|
|
|
|
|
You can actually create a new 1bit bitmap and draw your 24bit image onto it, if you want to see what sort of conversion you get by default. However, Dave has given you a link if you wanted to control the threshold yourself.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I wanted to make a little VB.Net app to detect the caller phone number
(I'm talking about a windows application)
any way I tried some of articles in this site it helped a little bit
,but the problem that the Caller Phone Number doesn't show up
I thought there is something missing the code....
so I tried a "Demo" of an application just to test it,
and what happed to my code happed to that app
Caller Phone Number doesn't show up
ok here is the deal
I heard from some one on the internet
(I'm so so so sorry that I can't find him any more)
I heard that not all "Modems" are able to detect the caller phone number
so ......
if any one know something about this please tell me
if some one knows what kind of modem I should use (what type and its company)
thanks in advance
|
|
|
|
|
That is correct: not all modems have CallerID functionality.
A Google search revealed this page[^] which seems to contain reviews of modems that do support Caller ID.
Good luck.
|
|
|
|
|
Hi Everyone:
I have two questions:
1. I saw a trick using the Matrix class that will shift the Y-axis origin (0,0) from the top left hand corner to the bottom left hand corner. Can anyone provide the code for this? I can’t remember where I first saw it.
2. After I reset the Origins I would like to draw a grid pattern on the form. I would like the grid pattern to be adjustable. Does anyone know where I can find an example of this for VB.NET?
Thanks in advance,
Quecumber256
|
|
|
|
|
1. The origin is not moved on the form. It's moved (mathematically) when your object is being drawn. The transformation alters the coordinates of the drawn object, not the coordinates of the drawing surface.
You can see an example of this here[^]. This particular example just moves the origin down and to the right 50 pixels. Look into the other methods exposed by the Transform class to move and orient the origin how you want.
2. This is a simple loop, For...Step...Next . The Step value is your "adjustibility". For exmaple, drawing line every other pixel would be:
For I As Integer = 0 to 500 Step 2
....
Next
|
|
|
|
|
Hi Dave,
Thanks for the response. While I was waiting on an answer I continued to search the web and found the code using a Matrix to swap the y-axis to the bottom-left corner on the screen.
Unfortunately, solving this problem lead directly into another. The new problem is:
I'm playing around with a GDI+ application using VB.NET. I have written a small Windows application that will allow me to place a rectangle at the screen's origin (top-left corner of the screen). After the rectangle is placed I can point to it with my mouse and by holding down the left button move the selected rectangle elsewhere on the screen.
This only works when the Y-Axis' location is at the top-left hand corner. I used a matrix transformation to reset the Y-Axis' origin to the bottom left hand corner. This time when I draw a rectangle it is placed at the bottom-left hand corner, but when I place my mouse on this rectangle it will not highlight saying this rectangle has been selected.
The strange thing is: If I move the mouse back to the top-left corner where the default origin is the rectangle at the botton-left corner will highlight and when I press the left mouse button and move the mouse down the selected rectangle moves up. This is not how I want it to work. I have the project if you need it to see exactly want is happening.
I wrote this for another discussion group, but I thought you would be interested in the problem that cropped up when I reset the origin to the bottom-left corner of the screen.
Thanks,
Quecumber256
|
|
|
|
|
Like I said before, the transformation applies ONLY to the DRAWING of that particular object. It does NOT apply to mouse coordinates, nor does it apply to "hit testing" mouse coordinates in objects, nor does it apply to locating controls on the screen. As far as Windows is concerned, the object is right where it's supposed to be, in the top-left corner of the screen.
|
|
|
|
|
|