Hi,
First step: check the status of the database
USE master
GO
SELECT state_desc,* FROM sys.databases
where [name] = 'Database_name_come_here'
GO
If the database is OFFLINE then you can bring it ONLINE using direct queries AND NOT GUI (I don't say the GUI will not work but that you should avoid using it)
USE [master]
GO
ALTER DATABASE [Database_name_come_here] SET ONLINE
GO
Check the status again. If this is ONLINE the try to use the database and forget about the GUI
If there is issue then you need to confirm if the action of taking the database OFFLINE is actually running or this is an issue with the client side
-- this will return all the queries which are running now
SELECT sqltext.TEXT, req.session_id, req.status, req.command, req.cpu_time, req.total_elapsed_time
FROM sys.dm_exec_requests req
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext
GO
If the query is actually running then the next step is something I cannot recommend you to do, and if you do it then it is on your responsibility, but I would probably simply kill the running query, using the session_id from the above query
KILL [session_id]
Close the SSMS and re-open it and go back to work
Check the status and if needed bring database ONLINE