While power electronic converters, such as voltage source converters (VSCs), are crucial for the operation of converter-dominated renewables and their integration with the electricity grid, their reliance on VSCs can pose a challenge. The limited inertia of these sources can lead to a deterioration of the rate of change of frequency, potentially causing power system stability issues. A grid-forming approach utilizing dc-link dynamics is one of the attractive alternatives to achieve grid synchronization and support grid frequency. Existing grid-forming control schemes, which assume a constant or virtually constant dc source, rely on a fixed physical dc-link capacitor. Nonetheless, the inertia support from such a capacitor is brief, owing to its limited energy storage capability. Consequently, enhancing inertia becomes imperative; otherwise, it may result in an increased rate of change of voltage on the dc side, potentially leading to issues with protection, undesirable interactions, and system instability. This paper proposes a new grid-forming control strategy that considers a virtual capacitor to achieve grid synchronization while simultaneously providing the network with inertia response services during power imbalances. Moreover, including a virtual resistor in the controller effectively attenuates power and dc voltage oscillations. Simulations using Simulink and small signal stability analysis are conducted to validate the efficacy of the proposed controller.