|
Don't cross post. See my reply in the ASP.NET forum
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hello all,
I need a small help in resolving an error
I want to create a folder with time and date
I am usingthe code,
MkDir ("c:\moved\PK3\" + str(Hour(SystemTime)) + "." + str(Minute(SystemTime)) + " " + str(Day(Systemdate)) + "_" + str(Month(Systemdate)) + "_" + str(Year(Systemdate)))
for creating a folder inside " c:\moved\PK3\ "
Most of the time its work fine. But some times an error will come as "Path/file access error".
Its not happen often . How to resolve this error?
Thanks and regrds
Denny
|
|
|
|
|
Post the full exception detail include the full message, stack trace and everything else.
From the info you've given my best guess is that you are trying to create a directory that already exists. (because you've already run the method once in this minute)
Simon
|
|
|
|
|
Ya Simon, U are right. whn i tried to run the code in minute less time only the the problem come..Thanks for your information ![Smile | :)](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Hi.
I'm a spanish developer, i need to implement a 2D Closet designer very similar to this: http://www.ikea.com/ms/es_ES/rooms_ideas/pax_step_by_step_08/index.html
The system must do this:
1. drag items with texture, from the menu to a design area.
2. drop in the area in function of the properties, for example:
- Object_A, can drop only in the base of the closet.
- The size of the Object_B is from point A to the point of collision in the near object
- We can put the Object_C, only from top to bottom (move restricted in x direction).
3. The user can edit the position and the size of any object in any time.
Did any of you know resources (tutorials, examples, templates, libraries, plug-ins...) that can help me to finish saving time?
I have a little problem of time.
Thank you.
Hi.
I'm a spanish developer, i need to implement a 2D Closet designer very similar to this: http://www.ikea.com/ms/es_ES/rooms_ideas/pax_step_by_step_08/index.html
The system must do this:
1. drag items with texture, from the menu to a design area.
2. drop in the area in function of the properties, for example:
- Object_A, can drop only in the base of the closet.
- The size of the Object_B is from point A to the point of collision in the near object
- We can put the Object_C, only from top to bottom (move restricted in x direction).
3. The user can edit the position and the size of any object in any time.
Did any of you know resources (tutorials, examples, templates, libraries, plug-ins...) that can help me to finish saving time?
I have a little problem of time.
Thank you.
|
|
|
|
|
Hi
When i try to break point (Debug) the vb.net program. then program not stop at the break point and when we move the cursor on break point it shows the following error "Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document"
i also change the configuration setting to debug mode. but success is so far.
Please suggest how i solve this problem
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
When you are debugging a program, the debugger (visual studio) needs to locate and load the matching symbol files (the .pdb files) for the specific version being debugged.
It's possible that the .pdb files for some reason are getting mismatched. Perhaps there are some old .pdb files hanging around from an old build. Try deleting everything in the bin and obj directories of every project. This will cause all the projects to rebuild fully and regenerate their .pdb files.
If this doesn't work, check the project settings to see if it's configured to generate symbol files. (Right click on the project->Properties->Build tab->Advanced->Output:Debug Info. Set to either full (for debug builds) or pdb only (for release builds).
Simon
|
|
|
|
|
If you are still unable to get that to work, you can right click on the breakpoint, choose locations, and enable the "allow code to be different" checkbox at the bottom. This will let you debug code when the deployed PDB/DLL doesnt match your debugger copy.
|
|
|
|
|
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.
|
|
|
|
|