|
hi dear programmers
what is code for adding this menu see this link please:
http://www.zizi.ir/reg/image.php?id=9947all copy.JPG
|
|
|
|
|
This involves writing a Photoshop plugin. Your best bet for information concerning this would be Adobe's Photoshop Developer Center[^]. You'll ned to download the SDK for the version of PS you want to develop against.
I have no samples or no idea where to start because I've never had any cause to do Photoshop development.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi
i have downloaded sdk but i need a code for this project.
any body can help me?
|
|
|
|
|
Since what you're asking is so specific to Photoshop, how about going back to Adobe's developer center and then finding the link to their community boards and asking there? Like I said, that is going to be the best source of information for what you're doing. There are VERY few people who do any kind of Photoshop development around here. The chances of any of them seeing your question are very remote. Your best chance of getting any information is going to be in a place that specializes in Photoshop development. CodeProject isn't that place. If you've got specific questions about Visual Basic.NET, then this is the place to come.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi to everybody,
I'ld like to [de]register components in the Visual Studio.NET toolbox (both 1.1 and 2.0, if possible) by code , not by hand .
I've developed a few assemblies containing some user-controls I use in my applications (well, actually most of them are stol... ehr... copied from good ideas at CodeProject , but that's another story! ); every time I recompile the assemblies, I have to manually open a form, open the MyIncrediblyWonderfulAssemblies tab, remove old components and add new ones: more than tedious, it's prone to my personal memory leaks .
Therefore I'ld like to write a "little program" OrElse "batch script" to do this, but don't have a hint about where to start from; can someone help me?
In doubt, I thank in advance...
Marco "El Turro" Turrini
|
|
|
|
|
Hi,
How can i detect when a swappable device (like a MP3 player or digicam) is plugged in?
And how can i get it's drive letter?
I am using VB.NET.
Anyone has some ideas? (sample code pls?)
--Zaegra--
|
|
|
|
|
Trapping windows messages[^] should give you what you're looking for. You can also Google for "vb.net detect device" for more examples and discussions.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am not using C#, and i don't know how to implement this, isn't there a way to convert this to basic language.. i really need to implement this part because it's the heart of my program..using Visual Studio 2003 Professional and creating a Visual Basic windows application...
--Zaegra--
|
|
|
|
|
C# is pretty easy to convert to Visual Basic.NET. All you have to do is look at any of the MSDN documentation for any class and you'll find thousands of "Rosetta Stones" showing code samples in both languages. Looking at just a few of those small examples should give you the basis for converting 95% of the C# code you see.
Another alternative is to use one of the online conversion tools, like this[^] one.
But, the bottom line is you have to study some examples of implementing something like this and write your own code, so when it breaks, you know how it works and can fix it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
running VS ( Vb.Net ) 2005
with a lot of help from various people ive managed to cobble together a very nifty vbclass. Basicly the app im writing, logs a user into a SQl server. There is a table which controls what areas of the software the user can access, once logged in they are redirected to a blank form ( mainOptions ). MainOptions call a class which adds a button to the form for every area thay are allowed in. I can using a clickhandler in the class redirect the user to the desired area ( form ) hovever i carnt close or hide the mainOptions form ......
as the class is controlling the ClickHandler and the redirect, im tried ther following
select case sender
case Area1
Dim nform as new Area1_Form
**
mainOptions.hide
**
Area1_form . showdialog
end select
ive also tried
mainOptions.close
ive even tried calling a function back on the mainOptions form to close but it wont close down any idea's
I really do need help..... all this computer stuff is way over my head !!
|
|
|
|
|
There isn't enough information about the code to tell you definitively, but closing a form from some class isn't a good idea unless the class that's closing the form is the one that opened it in the first place. Also, you cannot close the startup form of your project. If you do, the entire application closes with it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
First of all, let me see if I understood exactly what you meant:
You have a form, which creates a class which in turns allows areas to the current user; the form draws a button for each allowed area; when the user clicks a button on the form, there's a method which opens the desired form.
But - if I understood correctly - the current user clicks a button on the mainOptions form: this event has been redirected to a method of the class, but the button is on the mainOption form.
What I'ld do is:
- Separate logic from interface: the class should only determine if an area is allowed or not
- Don't redirect the clickhandler to the class method
- Use the standard clickhandler on the form: in his body, I'ld write few lines of code: define and create the appropriate areaForm, adding an handler for her Close event, show it, minimize the mainOption form (option B: hide it)
- in the areaForm Close event (caveat: the areaForm_Closed event in the mainOption form), I'ld maximize the mainOptions (option B: close it)
(just for clarity's sake, I baptised the mainOption form as male and the areaForm as female)
And now a final, ironical touch: all my considerations are theoretical, I haven't tried them , so there may be some buggy detail ; but the general idea should work .
Bye
Marco "El Turro" Turrini
|
|
|
|
|
Hi All,
Can anyone kindly tell me what is the meaning of below declarations:
<StructLayout(LayoutKind.Sequential)> _
Public Structure SP_DEVICE_INTERFACE_DETAIL_DATA
Dim cbSize As Integer
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=79)>
Dim DevicePath() As Byte
End Structure
And
Public Structure SP_DEVICE_INTERFACE_DETAIL_DATA
Dim cbSize As Integer
Dim DevicePath() As Byte
End Structure
|
|
|
|
|
The top one tells the compiler how the elements in the structure should be arranged in memory. The MarshalAs attribute tells the compiler how the DevicePath array should be stored and marshalled to unmanaged code, if necessary.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
One more question i had,what is the meaning og managed code and unmanaged code.
|
|
|
|
|
Sorry,what is the meaning of managed code and unmanaged code.
|
|
|
|
|
Hi All,
Can anyone please tell me whats the meaning of function definition.
Function Definition:
Private Sub LoadArray(ByVal ParamArray CRCBytes() As Object)
Dim i As Short
For i = 0 To UBound(CRCBytes)
m_byteCRC8(i) = CRCBytes(i)
Next
End Sub
Function Call:
Call LoadArray(&H0S, &H9BS, &HADS, &H36S, &HC1S, &H5AS, &H6CS, &HF7S, &H19S, &H82S, &HB4S, &H2FS, &HD8S, &H43S, &H75S, &HEES, &H32S, &HA9S, &H9FS, &H4S, &HF3S, &H68S, &H5ES, &HC5S, &H2BS, &HB0S, &H86S, &H1DS, &HEAS, &H71S, &H47S, &HDCS, &H64S, &HFFS, &HC9S, &H52S, &HA5S, &H3ES, &H8S, &H93S, &H7DS, &HE6S, &HD0S, &H4BS, &HBCS, &H27S, &H11S, &H8AS, &H56S, &HCDS, &HFBS, &H60S, &H97S, &HCS, &H3AS, &HA1S, &H4FS, &HD4S, &HE2S, &H79S, &H8ES, &H15S, &H23S, &HB8S, &HC8S, &H53S, &H65S, &HFES, &H9S, &H92S, &HA4S, &H3FS, &HD1S, &H4AS, &H7CS, &HE7S, &H10S, &H8BS, &HBDS, &H26S, &HFAS, &H61S, &H57S, &HCCS, &H3BS, &HA0S, &H96S, &HDS, &HE3S, &H78S, &H4ES, &HD5S, &H22S, &HB9S, &H8FS, &H14S, &HACS, &H37S, &H1S, &H9AS, &H6DS, &HF6S, &HC0S, &H5BS, &HB5S, &H2ES, &H18S, &H83S, &H74S, &HEFS, &HD9S, &H42S, &H9ES, &H5S, &H33S, &HA8S, &H5FS, &HC4S, &HF2S, &H69S, &H87S, &H1CS, &H2AS, &HB1S, &H46S, &HDDS, &HEBS, &H70S, &HBS, &H90S, &HA6S, &H3DS, &HCAS, &H51S, &H67S, &HFCS, &H12S, &H89S, &HBFS, &H24S, &HD3S, &H48S, &H7ES, &HE5S, &H39S, &HA2S, &H94S, &HFS, &HF8S, &H63S, &H55S, &HCES, &H20S, &HBBS, &H8DS, &H16S, &HE1S, &H7AS, &H4CS, &HD7S, &H6FS, &HF4S, &HC2S, &H59S, &HAES, &H35S, &H3S, &H98S, &H76S, &HEDS, &HDBS, &H40S, &HB7S, &H2CS, &H1AS, &H81S, &H5DS, &HC6S, &HF0S, &H6BS, &H9CS, &H7S, &H31S, &HAAS, &H44S, &HDFS, &HE9S, &H72S, &H85S, &H1ES, &H28S, &HB3S, &HC3S, &H58S, &H6ES, &HF5S, &H2S, &H99S, &HAFS, &H34S, &HDAS, &H41S, &H77S, &HECS, &H1BS, &H80S, &HB6S, &H2DS, &HF1S, &H6AS, &H5CS, &HC7S, &H30S, &HABS, &H9DS, &H6S, &HE8S, &H73S, &H45S, &HDES, &H29S, &HB2S, &H84S, &H1FS, &HA7S, &H3CS, &HAS, &H91S, &H66S, &HFDS, &HCBS, &H50S, &HBES, &H25S, &H13S, &H88S, &H7FS, &HE4S, &HD2S, &H49S, &H95S, &HES, &H38S, &HA3S, &H54S, &HCFS, &HF9S, &H62S, &H8CS, &H17S, &H21S, &HBAS, &H4DS, &HD6S, &HE0S, &H7BS)
Why the function definition has only one parameter,but function call has many variables.
|
|
|
|
|
ashwath1979 wrote: Private Sub LoadArray(ByVal ParamArray CRCBytes() As Object)
CRCBytes() is an array, so all the values that pass in is stored inside this array variable.
ashwath1979 wrote: For i = 0 To UBound(CRCBytes)
m_byteCRC8(i) = CRCBytes(i)
Next
Therefore, it use the for loop to actually call out the CRCBytes value and store inside m_byteCRC8.
|
|
|
|
|
|
The keyword ParamArray can be used on the last parameter in a parameter list. This means that the function can be called with a variable number of paramters, and they are treated as an array.
---
b { font-weight: normal; }
|
|
|
|
|
|
I currently work on VB.NET windows application. I have a difficulty in make an installation package for the windows application project I have done in VB.NET.
According to what I know, in Visual Studio 6, it is included a packaging tools where help us to package the VB6 project file, including create .exe and so on, which can build out an installer.
Anyway, in VS.NET, I can't find this packaging tools. Although, during execute (after compile), there is an .exe file created in the folder bin/. However, when I copy this .exe file to a PC which is not install VS.NET, then the .exe file cannot run.
Do we need to use 3rd party packaging software to solve this problem, or actually I have left out something?
If anyone know, please teach me... thanks.
|
|
|
|
|
Which version of .NET are you using? There are deployment tools in all versions of Visual Studio however they are slightly different between versions.
richocheah wrote: However, when I copy this .exe file to a PC which is not install VS.NET, then the .exe file cannot run.
Have you included the .NET runtime? All .NET applications need the .NET framework to be installed on the machine where it will run.
|
|
|
|
|
Can you provide me some guideline to use the deployment tools? I'm using .NET 2003 Enterprise Edition.
How to include .NET runtime? Do you means the machine must install at least .NET Framework v1.1 or newer version?
Please help me... thanks.
-- modified at 3:42 Friday 17th November, 2006
|
|
|
|
|