Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Buttons Won't Go Flat


Hi Guys and Girls,

I have set the appearance property of the button in VB6 to flat but the button is still 3D.

Can you give an insite into any other properties I have to set to make the button flat.

Thanks

 




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Flat Buttons
hi!

how can i make flat option buttons? similar to the toolbar, flat but raises when mouse hovers.

thank you!

Flat Buttons
probably a simple properties thing but i would like to make my buttons flat with a single color border and no selection. like using a picture for a button. can i?

Flat Buttons
I work with VB 6.0 on a win95 system. I am trying to get my buttons to appear flat. However when I set the apperance from 3D to flat, nothing changed? What am I missing?

Flat Buttons In VB6
Can we create flat buttons in VB? If so please let me know.

With Regards
Anees Ahamed.N.

Flat Buttons In VB
What am I doing wrong? When I set the Appearance property of a command button to Flat, it remains as 3D.

Flat Command Buttons
i am trying to get the flat command buttons happening but when i change the appearence property to flat, it is still the same... i am after the buttons that rises when mouse is over it, alot like toolbar buttons for win98+

the only thing i can think of is to draw a square shape, same size and colour as the command button, make the button not visible at start, and when the mouse is over the square shape, it hides itself, and unhides the command button over the same area as the shape.. this works fine, but i must implement this to every single button!!!

Flat Buttons [ Works ]
Hello to all! I think this is a simple question but not for me!

How to make flat buttons and wen the mouse is over the button to appear as a 3d buton!

Thanks to all!

Flat Command Buttons
How do I make my command buttons look flat like in Internet Explorer? I am using vb6 pro sp4.

How To Flat Combo And Command Buttons
I wnat to make the combo and command buttons flat.

combo and command button property appearance can't do not.

will you please help me to make the combo and command button flat?

Flat Toolbar And Flat Button
Is there any control that allows me to add a flat toolbar and flat button onto a form ?

Combobox, Apearance FLAT = NOT FLAT?
Hello group,

I prefer to use 'flat' textboxes (appearance = 0-Flat) and stuff. Why is it that a combox with the property appearance set to 0-flat isn't flat but 3d?

Can it be fixed?
Are there any other options?


regards,

VisualSander

Need Help Writing Code For Option Buttons/Radion Buttons
I'm a visual basic student and im trying to write a program for a friend to help him study. I want to have a question in a label, with a frame that has 4 option buttons in it, and a 'check' button and an 'exit' button and here's what someone helped me come up with, but it doesnt work

If optB.Checked = True Then
MessageBox ("Next Question!")
Else
MessageBox ("Why shake your yup yup! I think you should try again ;0)")
End If

written as code in check button

im using visual basic 6 and it gives me a compile error when i click the correct option button and then click on my check button and it highlights the '.checked' can anyone help me?

Option Buttons And Command Buttons On A Different Form
Hi all!

my problem is, im making a quiz setter/taker.

i have 1 form to set the questions and 1 form to take the test.

on the set form, i have 5 text boxes, 1 for the question and 4 for 4 possible answers. next to the 4 text boxes i have an option button to select for which the correct answer is.

then i press the save button and go to the test form.

there i have 1 text box and 4 command buttons. the 4 answers appear in the command buttons to click. which ever button is clicked, the button changes yellow to indicate the buttons has been selected.

then i press a submit button to reveal the correct answer.

what i want to do it make the option i selected, if the command button chosen is wrong or right then it will change either red or green.

this will be a small peice of code probably but ive been trying all night and cant figure it out

Flat GDI+
Hello, does anybody have an example of declaration and use of the GDI+ flat API function GdipLoadImageFromFile()?

It's simple, whatever I pass in the first parameter, the function keeps returning 3 ("Out of Memory").

Thanx.

PD. No TLB, no wrappers. Only plain access to GDI+ please.

Flat Files
ive looked everywhere but cant seem to find this
how do you make a flat fie
and what does it look like


and also how do you link this flat file into a vb6 program


pls help

specifically to show a bunch of stored questions and an answer for a quiz program
just point me in the right direction
thanks

Flat Appearance
Is there any Functions or API is available for Flat setting ?

In my application I want to set the control's appearance to Flat. Currently all controls are showing as 3D. By clicking one button, all controls should be changed to Flat.

Earlier I had try APIs, but no luck. Then I was trying to make flat by looping (Taking all controls and making flat in a loop), But it is too slow and it is taking some time

Is there any short method ?

Thanks in Advance
Raj

Flat Button.
Why is it that i can't obtain a flat graphical button even though I set the Appearance and Style properties accordingly?

Flat Scroll Bar
I need a flat scroll bar for my .ocx but I want it to respond to the mouse wheel when it has the focus like a normal scroll bar would

