|
Hi......
I'm a newbie here.
I have a question about how to input data from data grid control in Visual Basic.
I hope somebody can help me about this problem.
Thanks
|
|
|
|
|
Jakarta_Project wrote:
I have a question about how to input data from data grid control in Visual Basic.
And that question would be ..........???
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You should Vsflexgrid to input direct data
tramdtt
|
|
|
|
|
hello guys...
It's our first semester here in our school and part of our 4th year standing here is to create our own information system. Can you suggest some systems except enrolment systems, election systems, point-of-sale systems, accounting systems, etc...
Thanks...
|
|
|
|
|
Bug tracking?
Timesheet analysis?
Expenses?
(And there are ASP.NET reference applications for all of these (www.asp.net[^])if you need some "inspiration")
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Dear Sir,
Thanks for your suggestion... Good luck and Mabuhay...
len_ems
|
|
|
|
|
Hey All,
I have a simple quetion to ask.
The maxlength property of an edit box restricts user to enter more than the specified characters. But in the Japanese system, if user enters double-byte characters, then the actual byte would exceed that limit.
Do we have similar restriction on byte length as well?
I used LenB() method but it considers even the Ascii characters in the English language to be 2 bytes long.
e.g LenB("123") gives me 6.
So is there any generic function which would return me the exact bytes in a string (considering the 1 byte and 2 byte characters differently) and that can be used with English system and Japanese systems where user can enter Japanese as well as English character in the text box.
Thanks
Rohit
|
|
|
|
|
VB (6 at least - not sure about .NET) uses BSTRs to handle strings, which are always two bytes / char (AKAIK), with a couple at the front end for length...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
All Strings in the .NET Framework are Unicode strings. They all have double-byte characters, so yes, "123" will return 6 bytes.
You can't have two different encodings in the same string. It's either going to be all single-byte, or all double-byte, not both...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm developing a simple scheduler application for my company in VB.NET (Windows Forms).
(No, I can't use a standard product due to reasons I can't go into here)
Anybody have any sample code or simple framework which can help me getting started so I don't have to start from scratch ?
I'm looking for some simple code which shows how to make different schedules (every hour/day/week/month/date, on fixed times/dates, etc)
I of course know how to make timers, services, execute stuff, UI, and the rest of the application - only need help for the shedule checking part.
Maybe some kind of simple class library...
TIA
/B
|
|
|
|
|
A simple search on Google for "Scheduler source code" revealed tons of examples:
Google search results[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ever seen the tab control on Windows messenger? I know that it is actually a web page but I got the idea of somehow turning it into a windows forms control. However, I got into a snag custom drawing the tabcontrol. I can't seem to resize it so that it has space to display an icon instead of text nor can I custom draw the tab itself, just the same old boring rectangle - not the cool, new curved tabs like messenger. Any ideas?
|
|
|
|
|
Hi
Is there a function that let me create a shortcut to an app?
say on the desktop?
Thanks
|
|
|
|
|
There is no function in the .NET BCL that will handle this. You will have to use the Microsoft Scripting Runtime (set a COM reference to this!), create a Windows Scripting Shell object and use it to create the shortcut. Something like this (I think!):
Dim WshShell As New WScript.Shell
Dim oShellLink As WScript.Shortcut = WshShell.CreateShortcut(strDesktopPath & "\Shortcut Script.lnk")
oShellLink.TargetPath = WScript.ScriptFullName
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
I haven't tested this code, but it should look SOMETHING like this. I don't have Visual Studio where I'm at work, so I would have to wait until I got home to create a runnable example.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
See if you can consider creating shortcut at the time of deployment wherever you need using Setup projects. I suppose, this would be the best .NET solution.
BK
|
|
|
|
|
Hi
Im writing a app and I have a problem. I want my app will add one menuitem on menu system of Window???
Example::: When I open Window Explorer, click right mouse button on a folder, will appear one menupopup of window. I want on that menu will contain my menuitem. Its the same as Winzip application. Winzip has one menuitem on menu system of Window after you installed winzip...
Who can help me????
Thanks
Good luck
tramdtt
|
|
|
|
|
You'd have to associate your application with windows as being able to handle that particular file type. You'd have to be able to get the ProgID of your application then add that ProgID to the registry.
Your App's ProgID
HKEY_CLASSES_ROOT\Your_App
Default=Your App Name
\curver
Default=Your_Company.Your_App.Version
friendlyname=@Your_App
\shell\open\Command
Default=%Path to your App%\Your_App.exe %1
Then place something like this into
HKEY_CLASSES_ROOT\*.Your_App_File_Type
Default=Your_Company.Your_App.Version
Or if you want to handle folder types, look for the '*' filetype. If your really curious, you can find the Winzip registry entries there too.
Phew!!! There must be an easier way!!! If you find it, find me!!!
|
|
|
|
|
Before you tackle adding items to the Shell Context Menu, you might want to read Creating Context Menu Handlers[^] on MSDN. There are links in that article going to other pages that give additional background information that you will probably have to follow in order to completely grasp what is going on and why.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Can anybody tell me How to find some application is running in system tray or not using Visual Basic.
I want to know only the appliction running in system tray not all the processes running in system.
So, if some specified application is running in system tray i need to close it. So how can i achieve this using vb6.
Thanking you all
Praveen
|
|
|
|
|
pampatipraveen wrote:
I want to know only the appliction running in system tray not all the processes running in system.
There is no difference between the two. They are both normal processes. The icon in the Tray is controlled entirely by the application. You'll still have to iterate through the entire process list to find the processes your looking for and then close them.
TaskList in VB6[^]
Once you have the app you're trying to close, then closing it is a whole other matter. You must take care when closing an app. It's not as easy as it may sound...
Kill An App Gently[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In side of my application i am launching outlookexpress
with email address and subject line with content. in the content
i want to have hyperlink text just you can do "insert->hyperlink" in
outlookexpress
str_Temp = mailto:info@mydomain.com?&Subject="hello"&body="click here"
ShellExecute Me.hWnd, "open", str_Temp, vbNull, vbNull, SW_SHOWNORMAL
I want to have Click here as hyperlink not just text line.
I tried to put click here for the body
but when i launch outlookexpress, content is only text.
I don't know how can i achieve this.
Thanks in advance
shin
|
|
|
|
|
This is the stupidest question. I'm quite new to VB, and i'm trying to find out what is the escape character.
For example, I am trying to do the following:
Formula = "This is a "STRING" inside a string"
How can I make it so that the " chars are escaped in the center part.
In C/C++/C#, i can escape with \
Thanks in advance,
Jon
|
|
|
|
|
Put two quote marks together. There is no escape character in VB...
Dim formula As String
formula = "This is a ""STRING"" inside a string"
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Another way to do that would be to use the ChrW() function. 34 is the Char number of the quote, so you could say,
Dim Formula As String = "This is a " & ChrW(34) & "STRING" & ChrW(34) & " inside as string"
Aaron Eldreth
TheCollective4.com
My Articles
While much is too strange to be believed,
Nothing is too strange to have happened.
- T. Hardy
|
|
|
|
|
You could... but which way is less typing and, therefore, less prone to errors?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|