I have 3 ideas on this and help with any or an alternative suggestion would be appreciated (I can't use SetCapture, and would prefer not to hook)

1)make flat scrollbar respond to mouse wheel

2)make the normal scrollbar's backcolor grey to look like a flat scroll bar

3) use a flat scrollbar with a hidden normal scrollbar that has the focus, and which move in unison (problem here is it only works when you can see the normal scrollbar)

Flat Files
I need to create a report that will pull up information from a database as a flat file. I have created the form but as this is my first project not sure where to go from here to create the flat file and to create a test file for a test upload. Please help.

Loading Flat
Problems, problems... Here's an example: In one file I have some strings. In first row string 1, in second string 2... How can I get in my program that randomly select one string and put in textbox?

Thanks!
by frANZi

Flat Controls
Guys and Gals,

I have been handed a requirement to convert and existing Access database system to a visual basic project. I have spec'd the project and only have one problem remaining. The user interface. The client wants the vb app to look exactly like the existing database. The only problem I am having is using flat controls. I need to create a series of flat controls (combo, textbox and listbox) and be able to change the border colours of each one. I have managed to create activex "copies" of each one but am having trouble adding a border to ecah that I can change the colour of. Does anybody have any ideas on how I can do this?

Flat Button
hi, does anyone know which component to create flatbutton, and what it is for actually? do we need to download anything in order for it to be able to viewed in normal visual basic?
thanks

GDI+ Flat API Calls In VB.net
I have been looking high and low for any sort of information on using the GDI+ flat api calls using .net. Specifically GdipLoadImageFromFile, but for that matter I cannot even get GdiplusStartup to return successfully.

Heres a little context for the use. This is for a thumbnail generator, the problem is that when you call the functions in the wrapper classes it automatically does something called "image data validation". This is terribly slow, and apparently is recognized by Microsoft as a problem which they do have a patch for. Unfortunatly, they are keeping a death grip on it until the next framework service pack. Here is a link to the KB article:

http://support.microsoft.com/default...b;en-us;831419

with the fix installed, you can load images from disk 97% faster. Thats a pretty serious increase. There is a gentleman who has coded a workaround in the meantime, it appears to be in C#. I am wholly unfamilier with C# and have been trying for quite a while now to convert this code to VB. Here is the link to his workaround:

http://weblogs.asp.net/justin_rogers...31/105296.aspx

I have seen posts by OnError written a little more then a year ago that accomplished something similar to this in VB6, I have studied his code as well. but am still unable to make it work correctly.

Here is what I have so far, perhaps it's something simple that I am overlooking.


Code:
Declare Function GdiplusStartup Lib "gdiplus.dll" (ByVal token As Long, ByRef inputbuf As GdiplusStartupInput, ByVal outputbuf As Long) As Long
Declare Sub GdiplusShutdown Lib "gdiplus.dll" Alias "GdiplusShutdown" (ByVal gToken As Long)
Declare Function GdipLoadImageFromFile Lib "gdiplus.dll" Alias "GdipLoadImageFromFile" (ByRef FilenameW As String, ByRef gImage As Long) As Long

Structure GdiplusStartupInput
Dim GdiplusVersion As Long
Dim DebugEventCallback As Long
Dim SuppressBackgroundThread As Long
Dim SuppressExternalCodecs As Long
End Structure

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tStartup As GdiplusStartupInput
Dim token As Long
tStartup.GdiplusVersion = 1
Dim ret As Long
ret = GdiplusStartup(token, tStartup, 0)
Dim hnd As Long
ret = GdipLoadImageFromFile(Application.StartupPath + " est.jpg", hnd)
Dim ptr As New IntPtr(hnd)
Dim bmp As Bitmap = Image.FromHbitmap(ptr)

End Sub
Any help would be greatly appreciated

Thank you

Flat Table
Hi all, I am looking for help with the best way to create a table?

The initial plan is to construct a database that can simply hold data about music, for example windows media player library. But what is the best way to construct this type of table?

Mathy.

Where Can I Get Flat Tab Component???
hi! anyone knows abt a flat tab component in vb6 dat is easy to control. not tabsstrip. thanx

Flat Combo Help
Hey guys i need a little vb help with my Flat Combo Control. What i need to add is the List so you can add items to it from the menu like a standard one that comes with vb6.

The code has been attached. Hope someone can help me out.

Flat Border
setting control box property of a form to false , caption to null and borderstyle as fixed single gives a flat border to form .


But can i have the same result at runtime ?

Thanks.

ADO And Flat Files
How do I read the contents of a file into an ADO recordset? I know how to save a flat file from an ADO recordset, but how to do the reverse? What's the connection string? What's the command text? What's the significance of the cursor and the lock in this case?

Flat Button OCX
Here is another ActiveX Control attached is the sample project..

Copy the accompanying FlatButton.ocx file into the System Directory and register using regsvr32.exe then run the project

Flat Scrollber Bug?!
Hello!
I just noticed (again) that you can't have a vertical flat
scrollbar in a ListView??? It only shows the horizontal one and
there's no option to add it. Do I need to use API then?

SStab Flat Look How?
anyone know how to make the SStab look flat no 3d just a black border similar to the flat look of a non-3d Textbox

Flat Controls
Don't know what the 3DSMax controls look like but I like this:

http://www.devpower.com/flatbutton

Flat Files......
I've got text files coming in and I need to parse them for comma delimited structure. Any hints on how to get this going?

Flat Controls
Sometimes when I load a control at runtime, its constituent textboxes look flat instead of 3D. i tried to set the borderstyle properly i n c o d e, but it doesn't matter.

Why is that and what can i do to fix it (and don't tell me to use the API, I could think of that myself)?

Flat Button?
How can i make flatbuttons with api?

Really FLAT Window?
I have some file, and its window has only black 1px bold rectangle, instead of the 3D gray one. I can add a rectangle to the form, and crop the form region. But I need the rectangle around whole form - and it has menus (so None BoderStyle is not possible)... solution?

Flat Combo Box
how do i get a flat combo box like the one's in MS Word

thanks in advance

MICK

Flat File
I need to be able to check a flat file for key phrases How can I do this:

Exampe.

ITEM_BLOCK MASTER_MAINTENANCE /ROW=3 /COL=7 &
/FACILITY=MENU_MASTER_MAINTENANCE

I need to look for /Facility in the block above..

Thanks
Brooke

Flat Menus
Can anyone explain to me how to create a flat menu such as those used in MS Money. I have found ocx's that will allow me to create all the other basic controls but not the menus. Thanks in advance.
-Adam

VB6 && Flat Files
Which Connection String do I use for Flat Text Files?  I am trying to write a program that will examine the files for accuracy before they are sent to the actual databases.  I do not want them to be able to write, just read.  If there are errors, they need to go back to the originating system and make the corrections.

Larry

Flat ComboBox
hi,
Can anyone give codes to make combobox appearance flat.Of course in the property bag of (CB) option flat is given but it hardly gets flat.Please help.

santh

Flat Combo Box
Hi all
i have downloaded source code for flat combox. but when it is runngin my system is not responding. help me in this regard

u can see the source code at
http://vbnet.mvps.org/index.html?code/subclass/drawedgecombo.htm

bye

Flat Combo Box
hello!,
    can any one help me to change the appearance of combo box into flat shape.

  thanx in adv
 

Flat Combo Box
how can i make combo box appear flat using vb.net?

or how can i make it appearing it as in windows xp using vb.net

MDB To Flat File
I'm writing program from scratch:

I have to read MDB tables and write in Flat File.

Could any 1 pls. help me by showing the sample file.

I really appreciate ur help.

Thankx a lot

Flat Files
I have a Word document with delimiters. Each field is separated by a delimiter. Making use of delimiter in files I have developed a program to add these fields in the front. one of the fields is a definition field.
This field needs formatting of keywords.Any Keyword in the definition should be pre formatted in application.I tried to use Richtextbox's find and span. But it didnot work. Can anyone help me out with this problem. If u need more clarity of my problem, please mail me at s_nedunoori@hotmail.com
Thanks,
Srini

ADO And Flat Files
Using Ado (Access 2000) and vb6 I have tables that are updated using flat files (comma delimited) by deleting the data and replacing it with the data in the flat file. I also have some tables that I want to back up and restore using a flat file.

I read Q262537 on using Jet to do this. This method is a lot faster but, it seems to be ignoring the first record.

On my backup, I create a flat file. My table has 4 records in it. The flat file has 4 lines of data in it, but when I read the file using jet it has only 3 - ignoring the first record.

I seem to remember reading that access uses the first line to set up the type but I couldn't find it again - also unnecessary in my case.

Is everyone setting up a header record to get around this problem?

ActiveX For Flat Combo Box On Vb-6.0
Hi all,

Is any ocx/activeX/control out there for make visual basic 6.0 combo box flat?
I am interested for free stuff. or any code to make combo box flat?

I know its easy with vb.net . but i like it on vb 6.0

Thanks,

tusher.

Its Not Working...buttn Flat
i change the property of a button to flat from 3d but it looks the same at runtime...why is not working? i'm working on vb6...

Copyright © 2005-08 www.BigResource.com, All rights reserved